Skip to content

Instantly share code, notes, and snippets.

View JHawk's full-sized avatar

Joshua Hawkins JHawk

View GitHub Profile
@JHawk
JHawk / Rakefile to install a gem and copy it to my Documents dir so I can play with it
Created October 12, 2010 18:48
Rakefile to install a gem and copy it to my Documents dir so I can play with it - run as sudo like: sudo rake G=bundler,nokogiri,rails --trace
require 'rubygems'
require 'rake'
require 'fileutils'
desc "installs and copies gems to Documents for src code inspection - just type sudo rake G=gem1,gem2,gem3..."
task :default => :gem_cp
task :gem_cp do
class Doppleganger
def initialize(gems)
@gems = gems
@JHawk
JHawk / .conkyrc
Created January 15, 2011 14:42
conky config
######################
# - Conky settings - #
######################
update_interval 2
total_run_times 0
net_avg_samples 1
cpu_avg_samples 1
imlib_cache_size 0
double_buffer yes
@JHawk
JHawk / toggle_dock
Created January 15, 2011 15:22
toggle_dock
if ps ax | grep -v grep | grep -i avant-window
then
killall -9 avant-window-navigator
else
avant-window-navigator --start
fi
@JHawk
JHawk / sudoku.fs
Created March 27, 2012 18:27
F# sudoku
open System
type Cell = { possible_values: int array; value: int option }
with override this.ToString() = match this.value with Some i -> i.ToString() | _ -> "."
static member PossibleValues = [|1..9|]
type Puzzle = array<array<Cell>>
module internal Setup =
let puzzle =
@JHawk
JHawk / notes.clj
Created August 24, 2012 17:26
Programming Clojure Second Edition Notes
; MAIN
; (defn -main [s]
; (hello "josh"))
(require '[clojure.string :as str])
; Ch.1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; (printnl "hi")
@JHawk
JHawk / .block
Last active December 25, 2020 19:07
Perspective Streaming Example
license: apache-2.0
@JHawk
JHawk / .block
Last active July 29, 2020 04:52
Perspective NYC Citibike Example
license: apache-2.0
height: 1200
@JHawk
JHawk / .block
Last active July 15, 2019 17:28
Perspective Superstore Arrow Example
license: apache-2.0
@JHawk
JHawk / .block
Last active July 15, 2019 17:35
Perspective CSV Example
license: apache-2.0
@JHawk
JHawk / .block
Last active July 15, 2019 17:32
Perspective Olympics Example
license: apache-2.0