Skip to content

Instantly share code, notes, and snippets.

--
-- 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
@tristanstraub
tristanstraub / gist:1b6f023513cf42f4952d
Created June 29, 2015 00:22
Date difference across DST boundary.
<html>
<head>
<script src='https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.7.0/moment.js'></script>
<script>
console.log(moment('2015-04-30T00:00:00').diff(moment('2015-04-01T00:00:00'), 'hours'));
</script>
</head>
<body>
</body>
webdriverReattach = require './webdriverReattach'
webdriverReattach.captureBrowser()
exports.config =
seleniumAddress: 'http://localhost:4444/wd/hub'
'use strict'
exports.add = (arr) ->
if arr.length is 0
return [1]
result = []
i = arr.length - 1
c = 1
fs = require 'fs'
GEO_FIELD_MIN = 0
GEO_FIELD_MAX = 1
GEO_FIELD_COUNTRY = 2
exports.ip2long = (ip) ->
ip = ip.split '.', 4
async = require 'async'
_ = require 'lodash'
glob = require 'glob'
path = require 'path'
expect = require 'expect.js'
fs = require 'fs'
migrationFilePattern = /^(\d+)(-.*[.]coffee)/
getAllMigrations = ->