View this is a test gist
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
# good morning | |
print 5 |
View gist:3f154636f62151641a74
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
-- | |
-- xmonad example config file for xmonad-0.9 | |
-- | |
-- A template showing all available configuration hooks, | |
-- and how to override the defaults in your own xmonad.hs conf file. | |
-- | |
-- Normally, you'd only override those defaults you care about. | |
-- | |
-- NOTE: Those updating from earlier xmonad versions, who use | |
-- EwmhDesktops, safeSpawn, WindowGo, or the simple-status-bar |
View gist:12ead62c04bf72d09a46
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
sudo ipfw add 100 fwd 127.0.0.1,9000 tcp from any to any 80 in |
View gist:2424481
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
a = 1 # 1000^0 | |
i = 0 # represents the largest power of 1000 we found | |
# find the largest power of 1000 that fits into n | |
while a <= n: | |
#print a,n,i | |
if a*1000 <= n: | |
a *= 1000 | |
i += 1 | |
else: |
View gist:3218201
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
(ns sudoku | |
(:refer-clojure :exclude [==]) | |
(:use clojure.core.logic)) | |
(defn get-square [grid x y] | |
(for [x (range x (+ x 3)) | |
y (range y (+ y 3))] | |
(get-in grid [x y]))) | |
(defn init [grid [pos value]] |
View gist:392846946e4dc0e918b3
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
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js | |
listening on *:3000 | |
{ url: 'http://seanneilan.com/', status: true, report: [] } | |
{ [WebDriverError: chrome not reachable | |
(Session info: chrome=49.0.2623.87) | |
(Driver info: chromedriver=2.21.371461 (633e689b520b25f3e264a2ede6b74ccc23cb636a),platform=Linux 3.13.0-65-generic x86_64)] name: 'WebDriverError' } |
View gist:7bf0e67db7540cb51f0b
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
(env) vagrant@vagrant-ubuntu-trusty-64:~/Mobile-Checker$ node app.js | |
listening on *:3000 | |
{ url: 'http://seanneilan.com/', status: true, report: [] } | |
/home/vagrant/Mobile-Checker/node_modules/selenium-webdriver/lib/promise.js:654 | |
throw error; | |
^ | |
WebDriverError: unknown error: session deleted because of page crash | |
from unknown error: cannot determine loading status | |
from tab crashed |