I love Git, I think it is better than the invention of slice of bread. Git is a version control system that is elegantly distributed yet beautifully fault tolerant with powerful features. Git is a fundamental development tool that powers my company, GoGuardian, and many other companies and communities. But just like anything in our lives, it is not perfect. It has its own dark side. Git is notorious for having sharp learning curve and complex commands. If you think learning git or explaining git is easy, good for you. You are a better person than I will ever be so go cure cancer. But for most of us peons, git is a challenging beast to wrap our heads around especially for more complex operations. It may possibly be due to the fact that our minds have been abused and in the shape of CVS, SVN or, even worse, clearcase. But I'm not the only one to think this: exhib
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
text { | |
font: 10px sans-serif; | |
} | |
rect.background { | |
fill: white; |
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
<!DOCTYPE html> | |
<body/> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<script> | |
var svg = d3.select('body') | |
.append('svg') | |
.attr('id', 'graph') | |
.attr('width', '100%') | |
.attr('height', '100%'); |
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
#!/usr/bin/env bash | |
# rmate | |
# Copyright (C) 2011-2015 by Harald Lapp <[email protected]> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
23:15:21.633 [main] DEBUG c.y.c.m.s.t.broker.SanityTestClient - Loading configuration from /home/y/conf/cloud_messaging_broker/cloud_messaging_broker.conf | |
23:15:21.644 [main] INFO c.y.c.m.s.t.broker.SanityTestClient - Start native test 111 | |
23:15:21.645 [main] INFO c.y.c.m.s.t.broker.SanityTestClient - Start native test 111 | |
23:15:21.653 [main] INFO c.y.c.m.s.t.broker.SanityTestClient - Start native test 111 | |
23:15:21.653 [main] INFO c.y.c.m.s.t.broker.SanityTestClient - >>>1 | |
23:15:21.665 [main] DEBUG c.y.c.m.client.admin.CmsAdmin - created: serviceUrl=http://devqa1-broker1.messaging.gq1.yahoo.com:4080, ycaRole=yahoo.cloud_messaging.hosts.broker.env-devqa | |
23:15:21.916 [main] DEBUG c.y.c.m.client.admin.CmsAdmin - ycaCert=v=1;a=yahoo.cloud_messaging.hosts.broker.env-devqa;h=10.211.18.79;t=1450377535;s=TYmaFmxhSmShsngoWin2Q7mTPpeV2Y2_iAjEumXETWXDdt5bwA3rYzW9RxJE9CMQcEkKlQEZi8NEXUrIeqlaVg-- | |
23:15:22.507 [main] INFO c.y.c.m.s.t.b.NativeSanityTestConsumer - Persistent topic persistent://cms/gq1/devqa1-broker1.mes |
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"; | |
let looper = (callback) => { | |
let n = 2000000; | |
while (n > 0) { | |
callback(n); | |
n--; | |
} | |
} |
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 a = {a: 1} | |
var b = {b: 2} | |
var map = new Map(); | |
var obj = {}; | |
obj[a] = "***"; | |
obj[b] = "###"; | |
map.set(a, "***"); | |
map.set(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
"use strict"; | |
let looper = (callback) => { | |
let n = 2000000; | |
while (n > 0) { | |
callback(n); | |
n--; | |
} | |
} |
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
// https://s3.amazonaws.com/archive.travis-ci.org/jobs/107128468/log.txt | |
travis_fold:start:worker_info | |
[0K[33;1mWorker information[0m | |
hostname: travis-worker-gce-org-prod-5:1f8229d5-9fe3-4eea-a6d2-31f3f6df03ea | |
version: v2.1.0-44-ge7ef5db https://github.com/travis-ci/worker/tree/e7ef5db4f469f8e76792dee8309e601b6e53e56b | |
instance: testing-gce-bf03c753-588d-409a-b787-80ec9ab583da:travis-ci-nodejs-precise-1450195912 | |
startup: 21.275166624s | |
travis_fold:end:worker_info |
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
// Generator, doing async without promise looking like sync... | |
function* countWithGenerator(n){ | |
for (var x = 0; x < n; x++) { | |
yield x | |
console.log('fetched!') | |
} | |
} | |
function countInteratively(n){ |
OlderNewer