Skip to content

Instantly share code, notes, and snippets.

View jasonleonhard's full-sized avatar

jasonleonhard jasonleonhard

View GitHub Profile
@mzemel
mzemel / generate.py
Created July 13, 2015 17:06
Generate deepdream
# imports and basic notebook setup
from cStringIO import StringIO
import numpy as np
import scipy.ndimage as nd
import PIL.Image
import sys
from IPython.display import clear_output, Image, display
from google.protobuf import text_format
import caffe
@jasonleonhard
jasonleonhard / gist:4a7eaf639f376e076bea
Created June 24, 2015 23:14
CREATE A NEW REPO IN GITHUB OR BITBUCKET QUICKLY
NewRepo(){ # NewRepo RepoName5 ~/RepoLocalPath5/ g or # NewRepo Repo1 ~/RepoLocal1/ b
mkdir $2 ;
cd $2 ;
echo $1 | pbcopy ;
echo "$1 $2 $3 un5t0ppab13" >> $3.txt ; # create new file$3 with text"$1$2$3"
if [ -a "g.txt" ] ; then
open 'https://github.com/new/' ;
elif [ -a "b.txt" ] ; then
open 'https://bitbucket.org/repo/create' ;
fi ;

Keybase proof

I hereby claim:

  • I am un5t0ppab13 on github.
  • I am un5t0ppab13 (https://keybase.io/un5t0ppab13) on keybase.
  • I have a public key whose fingerprint is 608B EEC9 C5C2 EA49 7890 4A13 5B60 D4D7 8F68 6673

To claim this, I am signing this object:

@jasonleonhard
jasonleonhard / gist:301d277a8684c0a9f79d
Last active March 11, 2024 04:38
Invert colors in Chrome Browser (with DevTools JavaScript console)
javascript: (function () {
// the css we are going to inject
var css =
"html {" +
" -webkit-filter: invert(100%);" +
" -moz-filter: invert(100%);" +
" -o-filter: invert(100%);" +
" -ms-filter: invert(100%);" +
"}",
head = document.getElementsByTagName("head")[0],
@learncodeacademy
learncodeacademy / flightplan-html.md
Last active February 26, 2021 22:07
Deploy HTML site with Flightplan

###Prerequesites

Install flightplan globally

npm install -g flightplan

Install flightplan in your project folder