Skip to content

Instantly share code, notes, and snippets.

View andyinabox's full-sized avatar

Andy Dayton andyinabox

View GitHub Profile
# # Modules: npm
# Adds settings and tasks for managing Ruby npm.
#
# require 'mina/npm'
# ## Settings
# Any and all of these settings can be overriden in your `deploy.rb`.
# ### npm_bin
# Sets the npm path.
@jshbrntt
jshbrntt / gulpfile.js
Created May 12, 2014 19:53
Gulp + Watchify + Debowerify + Uglify
/* global require */
var gulp = require('gulp');
var browserify = require('browserify');
var sync = require('browser-sync');
var source = require('vinyl-source-stream');
var uglify = require('gulp-uglify');
var plumber = require('gulp-plumber');
var streamify = require('gulp-streamify');
var watchify = require('watchify');
@ftrain
ftrain / rhymes.clj
Last active July 14, 2023 22:20
Annotated rhyming dictionary
;; This is at: https://gist.github.com/8655399
;; So we want a rhyming dictionary in Clojure. Jack Rusher put up
;; this code here:
;;
;; https://gist.github.com/jackrusher/8640437
;;
;; I'm going to study this code and learn as I go.
;;
;; First I put it in a namespace.
@mattetti
mattetti / multipart_upload.go
Last active April 22, 2024 05:24
Example of doing a multipart upload in Go (golang)
package main
import (
"bytes"
"fmt"
"io"
"log"
"mime/multipart"
"net/http"
"os"
@rc1
rc1 / OSX Example
Last active April 11, 2024 18:50
Command line arguments in openFrameworks
open -n ./emptyExampleDebug.app/ --args 1 2 3 4
@Prinzhorn
Prinzhorn / example.js
Created June 17, 2013 12:35
Tiny jQuery plugin which makes refreshing elements a breeze.
//Enlarge all the bacon.
$('.bacon').height(10000).refresh();
@willurd
willurd / web-servers.md
Last active May 19, 2024 20:19
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rvagg
rvagg / README.md
Last active May 4, 2024 12:17
Kindleberry "Paperwhite" Pi

Work in progress, I'll write this up properly when I'm done.

Almost all credit goes to @maxogden for putting me on to this and pointing me in the right direction for each of these items.

Prerequisites:

  • Raspberry Pi
  • Kindle Paperwhite freed from its locked down state (jailbroken) http://www.mobileread.com/forums/showthread.php?t=198446
    • You have to downgrade your Kindle to 5.3.1 to install the current jailbreak; that's just a matter of getting the old version image, putting it on your Kindle via USB and telling it to install "upgrade". Then you put in the Jailbreak files, load the ebook and break.
  • Your kindle will be quick to detect an upgrade is available so it'll want to upgrade soon afterwards but the jailbreak will last but you have to reinstall the developer certificates so it's a bit of a pain but doable. Find all the instructions on the mobileread.com forums and wiki.
@max-mapper
max-mapper / readme.md
Last active June 25, 2021 20:19
notes from hacking my kindle paperwhite

outline

useful hacks

@mbostock
mbostock / README.md
Last active June 7, 2023 18:33
Underscore’s Equivalents in D3

Collections

each(array)

Underscore example:

_.each([1, 2, 3], function(num) { alert(num); });