Skip to content

Instantly share code, notes, and snippets.

let blacklists = ["https://mail.google.com/*", "*://mail.google.com/*", "*://feedly.com/*", "*://*/*.pdf"]
map jj <Esc>
map <C-d> scrollPageDown
map <C-u> scrollPageUp
map <C-f> scrollFullPageDown
map <C-b> scrollFullPageUp
map u lastClosedTab
map O :tabnew<Space>
map o :open<Space>
https://cloud.google.com/vision/docs/supported-files
https://www.tensorflow.org/tutorials/image_retraining
https://cloud.google.com/blog/big-data/2016/12/how-to-classify-images-with-tensorflow-using-google-cloud-machine-learning-and-cloud-dataflow
https://cloud.google.com/dataflow/docs/quickstarts/quickstart-python
https://cloud.google.com/storage/docs/moving-buckets
https://github.com/GoogleCloudPlatform/cloudml-samples/tree/master/flowers
https://github.com/tensorflow/models/blob/master/research/slim/scripts/finetune_inception_resnet_v2_on_flowers.sh
https://research.googleblog.com/2016/08/improving-inception-and-image.html
https://cloud.google.com/ml-engine/docs/deploying-models
https://keras.io/preprocessing/image/

Keybase proof

I hereby claim:

  • I am crlane on github.
  • I am crlane (https://keybase.io/crlane) on keybase.
  • I have a public key whose fingerprint is 2DEE 1D7E 6D28 C87D FB2C CA48 EA81 2985 3D57 CD15

To claim this, I am signing this object:

@crlane
crlane / trie.py
Last active March 17, 2024 15:54
An implementation of a trie in python using defaultdict and recursion
from collections import defaultdict
def node():
return defaultdict(node)
def word_exists(word, node):
if not word:
return None in node
return word_exists(word[1:], node[word[0]])
@crlane
crlane / jazimba.yml
Created September 25, 2014 14:39
jazimba tmuxinator
# ~/.tmuxinator/jazimba.yml
name: jazimba
root: ~/dev/jazimba
# Optional tmux socket
# socket_name: foo
# Runs before everything. Use it to start daemons etc.
pre: vagrant up
@crlane
crlane / print_src.py
Created July 8, 2014 14:43
print python source code
import subprocess
import os
START_DIR = '' # replace with your directory
DEST_DIR = '' # replace with your directory
CMD = 'enscript -1rG --line-numbers --highlight=python -p - --color=0 {} | pstopdf -i -o {}.pdf'
def print_source_code():
for dirname, subdirs, filenames in os.walk(START_DIR):
if 'env' in subdirs:
@crlane
crlane / highlight.py
Created June 29, 2013 18:56
I wrote this to generate a bunch of colorscheme previews from the highlight script at [here](http://www.andre-simon.de/doku/highlight/en/highlight.html) . YMMV.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, sys
from subprocess import call
_THEMES = '/usr/local/Cellar/highlight/3.12/share/highlight/themes/'
_CMD = 'highlight {} --output={} -O {} --line-numbers --font-size {} --font {} --style {} -W -J {} -j {}'
_OUTPUT = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'output/')
_TEST =os.path.join(os.path.dirname(os.path.realpath(__file__)), 'test/')
@crlane
crlane / fitter_happier.py
Created December 27, 2012 01:55
Speaks the lyrics to 'Fitter Happier' from OK Computer. Requires python and Mac OS.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
File: fitter_happier.py
Author: Cameron Lane
Description: Demonstration of the mac os x `say` command from within python.
'''
import sys,os,urllib2