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
! function(e, t) { | |
"object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define([], t) : "object" == typeof exports ? exports.video = t() : (e.Twitch = e.Twitch || {}, e.Twitch.video = t()) | |
}(this, function() { | |
return function(e) { | |
function t(r) { | |
if (n[r]) return n[r].exports; | |
var i = n[r] = { | |
exports: {}, | |
id: r, | |
loaded: !1 |
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
; | |
(function() { | |
function q(f, g) { | |
if (!(f instanceof g)) throw new TypeError("Cannot call a class as a function"); | |
} | |
function r(f, g) { | |
if (!f) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); | |
return !g || "object" !== typeof g && "function" !== typeof g ? f : g | |
} |
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
# dependencies | |
fs = require 'fs' | |
http = require 'http' | |
path = require 'path' | |
Crawler = require 'crawler' | |
# script | |
crawled = {} | |
c = new Crawler { |
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
$('.issue-title-link').each(function(i, el) { | |
window.open($(el).attr('href'), '_blank') | |
}); |
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
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch target_file.ext’ --prune-empty --tag-name-filter cat -- --all |
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
How to connect | |
> sqlite3 ~/Library/Messages/chat.db | |
Helpful Commands | |
sqlite> .help | |
sqlite> .tables | |
sqlite> .headers off | |
sqlite> .headers on | |
sqlite> .mode line | |
sqlite> .mode list |
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
#!/bin/bash | |
# credit: Robert Larsen | |
function create_shard(){ | |
shard=$1 | |
repl_factor=$2 | |
shard_name="shard_${shard}" | |
shard_dir=shard${shard} | |
init='rs.initiate({_id:"'${shard_name}'",members:[' |
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
lass KeenHttpOutput < Fluent::Output | |
Fluent::Plugin.register_output('out-keen-http', self) | |
def initialize | |
super | |
require 'rubygems' | |
require 'eventmachine' | |
require 'em-http-request' | |
require 'cgi' | |
require 'json' |
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
initKeenIO: (project_id, write_key) -> | |
window.Keen = window.Keen || { | |
configure: (e) -> | |
this._cf = e | |
addEvent: (e,t,n,i) -> | |
this._eq = this._eq || [] | |
this._eq.push [e,t,n,i] | |
setGlobalProperties: (e) -> | |
this._gp = e | |
onChartsReady: (e) -> |
NewerOlder