Skip to content

Instantly share code, notes, and snippets.

@ambidextrousTx
ambidextrousTx / gn
Created March 12, 2015 08:23
Change to the latest subdirectory created in a directory
alias gn='cd `ls -lht | head -2 | tail -1 | cut -d" " -f9`'
@ambidextrousTx
ambidextrousTx / natureofcode1_3.pde
Last active August 29, 2015 14:04
A random walker with a 50% chance of following the mouse; with added behavior on key presses
// Building off the first chapter in Nature of Code by Daniel Shiffman
// Solution to exercise 1.3, adding key presses and different behavior
class Walker {
int x;
int y;
Walker() {
x = width/ 2;
y = height/ 2;
from random import randint, shuffle
from collections import defaultdict
def gen_rand():
start = 97
end = 122
ends = ['us', 'ly', 'li', 'io']
vowels = ['a', 'e', 'i', 'o', 'u']
forbidden = ['j', 'h']
consonents = []
@ambidextrousTx
ambidextrousTx / sleepsort.py
Created December 15, 2012 07:18
Sleep sort
"""
Sleep sort using Python multiprocessing module
Idea:
- read a number n from a list
- spawn a new process
- within the process
- sleep n seconds
- print that number
@ambidextrousTx
ambidextrousTx / scalaidea.txt
Created December 11, 2012 03:28
Setting up a Scala+SBT project in IDEA
http://www.decodified.com/scala/2010/10/12/an-integrated-sbt-and-idea-scala-dev-setup.html
http://www.itdevspace.com/2011/04/setup-scala-with-sbt-in-intellij-idea.html
https://github.com/mpeltonen/sbt-idea/tree/sbt-0.12#requirements
http://www.scala-sbt.org/release/docs/Getting-Started/Running.html
@ambidextrousTx
ambidextrousTx / ambdxusesthis.txt
Last active July 12, 2018 03:27
Ambidextrous Uses This
UNIX/ OS X
==========
Zsh - Custom theme starting from Oh-My-Zsh's Soliah theme
Tmux - with a config built from Brian Hogan's book, and custom colors
iTerm2 - a better terminal, with the right Option key as +Esc, so that all 'Alt' shortcuts for bash/zsh work as well
Fonts: Source Code Pro, Inconsolata, Monaco, Droid Sans Mono, DejaVu Sans Mono, Monofur, Consolas, Monoid, Hack, Fantasque
GitHub DotFiles repo has all config files for vim, zsh, bash, tmux, etc
Code Editing
============
@ambidextrousTx
ambidextrousTx / about.md
Created August 27, 2011 04:00 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer