Skip to content

Instantly share code, notes, and snippets.

View neauoire's full-sized avatar
💭
Siouxsie & The Banshees - Cities In Dust

Devine Lu Linvega neauoire

💭
Siouxsie & The Banshees - Cities In Dust
View GitHub Profile
@hofmannsven
hofmannsven / README.md
Last active July 19, 2026 12:28
Raspberry Pi Cheatsheet
@lbruder
lbruder / lbForth.c
Created April 6, 2014 15:21
A minimal Forth compiler in ANSI C
/*******************************************************************************
*
* A minimal Forth compiler in C
* By Leif Bruder <leifbruder@gmail.com> http://defineanswer42.wordpress.com
* Release 2014-04-04
*
* Based on Richard W.M. Jones' excellent Jonesforth sources/tutorial
*
* PUBLIC DOMAIN
*
import Foundation
extension String
{
var length: Int {
get {
return countElements(self)
}
}
@madhums
madhums / base64-image-upload.js
Created September 14, 2014 17:37
save base64 encoded image
/*
* Taken from http://stackoverflow.com/questions/5867534/how-to-save-canvas-data-to-file/5971674#5971674
*/
var fs = require('fs');
// string generated by canvas.toDataURL()
var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0"
+ "NAAAAKElEQVQ4jWNgYGD4Twzu6FhFFGYYNXDUwGFpIAk2E4dHDRw1cDgaCAASFOffhEIO"
+ "3gAAAABJRU5ErkJggg==";
// strip off the data: url prefix to get just the base64-encoded bytes
anonymous
anonymous / gist:f72e5c4a432492abce59
Created October 30, 2014 18:41
Arthur Whitney's interpreter, decompressed
typedef char C;
typedef long I;
typedef struct a {
I t,r,d[3],p[2];
}* A;
#define P printf
@jpfr
jpfr / interpreter.c
Created October 30, 2014 20:44
AW's Interpreter
// Based on http://www.jsoftware.com/jwiki/Essays/Incunabulum
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef struct a {
long t;
long r;
long d[3];
long p[2];
@carols10cents
carols10cents / ruby-to-rust-cheat-sheet.md
Last active February 7, 2026 08:00
Ruby to Rust Cheat Sheet

Ruby to Rust Cheat Sheet

The goal of this is to have an easily-scannable reference for the most common syntax idioms in Ruby and Rust so that programmers most comfortable with Ruby can quickly get through the syntax differences and feel like they could read and write basic Rust programs.

What do you think? Does this meet its goal? If not, why not?

Variables

Ruby:

@JeffPaine
JeffPaine / i3-cheat-sheet.md
Last active July 25, 2026 18:02
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (alt by default)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
@inky
inky / core words.txt
Last active August 29, 2015 14:21
Traumae in Fuþorc
ᚳᛁ ᛉᛁ ᛋᛁ
ᛏᛁ ᛞᛁ ᛚᛁ
ᛈᛁ ᛒᛁ ᚠᛁ
ᚳᚫ ᛉᚫ ᛋᚫ
ᛏᚫ ᛞᚫ ᛚᚫ
ᛈᚫ ᛒᚫ ᚠᚫ
ᚳᚩ ᛉᚩ ᛋᚩ
ᛏᚩ ᛞᚩ ᛚᚩ
@hnakamur
hnakamur / build_node9.sh
Created June 13, 2015 14:19
get and build node9
#!/bin/sh
set -e
basedir=`pwd`
mkdir -p "$basedir/github.com/jvburnes"
git clone https://github.com/jvburnes/node9 "$basedir/github.com/jvburnes/node9"
mkdir -p "$basedir/github.com/stevedonovan"
git clone https://github.com/stevedonovan/Penlight "$basedir/github.com/stevedonovan/Penlight"