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
@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
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
drew@ubuntu:~$ cd Desktop/ | |
drew@ubuntu:~/Desktop$ ls | |
vmware-tools-distrib | |
drew@ubuntu:~/Desktop$ cd vmware-tools-distrib/ | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ ls | |
bin doc etc FILES INSTALL installer lib vmware-install.pl | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ clear | |
[3;J | |
drew@ubuntu:~/Desktop/vmware-tools-distrib$ sudo ./vmware-install.pl | |
[sudo] password for drew: |
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
server { | |
listen 80; | |
root /sites/SOME-SITE-ROOT-DIRECTORY/staging0; | |
index index.html index.htm; | |
server_name staging0.jessechorng.com; | |
location / { | |
try_files $uri $uri/ /index.html /index.htm; |
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/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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
// | |
// KeyboardViewController.swift | |
// Demo Custom Keyboard | |
// | |
// Created by Drew Lustro on 10/20/14. | |
// | |
// Original derived from tutorial found on AppDesignVault | |
// http://www.appdesignvault.com/ios-8-custom-keyboard-extension/ | |
// | |
// |
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
(function() { | |
define('shaders/ColorWheel.shader', [] , function () { | |
return { | |
uniforms: { | |
time: { type: 'f', value: 0.0 } | |
}, | |
fragmentShader: [ | |
"uniform float time;", |
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
root = true | |
[*] | |
charset = utf-8 | |
indent_style = space | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[*.js] |
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
int xspacing = 3; // How far apart should each horizontal location be spaced | |
int w; // Width of entire wave | |
int maxwaves = 4; // total # of waves to add together | |
int numwaves = 15; // total # of separate waves | |
float theta = 0.0; | |
float[] amplitude = new float[maxwaves]; // Height of wave | |
float[] dx = new float[maxwaves]; // Value for incrementing X, to be calculated as a function of period and xspacing | |
float[] yvalues; // Using an array to store height values for the wave (not entirely necessary) | |
float[] xpow = new float[numwaves]; |