I hereby claim:
- I am kyungw00k on github.
- I am kyungw00k (https://keybase.io/kyungw00k) on keybase.
- I have a public key whose fingerprint is 321D 20A2 E832 8F37 CF07 2018 199E 8C68 1ACC 7483
To claim this, I am signing this object:
function loadScript (src, cb) { | |
var userAgent = navigator.userAgent.toLowerCase() | |
var isIE = (userAgent.indexOf('msie') !== -1) ? parseInt(userAgent.split('msie')[1], 10) : false | |
var doc = document | |
var tag = 'script' | |
var el = doc.createElement(tag) | |
el.done = false | |
el.async = true | |
el.charset = 'utf-8' |
// assertions/compareScreenshot.js | |
var resemble = require('resemble'), | |
fs = require('fs'); | |
exports.assertion = function(filename, expected) { | |
var screenshotPath = 'test/screenshots/', | |
baselinePath = screenshotPath + 'baseline/' + filename, | |
resultPath = screenshotPath + 'results/' + filename, | |
diffPath = screenshotPath + 'diffs/' + filename; |
/*! | |
* jQuery postMessage - v1.0 - 8/26/2011 | |
* | |
* Copyright (c) 2011 "zachleat" Zach Leatherman | |
* Copyright (c) 2009 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://jquery.org/license | |
*/ | |
/* Forked from http://benalman.com/projects/jquery-postmessage-plugin/ |
if (!document.querySelectorAll) { | |
document.querySelectorAll = function (selectors) { | |
var style = document.createElement('style'), elements = [], element; | |
document.documentElement.firstChild.appendChild(style); | |
document._qsa = []; | |
style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}'; | |
window.scrollBy(0, 0); | |
style.parentNode.removeChild(style); |
I hereby claim:
To claim this, I am signing this object:
# Rotate SSH Keys between two host groups | |
# | |
# Inspired by http://vicendominguez.blogspot.kr/2014/05/ansible-generating-pub-key-file-and.html | |
# | |
- name: Remove current .ssh/ | |
hosts: host_group1, host_group2 | |
remote_user : "{{ user }}" | |
tasks: | |
- file: path={{item}} state=absent |
(function () { | |
'use strict'; | |
angular.module('ngHighchart') | |
.directive('chart', function () { | |
Highcharts.setOptions({ | |
lang: { | |
loading: 'λ‘λ©μ€...', | |
months: ['1μ', '2μ', '3μ', '4μ', '5μ', '6μ', '7μ', '8μ', '9μ', '10μ', '11μ', '12μ'], | |
shortMonths: ['1μ', '2μ', '3μ', '4μ', '5μ', '6μ', '7μ', '8μ', '9μ', '10μ', '11μ', '12μ'], |
require('fs') | |
.readFileSync(process.argv[2]) | |
.toString() | |
.split(/\r?\n/) | |
.forEach(function (line) { | |
/* do somthing */ | |
}) |
{ | |
"name": "my-queue", | |
"version": "1.0.0", | |
"description": "My Queue", | |
"main": "queue_worker.js", | |
"dependencies": { | |
"firebase": "2.x", | |
"firebase-queue": "^1.0.0" | |
} | |
} |
(by @andrestaltz)
So you're curious in learning this new thing called Reactive Programming, particularly its variant comprising of Rx, Bacon.js, RAC, and others.
Learning it is hard, even harder by the lack of good material. When I started, I tried looking for tutorials. I found only a handful of practical guides, but they just scratched the surface and never tackled the challenge of building the whole architecture around it. Library documentations often don't help when you're trying to understand some function. I mean, honestly, look at this:
Rx.Observable.prototype.flatMapLatest(selector, [thisArg])
Projects each element of an observable sequence into a new sequence of observable sequences by incorporating the element's index and then transforms an observable sequence of observable sequences into an observable sequence producing values only from the most recent observable sequence.