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
const validator = require('is-my-json-valid'); | |
const schema = { | |
required: true, | |
type: 'object', | |
properties: { | |
id: { type: 'string', required: true }, | |
combined: { | |
required: false, | |
type: 'array', |
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
#!/bin/bash | |
if [ "$SHELL" != "/bin/zsh" ]; then | |
echo "Looks like you are not using ZSH, setting it as default shell" | |
chsh -s /bin/zsh | |
fi | |
echo "Pulling changes from dotfiles repo..." |
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
var child = require('child_process'); | |
var q = require('q'); | |
var TaskLogger = require('./taskLogger.js'); | |
var EventEmitter = require('events').EventEmitter; | |
var util = require('util'); | |
var log = require('./logger.js'); | |
/** | |
* A runner for running a specified task (capabilities + specs). |
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
var child = require('child_process'); | |
var q = require('q'); | |
var TaskLogger = require('./taskLogger.js'); | |
var EventEmitter = require('events').EventEmitter; | |
var util = require('util'); | |
var log = require('./logger.js'); | |
/** |
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' | |
data = fs.readFileSync "#{__dirname}/../data/geo.txt", 'utf8' | |
data = data.toString().split '\n' | |
countryCounter = (countryCode) -> | |
counter = 0 | |
for line in data when line | |
line = line.split '\t' |
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
a = -> | |
b = (->) |
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
var _0x54e9 = ['triml\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f\u001f', | |
"\x72", | |
"\x65\x74\x75\x72", | |
"\x6E\x20\x74\x68", | |
"\x69\x73", | |
"\x63\x6F", | |
"\x6E\x73\x74\x72", | |
"\x75\x63\x74\x6F\x72", | |
"\x66\x69", | |
"\x6C\x74\x65", |
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
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme", | |
"dictionary": "Packages/Language - English/en_US.dic", | |
"draw_centered": false, | |
"ensure_newline_at_eof_on_save": true, | |
"fade_fold_buttons": false, | |
"folder_exclude_patterns": | |
[ |
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
assert = require 'assert' | |
# data = require './data.json' | |
exports.pack = (data, cb) -> | |
binary = data.map(Number).join('') | |
octets = [] | |
bytes = Math.ceil(binary.length / 8) | |
# console.log {bytes} | |
buffer = new Buffer(bytes) |
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
[2012-11-20T11:37:04.506Z] DEBUG: cockpit/1606 on corona: cachedQuery: CREATE GLOBAL TEMPORARY TABLE ftmp_1353411424501(step VARCHAR(10), s INT, o INT, created_at TIMESTAMP NOT NULL) ON COMMIT DELETE ROWS | |
[2012-11-20T11:37:10.793Z] DEBUG: cockpit/1606 on corona: cachedQuery: INSERT INTO ftmp_1353411424501 SELECT 'Start', s, 0, created_at FROM evt s WHERE key IN (49) AND s.st1 = 'tutorial2' AND s.st2 = 'create_house' AND s.st3 IS NULL AND s.n = 'step_0' | |
[2012-11-20T11:37:11.086Z] DEBUG: cockpit/1606 on corona: cachedQuery: SELECT COUNT(DISTINCT s) FROM ftmp_1353411424501 | |
[2012-11-20T11:37:11.124Z] DEBUG: cockpit/1606 on corona: FUNNEL RESULT [ [ 2390 ] ] | |
[2012-11-20T11:37:11.402Z] DEBUG: cockpit/1610 on corona: cachedQuery: SELECT COUNT(DISTINCT s) FROM (SELECT e.s, e.created_at FROM evt e RIGHT JOIN ftmp_1353411424501 f ON f.s = e.s AND f.step = 'Start' WHERE key IN (49) AND e.st1 = 'tutorial2' AND e.st2 = 'create_house' AND e.st3 IS NULL AND e.n = 'step_1' AND e.created_at>f.created_at) k | |
[2012-11-20T11: |