Skip to content

Instantly share code, notes, and snippets.

View SpencerAung's full-sized avatar
🐙
Going back to the future

Spencer Aung SpencerAung

🐙
Going back to the future
View GitHub Profile
@SpencerAung
SpencerAung / print-even-odd.js
Created April 7, 2021 07:32
Print even and odd numbers in a between range.
const printEven = (start, end) => {
const nums = [];
let current = start;
while(current <= end) {
if(current % 2 === 0) {
nums.push(current);
}
current++;
}
return nums.join();
@SpencerAung
SpencerAung / curry.js
Last active January 28, 2020 07:28
Curry function implementation in ES2015
function curry(fn) {
return (...args) => {
if (args.length >= fn.length) {
return fn(...args)
}
return curry(fn.bind(null,...args))
}
}
@SpencerAung
SpencerAung / media-query.css
Created September 22, 2019 11:28 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@SpencerAung
SpencerAung / whitepapers.tsv
Created April 10, 2019 05:07 — forked from blockchainvc/whitepapers.tsv
WHITEPAPERS: Smart Contract Protocols
Name Link Whitepaper title
Achain (previously thinkyoung) https://www.achain.com/Achain%20Whitepaper%202.0_EN.pdf Achain Blockchain Whitepaper: build to be boundless
Aergo (by blocko) https://www.aergo.io/paper/ multiple
Aion https://aion.network/media/en-aion-network-technical-introduction.pdf Aion: enabling the decentralized Internet
Ark https://ark.io/Whitepaper.pdf A Platform for Consumer Adoption
Avalanche https://ipfs.io/ipfs/QmUy4jh5mGNZvLkjies1RWM4YuvJh5o2FYopNPVYwrRVGV Snowflake to Avalanche: a novel metastable consensus protocol family for cryptocurrencies
Blink https://blink.network/media/blink-protocol.pdf Proof-of-stake distrbuted consensus protocol
Byteball https://byteball.org/Byteball.pdf A Decentralized System for Storage and Transfer of Value
Cardano https://whitepaperdatabase.com/cardano-ada-whitepaper/ Ouroboros: A provably secure proof-of-stake blockchain protocol
Celer Network https://www.celer.network/doc/CelerNetwork-Whitepaper.pdf Celer Network: Bring Internet Scale to Every Blockchai
@SpencerAung
SpencerAung / .gitignore
Created April 2, 2019 02:51 — forked from octocat/.gitignore
Some common .gitignore configurations
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
@SpencerAung
SpencerAung / .gitconfig
Last active August 11, 2021 02:57
Vim and Neovim setup
[credential]
helper = osxkeychain
[core]
editor = nvim
[Alias]
trail = log --all --graph --decorate --oneline
b = branch
c = commit
d = diff
l = log
@SpencerAung
SpencerAung / gist:2b7986fe6b6bb01d2ff0d615e4b92a3d
Created November 29, 2018 04:55 — 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:
@SpencerAung
SpencerAung / .prettierrc.js
Created November 20, 2018 06:12
Prettier config
module.exports = {
trailingComma: 'es5',
tabWidth: 2,
semi: true,
singleQuote: true,
arrowParens: 'always',
parser: 'babylon',
};
@SpencerAung
SpencerAung / reverseInt.js
Created February 26, 2018 11:55
reverseInt
function reverseInt(n) {
let value = Math.abs(n);
if (value < 10) {
return n;
}
let vStr = '' + value;
vStr.split('').reverse().join('');
return Math.sign(n) * vStr;
}
@SpencerAung
SpencerAung / nginxproxy.md
Created August 9, 2017 02:48 — forked from soheilhy/nginxproxy.md
How to proxy web apps using nginx?

Virtual Hosts on nginx (CSC309)

When hosting our web applications, we often have one public IP address (i.e., an IP address visible to the outside world) using which we want to host multiple web apps. For example, one may wants to host three different web apps respectively for example1.com, example2.com, and example1.com/images on the same machine using a single IP address.

How can we do that? Well, the good news is Internet browsers