Skip to content

Instantly share code, notes, and snippets.

@dfinke
dfinke / CONWAYS-GAME-OF-LIFE.ps1
Last active July 24, 2021 18:26
The classic cellular automata simulation
param(
$ALIVE = 'O',
$DEAD = ' '
)
# Conway's Game of Life
# The classic cellular automata simulation. Press Ctrl-C to stop.
# More info at: https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life
$WIDTH = 79 # The width of the cell grid.
@asklar
asklar / Notifications.h
Created May 29, 2021 22:36
React Native for Windows native module for raising Toast notifications
#pragma once
#include <NativeModules.h>
#include <winrt/Windows.UI.Notifications.h>
#include <winrt/Windows.Data.Xml.Dom.h>
using namespace winrt::Windows::UI::Notifications;
using namespace winrt::Windows::Data::Xml::Dom;
REACT_MODULE(Notifications)
@mvanga
mvanga / music_theory.py
Last active April 24, 2024 19:10
Basic Music Theory in ~200 Lines of Python
# The code for my article with the same name. You can find it at the URL below:
# https://www.mvanga.com/blog/basic-music-theory-in-200-lines-of-python
# MIT License
#
# Copyright (c) 2021 Manohar Vanga
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@shanselman
shanselman / ohmyposhv3-v2.json
Last active March 23, 2025 11:28
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@adithyabsk
adithyabsk / parachute.py
Last active May 24, 2021 04:24
NASA Perseverance Parachute Code
"""Perseverence Parachute Cipher Python Solution
In Press:
* https://www.nytimes.com/2021/02/24/science/nasa-mars-parachute-code.html
* https://www.theguardian.com/science/2021/feb/23/dare-mighty-things-hidden-message-found-on-nasa-mars-rover-parachute
* https://www.cmu.edu/news/stories/archives/2021/march/mars-rover-code.html
Output:
DARE¿¿¿¿
MIGHTY¿¿
THINGS¿¿
@salihgueler
salihgueler / macos_deployment.yml
Created February 1, 2021 09:30
Gist MacOS Deployment
---
name: On MacOS Deploy
'on':
push:
branches:
- "main"
jobs:
on-push-main:
runs-on: macos-latest
env:
@gistlyn
gistlyn / MyApp.csproj
Last active June 12, 2022 12:02
OrmLite SQLite CIL Demo
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<NoWarn>1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ServiceStack.OrmLite.Sqlite.Cil" Version="6.*" />
@emilianavt
emilianavt / BestVTuberSoftware.md
Last active April 16, 2025 07:09
Best VTuber Software

Best VTuber software

This is a list of the most commonly used and relevant vtubing software. The "best" will always be subjective and depend on your specific requirements. Overall, the information in this list is as accurate as I could figure it out, but there might be errors or some details might become out of date. If you find anything that needs to be corrected, please let me know. You can also note it in a comment.

Additional explanations:

  • iPhone means that an iPhone is basically required
  • iFacialMocap support means that tracking data can be received from the iFacialMocap iPhone app
  • VMC protocol means that the application can send and/or receive tracking data from other VMC protocol capable applications, allowing the combination of multiple tracking methods (e.g. VSeeFace receiving VR tracking from Virtual Motion Capture and iPhone/ARKit face tracking from Waidayo)
  • Tobii means that the Tobii eye tracker is supported
@shanselman
shanselman / ohmyposhv3.json
Created December 23, 2020 03:48
My ohMyPoshv3 json
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@gullyn
gullyn / flappy.html
Last active January 24, 2025 00:41
Flappy bird in 205 bytes (improved!)
<body onload=z=c.getContext`2d`,setInterval(`c.width=W=150,Y<W&&P<Y&Y<P+E|9<p?z.fillText(S++${Y=`,9,9|z.fillRect(p`}*0,Y-=--M${Y+Y},P+E,9,W),P))):p=M=Y=S=6,p=p-6||(P=S%E,W)`,E=49) onclick=M=9><canvas id=c>