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 urls = ['http://www.google.com', 'http://www.twitter.com']; | |
| function get_request(url) { | |
| return new Promise(function (resolve, reject) { | |
| ... | |
| }); | |
| } |
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
| Error: write EPROTO | |
| at Object.exports._errnoException (util.js:874:11) | |
| at exports._exceptionWithHostPort (util.js:897:20) | |
| at WriteWrap.afterWrite (net.js:763:14) |
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
| Error: write EPROTO | |
| at Object.exports._errnoException (util.js:874:11) | |
| at exports._exceptionWithHostPort (util.js:897:20) | |
| at WriteWrap.afterWrite (net.js:763:14) |
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 Schema = function (input) { | |
| var output = {}; | |
| Object.keys(input).forEach(function (key) { | |
| if (input[key] === Number) { | |
| output[key] = 'REAL'; | |
| } | |
| else if (input[key] === String || input[key] === 'TEXT') { | |
| output[key] = 'TEXT'; |
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
| [ | |
| { | |
| "code": "AF", | |
| "name": "Afghanistan", | |
| "provinces": [ | |
| { | |
| "code": "BDS", | |
| "name": "Badakhshā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
| PROJECT = hello_erlang | |
| DEP_PLUGINS = cowboy hexpm.mk | |
| BUILD_DEPS = hexpm.mk | |
| dep_hexpm.mk = git https://github.com/botsunit/mix.mk.git master | |
| dep_cowboy_commit = 2.1.0 | |
| dep_pgapp = hex 0.0.2 | |
| dep_poison = hex 3.1.0 | |
| dep_epgsql = hex 3.4.0 |
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
| // Random code sequences I found throughout a flashing tool | |
| D = new hs("RCS_EraseCoding", "31 01 0F 01", 3, false); | |
| e = new ha("DSC_DS", "10 01"); | |
| f = new ha("DSC_ES", "10 03"); | |
| g = new ha("DSC_PS", "10 02"); | |
| h = new ha("DSC_DEVS", "10 4F"); | |
| i = new ha("DSC_CS", "10 41"); | |
| j = new ku("RCS_SEMD", "31 01 0F 0C 00"); | |
| k = new ku("RCS_SEMF", "31 01 0F 0C 03"); |
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
| // mandeljit.c | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <sys/mman.h> | |
| #include <stdarg.h> | |
| typedef struct { | |
| char *dest; | |
| } microasm; | |
| // this makes it more obvious what we're doing later on |
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 Promise = require('bluebird'); | |
| const fs = require('fs'); | |
| const execa = require('execa'); | |
| class BlueGreenDeployment { | |
| constructor({appName, blueProxyPassPattern, greenProxyPassPattern, nginxConfigFile}) { | |
| this.appName = appName; | |
| this.blueProxyPassPattern = blueProxyPassPattern; | |
| this.greenProxyPassPattern = greenProxyPassPattern; | |
| this.nginxConfigFile = nginxConfigFile; |
OlderNewer