Skip to content

Instantly share code, notes, and snippets.

View seabre's full-sized avatar

Sean Brewer seabre

  • CrowdFiber
  • Chattanooga, TN
View GitHub Profile
@seabre
seabre / chkagainstschema.js
Created June 5, 2014 23:53
Check against a schema.
var check = require('check-types')
, fs = require('fs')
, csv = require('fast-csv')
, _ = require('lodash')
, stream = fs.createReadStream("Ptax_Property_Data_5_Yr.csv");
function valueToType(v) {
if (isNaN(v)) {
return v;
} else {
@seabre
seabre / Makefile
Created May 16, 2014 03:12
Filtrex Makefile
MODULES := ./node_modules
BIN := $(MODULES)/.bin
.PHONY: install_modules all clean
all: install_modules filtrex.js filtrex.min.js
clean:
rm -f filtrex.js
rm -f filtrex.min.js
@seabre
seabre / three.cljs
Last active September 13, 2021 06:19 — forked from michiakig/three.cljs
Three.js demo with ClojureScript. Actually works.
(ns three.demo)
(def THREE js/THREE)
(def camera (THREE.PerspectiveCamera. 75 (/ (.-innerWidth js/window)
(.-innerHeight js/window)) 1 10000))
(set! (.-z (.-position camera)) 1000)
(def scene (THREE.Scene.))
(def geometry (THREE.CubeGeometry. 200 200 200))
(def obj (js/Object.))
(set! (.-color obj) 0xff0000)
(set! (.-wireframe obj) true)
@seabre
seabre / Guardfile
Last active December 31, 2015 13:19
LaTeX and Guard setup
# Guardfile to watch the LaTeX and automatically build it if it changes.
guard 'rake', :task => 'build' do
watch('mydocument.tex')
end
@seabre
seabre / output.txt
Created November 18, 2013 01:43
It had to be done.
Palindromes:
a
aba
ababa
abba
ada
adda
adinida
aeaea
aenea
wget -q -O - http://rpi.autostatic.com/autostatic.gpg.key | sudo apt-key add -
sudo wget -q -O /etc/apt/sources.list.d/autostatic-audio-raspbian.list http://rpi.autostatic.com/autostatic-audio-raspbian.list
sudo apt-get update
@seabre
seabre / deploy_dandelion.sh
Created September 24, 2013 19:45
Dandelion Deployment
# Dandelion, deploy on production
dandelion deploy
# Dandelion, deploy on staging
dandelion --config=dandelion_staging.yml deploy
delete from wp_options where option_name = 'class_generic_support';
delete from wp_options where option_name = 'widget_generic_support';
delete from wp_options where option_name = 'fwp';
delete from wp_options where option_name = 'wp_check_hash';
delete from wp_options where option_name = 'ftp_credentials';
delete from wp_options where option_name = 'rss_7988287cd8f4f531c6b94fbdbc4e1caf';
delete from wp_options where option_name = 'rss_d77ee8bfba87fa91cd91469a5ba5abea';
delete from wp_options where option_name = 'rss_552afe0001e673901a9f2caebdd3141d';
@seabre
seabre / intro.html
Last active December 21, 2015 01:19
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Basic Template</title>
@seabre
seabre / homebrew_quirks.md
Created July 29, 2013 16:41
Homebrew Quirks With Nokogiri And MySQL on OS X

Nokogiri (v1.5.0, specifically):

Mostly follow instructions from here. libxml2, libiconv, and libxslt library versions will probably be different, but to install with those libraries in general, run:

gem install nokogiri -v '1.5.0' -- --with-xml2-include=/usr/local/Cellar/libxml2/2.9.1/include/libxml2 --with-xml2-lib=/usr/local/Cellar/libxml2/2.9.1/lib --with-xslt-dir=/usr/local/Cellar/libxslt/1.1.28 --with-iconv-include=/usr/local/Cellar/libiconv/1.14/include --with-iconv-lib=/usr/local/Cellar/libiconv/1.14/lib