Skip to content

Instantly share code, notes, and snippets.

:shipit:
👍

Cameron Lane crlane

:shipit:
👍
Block or report user

Report or block crlane

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b2c7cde7973779cbe75f0261fed282ce
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>
View gist:b7873c25e0fffae32f2a3885189f9585
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/
View keybase.md

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 Jul 12, 2018
An implementation of a trie in python using defaultdict and recursion
View trie.py
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 Sep 25, 2014
jazimba tmuxinator
View jazimba.yml
# ~/.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 Jul 8, 2014
print python source code
View print_src.py
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 Jun 29, 2013
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.
View highlight.py
#!/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 Dec 27, 2012
Speaks the lyrics to 'Fitter Happier' from OK Computer. Requires python and Mac OS.
View fitter_happier.py
#!/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
You can’t perform that action at this time.