Skip to content

Instantly share code, notes, and snippets.

@rosado
rosado / gist:1953500
Created March 1, 2012 21:55
Visual Studio aliases
alias rep Build.RebuildSelection
alias res Build.RebuildSolution
alias tn Window.MovetoNextTabGroup
alias pn Window.MovetoPreviousTabGroup
@rosado
rosado / opengl.clj
Created February 15, 2012 18:41
example opengl code for clj-processing
;; processing example
(ns mouse-example-3d
(:use [rosado.processing]
[rosado.processing.applet]))
(def mouse-position (atom [0 0]))
(defn draw
[]
@rosado
rosado / gist:961566
Created May 8, 2011 18:23
JavaRagelTemplate.rl
%%{
machine hello;
main := ( 'hello' | 'ahoy' );
}%%
public class FSM{
%% write data;
public FSM(){
$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
}
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"
;; 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)
;;
;; 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)
;;