Skip to content

Instantly share code, notes, and snippets.

@jimkang
jimkang / Default (OSX).sublime-keymap
Last active August 29, 2015 13:56
Sublime group focus/moving keybindings. Goes in ~/Library/Application Support/Packages/User.
[
{ "keys": ["super+shift+,"], "command": "focus_group", "args": { "group": 0 } },
{ "keys": ["super+shift+."], "command": "focus_group", "args": { "group": 1 } },
{ "keys": ["super+shift+/"], "command": "focus_group", "args": { "group": 2 } },
{ "keys": ["alt+super+,"], "command": "move_to_group", "args": { "group": 0 } },
{ "keys": ["alt+super+."], "command": "move_to_group", "args": { "group": 1 } },
{ "keys": ["alt+super+/"], "command": "move_to_group", "args": { "group": 2 } },
{ "keys": ["super+1"], "command": "focus_group", "args": { "group": 0 } },
@codingjester
codingjester / tumblrv2api.py
Created November 23, 2011 21:22
Working version of Photo Uploads for Tumblr API V2
import urllib,hmac,time,hashlib,base64,httplib,sys,json,urlparse
## This is just a simple example that is self contained.
## You will need to modified it to make it work
##
## creds - need to be filled out
## blognmae - needs to be defined
##
## reads in image files from the command line and posts to your blog
##
# theano_pong_rnn.py
# Dave Gottlieb (dmg1@stanford.edu) 2016
#
# Pong RNN model reimplemented more correctly + flexibly directly in Theano
from theano import *
import theano.tensor as T
import numpy as np
class PongRNNModel(object):
@ecmendenhall
ecmendenhall / check_for_hijacked_modules.sh
Last active March 23, 2016 17:55
A quick script to check npm dependencies for modules hijacked by nj48 (https://www.npmjs.com/~nj48)
#!/usr/bin/env bash
MATCHES=$(npm ls | grep -e " andthen@" \
-e " anglicize@" \
-e " ansi-codes@" \
-e " atbash@" \
-e " attr@" \
-e " attrs@" \
-e " available-slug@" \
-e " background-image@" \
<html>
<head>
<title>Wordnik demo from JavaScript</title>
<script src="http://static.smallpicture.com/bootstrap/js/jquery-1.9.1.min.js"></script>
<script>
var baseUrl = "http://api.wordnik.com/v4/word.json/";
var apiKey = "a2a73e7b926c924fad7001ca3111acd55af2ffabf50eb4ae5"; //demo key from developer.wordnik.com
function getSynonyms (theWord, callback) {
var url = baseUrl + theWord + "/relatedWords?useCanonical=true&relationshipTypes=synonym&limitPerRelationshipType=100&api_key=" + apiKey;
var jxhr = $.ajax ({
@jasonrudolph
jasonrudolph / github-api-example.md
Created April 15, 2014 12:09
Debugging "Reference update failed" error when creating a branch via the GitHub Git Refs API
@Hypercubed
Hypercubed / .gitignore
Last active May 22, 2017 23:44
Bad value context for arguments value
jspm_packages
@dphiffer
dphiffer / uber.md
Last active January 11, 2019 18:15
Re: Working For Uber - Let's Connect!
@mbostock
mbostock / .gitignore
Last active September 13, 2019 01:32
Force GIF
*.png
*.gif
@tjluoma
tjluoma / skitch-edits.html
Created September 21, 2012 13:10
Skitch 1.0.7 and preventing the Mac App Store from prompting you to upgrade to 2.0
<h1>
Stop the App Store upgrade prompt</h1>
<p>
Fortunately I saved my copy of Skitch (version 1.0.12) after hearing <a href="http://twitter.com/danielpunkass">Daniel Jalkut</a> (developer at <a href="http://www.red-sweater.com/">Red Sweater Software</a> best known for <a href="http://www.red-sweater.com/marsedit/">MarsEdit</a> and <a href="http://www.red-sweater.com/fastscripts/">FastScripts</a>) mention that a brief stint with Skitch 2.0 had sent him back to Skitch version 1.</p>
<p>
The only problem is that the Mac App Store app kept telling me that Skitch needs to be updated. I even went into my Purchases list and '&quot;hid&quot; Skitch, but still the App Store kept telling me that it wanted to update Skitch.</p>
<p>
I seem to have found a solution, which was to quit Skitch.app, and then locate the app in /Applications/ using the Finder. Once there, I control-clicked on the app and chose &quot;Show Package Contents&quot;:</p>
<p style="text-align:center">
<img alt="" border="0" height="143" src="htt