Skip to content

Instantly share code, notes, and snippets.

@prologic
prologic / Pkgfile
Created February 18, 2015 03:12
Pkgfile for a Makefile that mutate SRC
# ...
name=foo
version=1.0
source=(...)
build() {
OLD_SRC = $SRC
make
SRC = $OLD_SRC
%%{
machine vim_print;
action H { @head = p }
action T { @tail = p }
action return { fret; }
action push_insert_mode { fcall insert_mode; }
action EmitMotion { @events << {motion: strokes} }
action EmitSwitch { @events << {switch: strokes} }
action EmitInput { @events << {input: strokes} }
@emilyst
emilyst / .vimrc
Last active July 24, 2016 17:45
I'm trying to keep this up to date with whatever my actual .vimrc is at the time. It may or may not track pretty closely, but at the time of writing this description (1 Mar 14), it's perfectly up to date.
" 0 preamble ============================================================== {{{
"
" There is a great organization scheme in place here. If you run the
" :options command in Vim, you see a list of all the options that you
" can set, along with their current settings and a brief description of
" them. The great thing about this scheme is that--for better or
" worse--it sets up a system which can organize all my settings. I've
" decided to organize everything below thus, throwing ancillary things
" (my own mappings, plugin settings, and so on) where it makes sense.
"
@nolanlawson
nolanlawson / es6modules.md
Last active September 1, 2016 00:00
The case for Rollup and ES modules in frontend code

The case for Rollup and ES modules in frontend code

TLDR: Rollup and ES modules give us:

  • smaller bundles due to tree-shaking and scope-hoisting, and
  • faster runtime perf than CommonJS, by avoiding runtime module resolution

Sources to back up these wild claims:

Date: 12 Sep 89 17:44:43 GMT
From: crdgw1!montnaro@uunet.uu.net (Skip Montanaro)
Organization: GE Corporate Research & Development, Schenectady, NY
Subject: XTerm Escape Sequences (X11 Version)
To: xpert@expo.lcs.mit.edu
I rummaged around through the xterm code and came up with the following
stuff. No guarantees. I'm headed out of town for a couple days and thought
it better to get it out than let it get stale. Comments, bugs, and other
notes are welcome. Somebody else can convert it to troff. I prefer LaTeX.
@dcat
dcat / cursor-mask.xbm
Last active March 25, 2017 00:35
Aqua cursor port for X11
#define cursor_mask_width 11
#define cursor_mask_height 17
static unsigned char cursor_mask_bits[] = {
0x01, 0x00, 0x03, 0x00, 0x07, 0x00, 0x0f, 0x00, 0x1f, 0x00, 0x3f, 0x00,
0x7f, 0x00, 0xff, 0x00, 0xff, 0x01, 0xff, 0x03, 0xff, 0x07, 0x7f, 0x00,
0xf7, 0x00, 0xf3, 0x00, 0xe1, 0x01, 0xe0, 0x01, 0xc0, 0x00 };
@tonykevin
tonykevin / archlinux-virtualbox.sh
Created March 9, 2016 21:42 — forked from GabLeRoux/archlinux-virtualbox.sh
Virtualbox archlinux notes
# sudo /sbin/rcvboxdrv -h
# Unloading modules:
# Loading modules: modprobe: FATAL: Module vboxnetadp not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxnetflt not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxpci not found in directory /lib/modules/4.4.3-1-ARCH
# modprobe: FATAL: Module vboxdrv not found in directory /lib/modules/4.4.3-1-ARCH
# Solution
# from https://forum.antergos.com/topic/818/can-t-run-my-vitualbox/4
@qgustavor
qgustavor / Pipimi.svg
Last active February 21, 2018 02:19
Pipimi & Popuko
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shizmob
shizmob / pomfload
Last active July 5, 2018 14:08
simple pomf uploader
#!/bin/sh
downpomf="https://a.pomf.cat/"
uppomf="https://pomf.cat/upload.php"
if test $# -lt 1 ; then
echo "Usage: `basename $0` FILE [FILE...]"
exit 1
fi
set=
@chubas
chubas / wordblender.md
Last active February 27, 2019 19:06
Word Blender

GDLJS Monthly Challenge #1 - Word Blender

This is an adaptation for the RubyQuiz #108 Word Blender, lots of spoilers there so best to look after!

Word Blender

The task for this month is to build a game based on the popular game TextTwist (and many other variations there are). It can be built as sophisticaded as you want, ranging from a command line game to a full featured GUI game if you want.

Rules