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
;; boids | |
;; a Clojure+Processing example | |
;; | |
;; written around Dec 2008/Jan 2009 | |
;; | |
;; The code is in the Public Domain. | |
;; | |
;; based on Flocking example by by Daniel Shiffman | |
;; (distributed with processing) | |
;; |
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
;; mutable boids | |
;; a Clojure+Processing example | |
;; | |
;; written around July/August 2009 | |
;; | |
;; The code is in the Public Domain. | |
;; | |
;; based on Flocking example by by Daniel Shiffman | |
;; (distributed with processing) | |
;; |
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 get-libs(){ | |
if(test-path "lib"){ | |
$jars = (ls lib -include *.jar -recur) | foreach { $_.FullName } | |
if($jars){ | |
[String]::Join(";", $jars) | |
} | |
} | |
} | |
$VERSION="1.0.0-SNAPSHOT" |
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
$git_repo_location = (get-location).Path | |
function Prompt () { | |
$location = $git_repo_location | |
$id = 1 | |
$historyItem = Get-History -Count 1 | |
if($historyItem) | |
{ | |
$id = $historyItem.Id + 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
%%{ | |
machine hello; | |
main := ( 'hello' | 'ahoy' ); | |
}%% | |
public class FSM{ | |
%% write data; | |
public FSM(){ |
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
;; processing example | |
(ns mouse-example-3d | |
(:use [rosado.processing] | |
[rosado.processing.applet])) | |
(def mouse-position (atom [0 0])) | |
(defn draw | |
[] |
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
alias rep Build.RebuildSelection | |
alias res Build.RebuildSolution | |
alias tn Window.MovetoNextTabGroup | |
alias pn Window.MovetoPreviousTabGroup |
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
--type-set=clojure=.clj | |
--type-set=cljs=.cljs | |
--type-add=lisp=.clj,.cljs | |
--type-add=scala=.scala | |
--type-add=css=.sass,.less,.scss | |
--type-add=ruby=.rake,.rsel,.builder,.thor | |
--type-add=html=.haml,.html.erb,.html.haml | |
--type-add=js=.js.erb,.coffee | |
--type-set=cucumber=.feature | |
--type-set=c=.c,.cpp,.ino,.pde,.h |
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
unbind C-b | |
set -g prefix C-z | |
# Set status bar | |
set -g status-bg black | |
set -g status-fg white | |
set -g status-left '#[fg=green]#H' | |
set-option -g allow-rename off | |
set-option -g automatic-rename off |
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 histogram () { | |
awk ' NF > 0{ counts[$0] = counts[$0] + 1; } END { for (word in counts) print word, counts[word]; }' | |
} | |
function awk-average () { | |
awk '{ s+=$1 } END { print 's/NR' }' | |
} |
OlderNewer