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
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var source = require('vinyl-source-stream'); | |
var evs = require('event-stream'); | |
var uglify = require('gulp-uglify'); | |
var watchify = require('watchify'); | |
var browserSync = require('browser-sync').create(); | |
//var reload = browserSync.reload; |
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
// Hello. I'm learning. Thank you for sharing your insights. | |
var sUtil = require('sUtils.js'); | |
var obj = { | |
a:[1,2], | |
b:[3,4], | |
} | |
// (1) Check if is array. If it is array, then apply function to it's value. |
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
/* | |
Thank you for helping. | |
I am trying to figure out how RxJS works. | |
I'm really new to this and haven't made 'the leap' yet. | |
I appreciate your feedback. | |
Question: | |
Is it good idea to use RxJS to replace 'callbacks' in a routine? | |
I'm after a solution for 'callback hell'. | |
And I've read somewhere RxJS is a replacement for Promises. |
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
const Rx = require('rxjs'); | |
// This function is expected to be executed serially. One item per time. So it should take 6 seconds. | |
function processItem(item){ | |
let queueTransformed = [ | |
Rx.Observable.timer(1000).do(x=>console.log('1',item)).map(x=>'1'+item), | |
Rx.Observable.timer(1000).do(x=>console.log('2',item)).map(x=>'2'+item), | |
Rx.Observable.timer(1000).do(x=>console.log('3',item)).map(x=>'3'+item), | |
Rx.Observable.timer(1000).do(x=>console.log('4',item)).map(x=>'4'+item), | |
Rx.Observable.timer(1000).do(x=>console.log('5',item)).map(x=>'5'+item), |
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
intj@SuperDesktopINTJ:~$ npm install -g bs-platform | |
/usr/bin/bsrefmt -> /usr/lib/node_modules/bs-platform/bin/bsrefmt | |
/usr/bin/bsc -> /usr/lib/node_modules/bs-platform/bin/bsc | |
/usr/bin/bsb -> /usr/lib/node_modules/bs-platform/bin/bsb | |
> [email protected] postinstall /usr/lib/node_modules/bs-platform | |
> node scripts/install.js | |
Working dir /usr/lib/node_modules/bs-platform | |
ninja binary is copied from pre-distribution |
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
sh-4.4$ ./configure --prefix `pwd`/inst | |
Merlin configuration | |
-------------------- | |
Found findlib GOOD | |
Found yojson GOOD | |
SUPERHEROINTJ => Executes 0 | |
exit | |
SUPERHEROINTJ => DOES NOT execute => 1 | |
SUPERHEROINTJ => DOES NOT execute => 3 | |
SUPERHEROINTJ => DOES NOT execute => END |
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
// The goal here is to print Merlin version 3 times. To test sync/async support. | |
const { spawn } = require("child_process"); | |
const mp = spawn("ocamlmerlin"); | |
let i = 0; | |
mp.stdin.write('["protocol","version"]'); |
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
Sending build context to Docker daemon 3.532MB | |
Step 1/26 : FROM node:alpine as build | |
---> 4c6406de22fd | |
Step 2/26 : ENV TERM=dumb LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib | |
---> Using cache | |
---> d146b907a5a5 | |
Step 3/26 : RUN mkdir /esy | |
---> Using cache | |
---> 83fefa197966 |
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
ldd ponyup | |
linux-vdso.so.1 (0x00007ffdc0d4a000) | |
librt.so.1 => /usr/lib/librt.so.1 (0x00007f44581c1000) | |
libssl.so.1.1 => /usr/lib/libssl.so.1.1 (0x00007f4458131000) | |
libcrypto.so.1.1 => /usr/lib/libcrypto.so.1.1 (0x00007f4457e60000) | |
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f4457e3e000) | |
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f4457e39000) | |
libm.so.6 => /usr/lib/libm.so.6 (0x00007f4457cf1000) | |
libatomic.so.1 => /usr/lib/libatomic.so.1 (0x00007f4457ce7000) | |
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f4457ccd000) |
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
FROM superherointj/archlinux-base as archlinux-pkgbuild-base | |
# ArchLinux PKGBUILD requires | |
RUN pacman -S --noconfirm fakeroot binutils | |
#Pick EITHER: | |
# (1) base-devel | |
# (2) fakeroot binutils | |
RUN mkdir /app | |
WORKDIR /app | |
# makepkg requires non-root user | |
RUN useradd notroot |
OlderNewer