Skip to content

Instantly share code, notes, and snippets.

View dandydanny's full-sized avatar
💭
Job Hunting

Daniel W. Lu dandydanny

💭
Job Hunting
View GitHub Profile
@dandydanny
dandydanny / .zshrc
Created April 29, 2018 16:03
My .zshrc for ZSH / Oh-My-ZSH
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=/Users/danny/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"

Keybase proof

I hereby claim:

  • I am dandydanny on github.
  • I am dandydanny (https://keybase.io/dandydanny) on keybase.
  • I have a public key whose fingerprint is 7E62 C41E 074E 10E6 B0B4 C36A 9468 A3FC 9DF0 4971

To claim this, I am signing this object:

@dandydanny
dandydanny / .bash_profile
Last active April 29, 2018 16:06
Useful .bash_profile entries I've collected for Mac OS X
# Add rbenv to bash so that it loads every time you open a terminal
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
#Homebrew dir
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Aliasing ls command with useful options
REM Name: vlc_capture.bat
REM Date: 2015-10-10
REM Purpose: Launch VLC to record H.264/MP3 MP4 container screen cast for an hour on the second desktop.
REM Tested on Windows 7 Professional 64-Bit and VLC 2.1.5
"C:\Program Files\VideoLAN\VLC\vlc" screen:// :screen-left="1680" :screen-fps="15" :live-caching="300" -vvv --sout-file-format --sout="#transcode{vcodec=h264, fps=15, acodec=mp3}:std{access=file,mux=mp4,dst=C:\vlc_capture\%%Y-%%m-%%d_%%H-%%M-%%S.mp4}" --run-time="3600" vlc://quit
EXIT
@dandydanny
dandydanny / setup_dev_environment.md
Last active January 24, 2017 20:48
Setting Up Development Environment (Mac OS X)

Xcode

Install from Mac App store. Will have command line tools and C compiler needed for Homebrew to build / compile. Also comes with Apple GIT.

GIT - Version control system and code repository

Included in Xcode. Haven’t see the need to use the non-Apple git.

iTerm2 - Nice terminal app with advanced features (screen split, AppleScript support for automation)

@dandydanny
dandydanny / genpop_3.au3
Last active August 29, 2015 14:23
AutoIt3 Script to aid manual testing of SV2 Surveys
;Script Name: SV2 Flex Survey Filler
;Author: Daniel Lu
;Dependencies: AutoIt 3
; Windows 7, 1280x960 resolution, Windows Classic Theme
; Mozilla Firefox
;Version History: 0.5 - Added variable for governing transition wait time and mouse speed
; 0.4 - Added systray balloon tips to show script execution state
; 0.3 - Added image capture
; 0.2 - Replaced some hard-wired timers with color
; comparison for detecting slide change
//------------------------------------------------------------------------------------------------------------------
// YOUR CODE: Create your Zoo "object literal" and Animal "constructor" and "prototypes" here.
//------------------------------------------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------------------
// DRIVER CODE: Do **NOT** change anything below this point. Your task is to implement code above to make this work.
//------------------------------------------------------------------------------------------------------------------
@dandydanny
dandydanny / index.html
Created February 6, 2014 15:26 — forked from dbc-challenges/index.html
DBC Phase 2 Practice Assessment Part 3
<!doctype html>
<html>
<head>
<link rel="stylesheet" href="http://cdn.jsdelivr.net/normalize/2.1.0/normalize.css">
<link rel="stylesheet" href="main.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lato:100,900">
<link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/font-awesome/3.0.2/css/font-awesome.min.css">
</head>