Skip to content

Instantly share code, notes, and snippets.

View wtfaremyinitials's full-sized avatar

Will Franzen wtfaremyinitials

View GitHub Profile
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@isaacs
isaacs / http-example-client.js
Created December 1, 2010 08:35
a simple example of a nodejs http client making a POST request
var http = require("http")
, util = require("sys") // 0.3.x: require("util")
, fs = require("fs")
, client = http.createClient(80, "example.com")
, request = client.request("POST", "/", {"host":"example.com"})
// send body chunks
request.write("hello, world")
// pump a file through
@aemkei
aemkei / LICENSE.txt
Created November 2, 2011 19:27 — forked from 140bytes/LICENSE.txt
minesweeper - 140byt.es
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@prenagha
prenagha / pdfpenocr.scpt
Created November 10, 2011 14:57
applescript folder action to have docs ocr'd by pdfpen
--
-- OCR all documents added to a folder
--
on adding folder items to this_folder after receiving added_items
try
repeat with i from 1 to number of items in added_items
set this_item to item i of added_items
set appName to my getAppName()
tell application appName
activate

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@nikcub
nikcub / README.md
Created October 4, 2012 13:06
Facebook PHP Source Code from August 2007
@aadnk
aadnk / LightSourceEx.java
Created June 22, 2013 18:17
LightSource Advanced - Update nearby chunks as well, but only if necessary.
package com.comphenix.example;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.List;
import net.minecraft.server.v1_5_R3.Entity;
import net.minecraft.server.v1_5_R3.EntityHuman;
import net.minecraft.server.v1_5_R3.EnumSkyBlock;
import net.minecraft.server.v1_5_R3.IWorldAccess;
@aras-p
aras-p / preprocessor_fun.h
Last active April 12, 2024 17:24
Things to commit just before leaving your job
// Just before switching jobs:
// Add one of these.
// Preferably into the same commit where you do a large merge.
//
// This started as a tweet with a joke of "C++ pro-tip: #define private public",
// and then it quickly escalated into more and more evil suggestions.
// I've tried to capture interesting suggestions here.
//
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_,
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant,
@toadkicker
toadkicker / gist:7609641
Last active June 18, 2023 19:44
This is the intro in Lion King. 'Pride Rock'. I use it instead of lorem ipsum sometimes.
Ndabe zitha nkosi yethu mholi wezwe lethu lefatshe la bonata rona lea halalela busa le lizwe bo busa le lizwe bo busa le lizwe bo Lethu busa. Ngoxolo is'khathi sifikile is'khathi busa iyo is'khathi sifikile busa lomhlaba is'khathi sifikile is'khathi sifikile. Busa simba busa bimba. Hem na iyo hem na iyo mem na nkosi bo. Busa simba iyo hem na iyo. Oh busa simba iyo Hem na iyo. Oh busa nkosi bo Hem na nkosi bo. Oh busa simba iyo busa simba iyo. Busa simba iyo ubuse ngo thando. Ubuse ngo thando ubuse. Ngo xolo busa simba, busa simba ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo. Ubuse ngo thando ubuse ngo xolo.
@vivien
vivien / notify
Last active December 23, 2023 03:41
i3blocks integration with dunst
#!/bin/sh
#
# i3blocks integration with dunst.
# Author: Vivien Didelot <vivien.didelot@gmail.com>
#
# dunst caches a notification and signals i3blocks.
# i3blocks catches the signal and prints the cached notification.
#
# Put this rule at the end of your ~/.config/dunst/dunstrc:
#