Skip to content

Instantly share code, notes, and snippets.

View DarkHole1's full-sized avatar
👁️

Dark Hole DarkHole1

👁️
View GitHub Profile
class One {
private Action<string> _cb;
public void handle(Action<string> cb) { _cb = cb; }
public void call(string text) { cb(text); }
}
class Two {
private int _counter;
private Action<string> _cb;
public One one;

Keybase proof

I hereby claim:

  • I am darkhole1 on github.
  • I am darkhole (https://keybase.io/darkhole) on keybase.
  • I have a public key ASBzcJRIoihJX5pXbXNgLL2uLP7N7auECgkLAvc_jl5Pvwo

To claim this, I am signing this object:

c.width = c.width
const f = Math.floor(t * 3 % 2)
for(let i = 0; i < 16 * 16; ++i) {
let posX = Math.floor(i / 16),
posY = i % 16;
let code = '|þ᧺뽾똿곿객︿㯴Ǽø'.charCodeAt(f ? posX : 15 - posX);
if(code & 1 << posY)
x.fillRect(posX * 32, posY * 32, 32, 32);
}
// title: pix demo
// author:
// desc: put color
// script: js
// input: gamepad
var t=0
cls()
pix(0,0,15)
function TIC(){
// title: spr demo / lua
// author: Filippo
// desc: shows how to use 'spr'
// script: js
// input: gamepad
// pal: DB16
//Build sprite from text
data="010000000160010015240160170170170170170175170166250255170170170175106170170170170170051051051051"
for(var i=0;i<32;++i){
// title: demo
// author:
// desc:
// script: js
// input: gamepad
cls(0)
function TIC(){
trace("hello console:"+time())
// title: font
// author: Nesbox
// desc: example how to render font from the foreground sprites
// script: js
// input: gamepad
cls(12)
var text="The quick brown fox\njumps over the lazy dog!"
font(text,8,8,5)
// title: print demo
// author: Filippo
// desc: print matrix
// script: js
// input: gamepad
var msg="FNORD "
var t=0
function TIC(){
cls()
// title: mouse demo
// author: Filippo
// desc:
// script: js
// input: mouse
// pal: DB16
r=0
function TIC(){
cls(0)
// title: mouse demo
// author: Raidez
// desc:
// script: js
// input: mouse
var t=0
var x=104
var y=24