This is a 3D particles simulation created using three.js for CME151: Introduction to Data Visualization (Stanford University, Winter 2016).
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
# .tmux.conf: Disable status bar | |
set -g status off | |
# .bashrc: Update prompt info and styling | |
PS1='\[\033[33m\]$(prompt tmux)\[\033[00m\]'"$format"' \[\033[35m\]$(prompt git)\[\033[00m\]\[\033[31m\]$(prompt job)\[\033[00m\]\n\$ ' | |
tmux) | |
# Check for tmux. | |
if ! hash tmux 2>/dev/null ; then | |
return 1 |
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 | |
#----------------- | |
echo "Calendar: " | |
#----------------- | |
cal | grep --before-context 6 --after-context 6 --color -e " $(date +%e)" -e "^$(date +%e)" | |
#------------------- | |
echo "Time Zones: " |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */ | |
/* ========================================================================== | |
HTML5 display definitions | |
========================================================================== */ | |
/** | |
* Correct `block` display not defined in IE 8/9. | |
*/ |
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 | |
###################################################################### | |
# port_forward.sh | |
# ---------------- | |
# Enable port forwarding for Transmission. | |
# | |
# Requirements: | |
# Private Internet Access user and password as arguments | |
# | |
# Usage: |
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
/** | |
* @author mrdoob / http://mrdoob.com/ | |
*/ | |
THREE.SpriteCanvasMaterial = function ( parameters ) { | |
THREE.Material.call( this ); | |
this.type = 'SpriteCanvasMaterial'; |
This is a data narrative created using C3.js for CME151: Introduction to Data Visualization (Stanford University, Winter 2016).
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
on run {input, parameters} | |
if (count of input) > 0 then | |
tell application "iTerm" | |
if (count of terminals) = 0 then | |
activate | |
end if | |
tell (current terminal) | |
tell (launch session "Default") |
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
for f in *.flac ; do | |
# Regex for whitespaces in filenames. | |
# Specify input and output filetypes. | |
out="${f[@]/%flac/mp3}" | |
# Use -qscale or -vbr for VBR [0-9]. | |
# 0: slowest & best possible algo | |
# 1: slow and not as high quality | |
# 2: recommended (same as -h) | |
# 5: default; good speed, reasonable quality |
NewerOlder