Skip to content

Instantly share code, notes, and snippets.

View JLHwung's full-sized avatar

Huáng Jùnliàng JLHwung

  • Waterloo, ON, Canada
View GitHub Profile
@JLHwung
JLHwung / yCombinator.md
Last active June 28, 2017 06:09
Y-Combinator

A Note from kestas.kuliukas.com rewritten using arrow function/const.

const fact = (n) => n === 1 ? 1 : n*fact(n-1)
  1. factory fact function
const makeFact = givenFact => n => n === 1 ? 1 : n*givenFact(n-1)
@JLHwung
JLHwung / walk-and-transform.js
Last active June 22, 2017 08:44
node walk-and-transform.js ./src/client/scripts
const fs = require('fs');
const path = require('path');
const chalk = require('chalk');
const walk = require('fs-walk');
function transform(fileContent) {
const result = fileContent;
if (!fileContent.includes('angular.module')) {
return result;
@JLHwung
JLHwung / info.md
Last active April 12, 2017 06:56
Display Media File Information cheatsheet

OpenSSL

Certificate

openssl x509 -text -noout -in $FILE

Certificate Signing Request

openssl req -text -noout -in $FILE
gpg --armor --gen-random 2 64
@JLHwung
JLHwung / # curl - 2016-09-07_21-40-40.txt
Created September 8, 2016 00:41
curl on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for curl on Mac OS X 10.11.6
Build date: 2016-09-07 21:40:40
@JLHwung
JLHwung / # cvsync - 2016-09-07_21-39-38.txt
Created September 8, 2016 00:40
cvsync on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for cvsync on Mac OS X 10.11.6
Build date: 2016-09-07 21:39:38
@JLHwung
JLHwung / # ctunnel - 2016-09-07_21-37-32.txt
Created September 8, 2016 00:38
ctunnel on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for ctunnel on Mac OS X 10.11.6
Build date: 2016-09-07 21:37:32
@JLHwung
JLHwung / # csup - 2016-09-07_21-33-55.txt
Created September 8, 2016 00:34
csup on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for csup on Mac OS X 10.11.6
Build date: 2016-09-07 21:33:55
@JLHwung
JLHwung / # cpprestsdk - 2016-09-07_21-32-36.txt
Created September 8, 2016 00:33
cpprestsdk on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for cpprestsdk on Mac OS X 10.11.6
Build date: 2016-09-07 21:32:36
@JLHwung
JLHwung / # cppcms - 2016-09-07_21-31-09.txt
Created September 8, 2016 00:32
cppcms on Mac OS X 10.11.6 - Homebrew build logs
Homebrew build logs for cppcms on Mac OS X 10.11.6
Build date: 2016-09-07 21:31:09