Skip to content

Instantly share code, notes, and snippets.

View rpalo's full-sized avatar

Ryan Palo rpalo

View GitHub Profile
@rpalo
rpalo / venvwrapper.sh
Last active July 25, 2017 22:17 — forked from iley/venvwrapper.sh
Like virtualenvwrapper, but for venv, included with Python 3.4 and above!
if [ -z "$WORKON_HOME" ]; then
export WORKON_HOME="$HOME/.virtualenvs"
fi
workon () {
virtualenv="$1"
if [ -z "$virtualenv" ]; then
echo "Usage: workon env_name" >&2
return 1
fi
@rpalo
rpalo / an-old-hope.itermcolors
Created October 6, 2017 00:37
Colors file for iTerm2 that emulates the "An Old Hope" Star Wars Theme
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Ansi 0 Color</key>
<dict>
<key>Alpha Component</key>
<real>1</real>
<key>Blue Component</key>
<real>0.19999992847442627</real>
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@rpalo
rpalo / e-for-everywhere.ipynb
Created October 28, 2017 20:36
E for Everywhere
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rpalo
rpalo / add-ints-example.ps1
Last active April 7, 2018 15:15
Code Samples for Intro to PowerShell Article
PS> 2 + 2
4
PS> 2 + 2
4
PS> 4.2 / 3
1.4
PS> Get-ChildItem env:
# And to get to a specific one:
PS> Get-Content env:PATH
PS> $env:PATH
PS> Get-Process