Source : Learn to combine RxJs sequences with super intuitive interactive diagrams
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 decode = (input) => { | |
| let output = ''; | |
| let payload = input.substr(1).split('').reverse().join(''); | |
| const magicNumber = parseInt(input[0], 10); | |
| const alphabet = 'абвгдеёжзийклмнопрстуфхцчшщъыьэюя'; | |
| while (payload.length > 0) { | |
| let currentSym = payload.length > 1 | |
| ? payload.substr(0, 2) |
- Detailed Cheatsheet: http://danielkummer.github.io/git-flow-cheatsheet/
- Command-line Arguments Reference: https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
- git-flow Home: https://github.com/nvie/gitflow
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
| (function () { | |
| "use strict"; | |
| angular.module("exampleApp") | |
| .factory("WebWorks", ["$q", function ($q) { | |
| var worker = new Worker('scripts/workers/doWork.js'); | |
| var defer; | |
| worker.addEventListener('message', function(e) { |
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
| angular.module('csp', [ ]) | |
| .factory('imageLoader', [ '$http', function ($http) { | |
| return { | |
| load: function (url) { | |
| return $http.get(url, { | |
| cache: true, | |
| responseType: 'blob' | |
| }).then(function (response) { | |
| return URL.createObjectURL(response.data); | |
| }); |
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'; | |
| //npm install gulp gulp-minify-css gulp-uglify gulp-clean gulp-cleanhtml gulp-jshint gulp-strip-debug gulp-zip --save-dev | |
| var gulp = require('gulp'), | |
| clean = require('gulp-clean'), | |
| cleanhtml = require('gulp-cleanhtml'), | |
| minifycss = require('gulp-minify-css'), | |
| jshint = require('gulp-jshint'), | |
| stripdebug = require('gulp-strip-debug'), |
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
| /** | |
| * Created by flammenmensch on 26.05.14. | |
| */ | |
| window.Lib = (function () { | |
| return { | |
| /** | |
| * Anynchronous forEach | |
| * @param {Array} source | |
| * @param {Function} fn | |
| * @param {Function} done |
I have the following JS code:
db.models
.Vobject
.findAndCountAll({
where: [{type: 1 }],
include: [{model: db.models.Tag, where: {name: ['iron', 'tefal']}}],
limit: 10
})
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 fs = require('fs'), | |
| request = require('request'); | |
| var download = function(uri, filename){ | |
| request.head(uri, function(err, res, body){ | |
| console.log('content-type:', res.headers['content-type']); | |
| console.log('content-length:', res.headers['content-length']); | |
| request(uri).pipe(fs.createWriteStream(filename)); | |
| }); |
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'; | |
| var util = require('util'), | |
| https = require('https'), | |
| winston = require('winston'), | |
| querystring = require('querystring'); | |
| var PushoverLogger = winston.transports.PushoverLogger = function (options) { | |
| this.token = options.token; | |
| this.user = options.user; |


