Discover gists
WSA or Windows Subsystem for Android is a Tool that allows Windows to run Android Apps directly without using any emulator. The problem is Windows Subsystem for Android is currently only available through preview via the Beta Channel of the Windows Insider Program. But if you follow this guide, you don't have to be in Windows Insider Program to try it out. The only thing you need is Windows 11 installed and some patience.
- A Device with any version and Edition of Windows 11 installed.
- Internet Connection.
- Hyper-V enabled.
from django import template | |
from django.template import Context | |
from django.template.base import parse_bits | |
from wagtail.wagtailimages.templatetags.wagtailimages_tags import ImageNode | |
from wagtail.wagtailimages.models import Filter, SourceImageIOError, InvalidFilterSpecError | |
from britishswimming.utils.models import SocialMediaSettings | |
register = template.Library() |
#! /usr/bin/env node | |
import fs from 'fs'; | |
import { promisify } from 'util'; | |
import path from 'path'; | |
import { spawn } from 'child_process'; | |
const fsExists = promisify(fs.exists); | |
if (!process.env.GITHUB_TOKEN) throw new Error("process.env.GITHUB_TOKEN is required"); | |
if (!process.env.GITHUB_USER) throw new Error("process.env.GITHUB_USER is required"); |
/* Compile with: | |
* wayland-scanner private-code /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell.c | |
* wayland-scanner client-header /usr/share/wayland-protocols/stable/xdg-shell/xdg-shell.xml xdg-shell.h | |
* gcc -c xdg-shell.c | |
* gcc -c egl-on-wayland-xdg.c | |
* gcc -o egl-on-wayland-xdg xdg-shell.o egl-on-wayland-xdg.o -lwayland-egl -lwayland-client -lEGL -lGL | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
I've recently tested on how to move the custom domain catch all email from G Suite to the new iCloud+ Catch All feature and wanted to share my experience.
The end result is having Custom Domain email and Catch All routing, that can be fully used via Gmail, including receiving and sending emails.
- Setup your Custom Domain (or subdomain) with iCloud+
Create a new React project in stackblitz.com
- Remove everything other than the
<div>
from<App>
# install DSPy: pip install dspy | |
import dspy | |
# Ollam is now compatible with OpenAI APIs | |
# | |
# To get this to work you must include `model_type='chat'` in the `dspy.OpenAI` call. | |
# If you do not include this you will get an error. | |
# | |
# I have also found that `stop='\n\n'` is required to get the model to stop generating text after the ansewr is complete. | |
# At least with mistral. |
During the past days, this great article by Sam Pruden has been making the rounds around the gamedev community. While the article provides an in-depth analysis, its a bit easy to miss the point and exert the wrong conclusions from it. As such, and in many cases, users unfamiliar with Godot internals have used it points such as following:
- Godot C# support is inefficient
- Godot API and binding system is designed around GDScript
- Godot is not production ready
In this brief article, I will shed a bit more light about how the Godot binding system works and some detail on the Godot
import androidx.compose.foundation.layout.Box | |
import androidx.compose.runtime.Composable | |
import androidx.compose.ui.Modifier | |
import androidx.compose.ui.draw.drawWithContent | |
import androidx.compose.ui.geometry.Offset | |
import androidx.compose.ui.graphics.BlendMode | |
import androidx.compose.ui.graphics.Color | |
import androidx.compose.ui.graphics.nativeCanvas | |
@Composable |