Skip to content

Instantly share code, notes, and snippets.

View SimonJang's full-sized avatar

Simon Jang SimonJang

  • Ghent, Belgium
View GitHub Profile
@SimonJang
SimonJang / list.txt
Created August 18, 2022 07:17 — forked from shortjared/list.txt
List of AWS Service Principals
a4b.amazonaws.com
access-analyzer.amazonaws.com
account.amazonaws.com
acm-pca.amazonaws.com
acm.amazonaws.com
airflow-env.amazonaws.com
airflow.amazonaws.com
alexa-appkit.amazon.com
alexa-connectedhome.amazon.com
amazonmq.amazonaws.com
@SimonJang
SimonJang / types.ts
Created January 24, 2021 17:20 — forked from ClickerMonkey/types.ts
Typescript Helper Types
// when T is any|unknown, Y is returned, otherwise N
type IsAnyUnknown<T, Y, N> = unknown extends T ? Y : N;
// when T is never, Y is returned, otherwise N
type IsNever<T, Y = true, N = false> = [T] extends [never] ? Y : N;
// when T is a tuple, Y is returned, otherwise N
// valid tuples = [string], [string, boolean],
// invalid tuples = [], string[], (string | number)[]
@SimonJang
SimonJang / .editorconfig
Last active January 20, 2021 07:16 — forked from ntourne/.editconfig
Basic setup of .editorconfig
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
@SimonJang
SimonJang / example.js
Created July 29, 2020 18:32 — forked from nicolashery/example.js
Combine a pipe of multiple Node.js streams into one stream
var util = require('util')
, Transform = require('stream').Transform
, StreamCombiner = require('./streamcombiner');
var chunks1 = [];
var stream1 = new Transform();
var soFar = '';
stream1._transform = function(chunk, encoding, done) {
chunks1.push(chunk.toString());
var pieces = (soFar + chunk).split('\n');
@SimonJang
SimonJang / gist:7ed8b31332ed97376a8f7eaf89ccff06
Created April 21, 2020 09:22 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@SimonJang
SimonJang / plink-plonk.js
Created February 17, 2020 20:00 — forked from tomhicks/plink-plonk.js
Listen to your web pages
@SimonJang
SimonJang / Python3 Virtualenv Setup.md
Last active September 23, 2019 16:35 — forked from pandafulmanda/Python3 Virtualenv Setup.md
Setting up and using Python3 Virtualenv on Mac/Linux

Python3 Virtualenv Setup

Requirements
  • Python 3
  • Pip 3
$ brew install python3
@SimonJang
SimonJang / LICENSE.txt
Created March 14, 2019 14:38 — forked from jed/LICENSE.txt
generate random UUIDs
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@SimonJang
SimonJang / Install NVIDIA Driver and CUDA.md
Created March 8, 2019 20:01 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS