Skip to content

Instantly share code, notes, and snippets.

#include <ctype.h>
#include <math.h>
#define PLAY 2
#define PITCH 3
#define FUNCS 26
#define STACKMAX 4
#define DEBUG 0
#define RATE 600
#define HIGHTIME 80
HOWMANYBITS = 5
REDUCE = True
queue = [["A", [True]]]
possibilities = [[True], [False]]
A = ord("A")
print "A"
print "_"
A
_
A
A +B
____
A B
A -B
____

"POOR BILL"
2019-Nov-07

@teddyschleifer wrote:

"Bill Gates on a wealth tax:

'I've paid over $10 billion in taxes. I've paid more than anyone in taxes. If I had to pay $20 billion, it's fine.'

'But when you say I should pay $100 billion, then I'm starting to do a little math over what I have left over.'"

My favorite 30 games, 2010-2019:

3D Dot Game Heroes:
Gorgeous voxel love letter to Zelda 1.

Ufouria:
NES game that was not released in North America until 2010.

Pac Man CE DX:
Combination of Pac Man and “Snake”.

ClCompile:
C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\HostX86\x64\CL.exe /c /I"C:\Users\Andi\work\g\lovr-oculus-mobile\cmakelib\.externalNativeBuild\cmake\debug\arm64-v8a\luajit\src\buildvm\..\..\.." /I"C:\Users\Andi\work\g\lovr-oculus-mobile\cmakelib\.externalNativeBuild\cmake\debug\arm64-v8a\luajit\src\buildvm\.." /I"C:\Users\Andi\work\g\lovr-oculus-mobile\cmakelib\lovr\deps\luajit\src\host\cmake\buildvm\..\..\.." /I"C:\Users\Andi\work\g\lovr-oculus-mobile\cmakelib\lovr\deps\luajit\src\host\cmake\buildvm\..\.." /Zi /nologo /W3 /WX- /diagnostics:classic /Od /Ob0 /D WIN32 /D _WINDOWS /D DLJ_ARCH_HASFPU=1 /D LJ_ABI_SOFTFP=0 /D LUAJIT_TARGET=LUAJIT_ARCH_arm64 /D LUAJIT_OS=LUAJIT_OS_LINUX /D "CMAKE_INTDIR=\"Debug\"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"buildvm.dir\Debug\\" /Fd"buildvm.dir\Debug\vc141.pdb" /Gd /TC /FC /errorReport:queue "C:\Users\Andi\work\g\lovr-oculus-mobile\cmakelib\lovr\deps\luajit\src\host\buil
/*
This short Typescript snippet works with:
"dependencies": {
"immutable": "^4.0.0-rc.12",
"preact": "^10.1.0",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
},
"devDependencies": {
"ts-loader": "^6.2.1",

Here are my steps for building and installing Magus firmware from scratch on a Windows 10 machine.

If you don't want to build a firmware, you just want to install one, you can download an official firmware from Github and then skip to step 12.

If you are planning to change the firmware code before building it, you may want to run the OPTIONAL, SCARY STEPS at the bottom of this guide first, for safety.

Steps:

  1. I installed Ubuntu for Linux for Windows.

Somebody asked my advice on writing an independent CLR (C#/.NET) VM implementation. Here's what I said.

Clarifications:

  • Download ECMA-334 + ECMA-335 PDFs first.
  • "Get" C# bytecode-compiler / disassembler means download them-- don't write your own.
  • Author of JSIL is @antumbral.

You want to get a c# -> bytecode compiler, and you want to get a bytecode disassembler

mono's is mcs and [thing i forget, but there is one], monodis?

mcc's Pac Man 99 guide

First things first: Read the reddit, this is the source for most of this information

TLDR: If you want the game to be "fun", start in Counter+Speed mode, and clear boards as quickly as possible until you hit 50%; then switch to Knockout and just try to eat ghosts and stay alive. When it hits 10% consider camping power pellets.

Mechanics

"Obvious" mechanics