This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Oxford102CaffeNet" | |
input: "data" | |
input_dim: 10 | |
input_dim: 3 | |
input_dim: 227 | |
input_dim: 227 | |
force_backward: true | |
layers { | |
name: "conv1" | |
type: CONVOLUTION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
SET st2Path=C:\Users\drew\Dropbox\Windows\Sublime Text Build 3083 x64\sublime_text.exe | |
rem add it for all file types | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /t REG_EXPAND_SZ /v "Icon" /d "%st2Path%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /t REG_SZ /v "" /d "%st2Path% \"%%1\"" /f | |
rem add it for folders | |
@reg add "HKEY_CLASSES_ROOT\Folder\shell\Open with Sublime Text" /t REG_SZ /v "" /d "Open with Sublime Text" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requires hombrew | |
# brew install imagemagick | |
if [ -x "$(which convert)" ]; then | |
function convert-raw-to-jpg() { | |
local quality=${1:-80}; | |
local max_dim=${2:-2650}; | |
local source_files=${3:-\*.CR2}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sources | |
# http://www.scipy.org/install.html | |
# http://sohliloquies.blogspot.ru/2015/07/setting-up-deep-dream-google-researchs.html | |
# https://github.com/BVLC/caffe/wiki/Ubuntu-14.04-VirtualBox-VM | |
# ~2gb dependencies | |
mkdir deep-dream && cd deep-dream | |
sudo apt-get install -y subversion cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://stackoverflow.com/questions/7787029/how-do-i-rename-all-files-to-lowercase | |
for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# subset of functions.sh from https://github.com/drewlustro/dotfiles | |
# put in your .bash_profile or .zshrc | |
function toolbelt-raspi-image-dump() { | |
local now=$(date +"%Y-%m-%d__%H-%M-%S"); | |
local host=${2:="raspi"}; | |
local diskNumber=${1:--1} | |
local bs="1M" | |
local cmd="sudo dd if=/dev/rdisk$1 bs=$bs | gzip > ~/Desktop/$host-$now.pi.gz" | |
local usage="Usage: $0 [sdCardDiskN] [hostname='raspi']" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/dev-local/makeshift-online/site/live | |
☻ svn info master a685ae7 ✗ | |
svn: E155036: Please see the 'svn upgrade' command | |
svn: E155036: The working copy at '/Users/drew/dev-local/makeshift-online/site/live' | |
is too old (format 8) to work with client version '1.9.4 (r1740329)' (expects format 31). You need to upgrade the working copy first. | |
~/dev-local/makeshift-online/site/live | |
☻ svn upgrade master a685ae7 ✗ | |
svn: E155019: Can't upgrade '/Users/drew/dev-local/makeshift-online/site/live' as it is not a working copy root, the root is '/Users/drew/dev-local/makeshift-online/site' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
componentDidMount: function () { | |
var that = this; | |
$.ajax({ | |
url: '/api/artists', | |
type: 'GET', | |
success: function (result) { | |
that.setState({ | |
artists: result | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Remapkey.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
find . -type f -iname '*.flac' -print0 | xargs -0 -n 1 -P 8 -I {} sox {} -C 320 -V2 {}.mp3 |