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
❯ find [tareget folder] -type d -name '[folder to ingore]' -prune -o -type f -print | xargs grep --color=auto "[text to search]" | |
❯ find ./core/ -type d -name 'node_modules' -prune -o -type f -print | xargs grep --color=auto "click" |
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
node_modules |
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
/** | |
* Simple object check. | |
* @param item | |
* @returns {boolean} | |
*/ | |
export function isObject(item) { | |
return item && typeof item === 'object' && !Array.isArray(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
# Node.js Boilerplate | |
----------------------------------------------------------------- | |
# 1: https://github.com/sahat/hackathon-starter?source=post_page--------------------------- | |
# 2: https://github.com/kriasoft/nodejs-api-starter?source=post_page--------------------------- | |
# 3: https://github.com/madhums/node-express-mongoose?source=post_page--------------------------- | |
# 4: https://github.com/talyssonoc/node-api-boilerplate?source=post_page--------------------------- |
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
#!/usr/bin/env node | |
console.log('yay gist') | |
const shell = require('shelljs') | |
shell.exec('sudo touch ~/config/f/index.js') |
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
#!/usr/bin/env bash | |
# https://docs.docker.com/install/linux/docker-ce/ubuntu/ | |
sudo apt-get install apt-transport-https ca-certificates curl software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable" | |
sudo apt-get update | |
sudo apt-get install docker-ce | |
# https://docs.docker.com/compose/install/ |
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
/* | |
A class decorator function will receive target class UserRef, which is User in above example (on which decorator is applied) | |
and must return a constructor function. This opens the door of infinite possibilities that you can do with the decorator. | |
Hence class decorators are more popular than method/property decorators | |
*/ | |
Ref: https://itnext.io/a-minimal-guide-to-ecmascript-decorators-55b70338215e | |
function withLoginStatus( UserRef ) { | |
return class extends UserRef { |
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
0815.ru | |
0wnd.net | |
0wnd.org | |
10minutemail.co.za | |
10minutemail.com | |
123-m.com | |
1fsdfdsfsdf.tk | |
1pad.de | |
20minutemail.com | |
21cn.com |
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
export default [ | |
'0815.ru', | |
'0wnd.net', | |
'0wnd.org', | |
'10minutemail.co.za', | |
'10minutemail.com', | |
'123-m.com', | |
'1fsdfdsfsdf.tk', | |
'1pad.de', | |
'20minutemail.com', |
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
{ | |
"env": { | |
"production": { | |
"presets": [ | |
["env", { | |
"targets": { | |
"browsers": ["last 2 versions", "safari >= 7"] | |
} | |
}], | |
"react" |
NewerOlder