This file contains hidden or 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 |
This file contains hidden or 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
<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> |
This file contains hidden or 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
webdriverReattach = require './webdriverReattach' | |
webdriverReattach.captureBrowser() | |
exports.config = | |
seleniumAddress: 'http://localhost:4444/wd/hub' |
This file contains hidden or 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
'use strict' | |
exports.add = (arr) -> | |
if arr.length is 0 | |
return [1] | |
result = [] | |
i = arr.length - 1 | |
c = 1 |
This file contains hidden or 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
fs = require 'fs' | |
GEO_FIELD_MIN = 0 | |
GEO_FIELD_MAX = 1 | |
GEO_FIELD_COUNTRY = 2 | |
exports.ip2long = (ip) -> | |
ip = ip.split '.', 4 |
This file contains hidden or 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
async = require 'async' | |
_ = require 'lodash' | |
glob = require 'glob' | |
path = require 'path' | |
expect = require 'expect.js' | |
fs = require 'fs' | |
migrationFilePattern = /^(\d+)(-.*[.]coffee)/ | |
getAllMigrations = -> |
NewerOlder