Skip to content

Instantly share code, notes, and snippets.

View henrybw's full-sized avatar
🔜
hbw

Henry Baba-Weiss henrybw

🔜
hbw
View GitHub Profile
settings.hintAlign = "left";
settings.smoothScroll = false;
map("F", "af")
map("J", "E");
map("K", "R");
map("H", "S");
map("L", "D");
map("<Ctrl-e>", "j");
map("<Ctrl-y>", "k");
map("<Ctrl-d>", "d");
### Keybase proof
I hereby claim:
* I am henrybw on github.
* I am hbw (https://keybase.io/hbw) on keybase.
* I have a public key ASC8gTuUra8aQQjKRZ7N4LcF9auNRXprDX4b0IaTpykghwo
To claim this, I am signing this object:
@henrybw
henrybw / svimrc
Last active August 10, 2017 04:28
set nosmoothscroll
let scrollstep = 40
let lastactivetablimit = 50
let lastclosedtablimit = 50
let blacklists = ["*://mail.google.com/*","*://drive.google.com/file/d/*/view"]
map "shift+k" nextTab
map "shift+j" previousTab
map "x" quit
map "u" lastClosedTab
@henrybw
henrybw / SDL_Test.c
Created May 26, 2015 01:40
SDL Test
// Compile with:
// clang -pagezero_size 10000 -image_base 100000000 $(/usr/local/Cellar/sdl2/2.0.3/bin/sdl2-config --cflags) $(/usr/local/Cellar/sdl2/2.0.3/bin/sdl2-config --static-libs) -lSDL2_image SDL_Test.c -o SDL_Test.app/Contents/MacOS/SDL_Test
#include <SDL.h>
#include <SDL_image.h>
#include <stdio.h>
#include <stdbool.h>
#include <sys/param.h>
int main(int argc, char *argv[])
{
// Compile with:
// clang clickdisplay.c -framework CoreGraphics -framework CoreGraphics -o clickdisplay
#include <stdio.h>
#include <CoreGraphics/CoreGraphics.h>
#include <CoreFoundation/CoreFoundation.h>
void DoEvent(CGEventRef event)
{
// Rapidly posting events seems to result in them getting dropped
// occasionally, so the delay ensures the event goes through.
@henrybw
henrybw / cvimrc
Last active May 2, 2017 19:43
My cvimrc
let barposition = "top"
set nosmoothscroll
let scrollstep = 40
let completionengines = ["google", "imdb", "wikipedia"] " restrict default engines to these
" Remove default bindings
unmap b
unmap e