This file contains hidden or 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
'STATIC_KW', | |
'BOOLEAN_KW', | |
'CHARACTER_KW', | |
'INTEGER_KW', | |
'CHAR_KW', | |
'BOOL_KW', | |
'INT_KW', | |
'VOID_KW', | |
'IF_KW', | |
'OTHER_KW', |
This file contains hidden or 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
reserved = { | |
'static': 'STATIC_KW', | |
'boolean': 'BOOLEAN_KW', | |
'character': 'CHARACTER_KW', | |
'integer': 'INTEGER_KW', | |
'char': 'CHAR_KW', | |
'bool': 'BOOL_KW', | |
'int': 'INT_KW', | |
'void': 'VOID_KW', | |
'if': 'IF_KW', |
This file contains hidden or 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 uniqueArray = things.thing.filter((thing,index) => { | |
return index === things.thing.findIndex(obj => { | |
return JSON.stringify(obj) === JSON.stringify(thing); | |
}); | |
}); |
This file contains hidden or 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
npm install npm@latest -g | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
This file contains hidden or 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
fetchUserInfo() { | |
this.userInfo.init(); | |
ajaxWithJWT({ | |
url: `${serverUrls.crm}/api/v2/user-management/whoami/`, | |
}) | |
.then(res => { | |
const { data } = res; | |
this.$store.commit('setUser', data); | |
this.$store.commit('setPanelConfig', data); | |
this.$store.commit( |
This file contains hidden or 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
function duplicateCount(text){ | |
return (text.toLowerCase().split('').sort().join('').match(/([^])\1+/g) || []).length; | |
} |
This file contains hidden or 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
{"lastUpload":"2020-01-18T08:30:44.149Z","extensionVersion":"v3.4.3"} |
This file contains hidden or 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
# install chrome | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i google-chrome-stable_current_amd64.deb | |
rm google-chrome-stable_current_amd64.deb | |
# install zsh | |
sudo apt-get install zsh curl git | |
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
# install yarn |
This file contains hidden or 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 { | |
methods: { | |
baywatch: function(props, watcher) { | |
const iterator = function(prop) { | |
this.$watch(prop, function(newVal, oldVal) { | |
watcher(newVal, oldVal, prop); | |
}); | |
}; | |
props.forEach(iterator, this); | |
}, |
This file contains hidden or 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
sudo apt-get install tor | |
sudo service tor start | |
# check tor: | |
# curl --socks5 localhost:9050 --socks5-hostname localhost:9050 -s https://check.torproject.org/ | cat | grep -m 1 Congratulations | xargs | |
pip install stem | |
pip install requests | |
pip install requests[socks] | |
pip install requests[security] | |
# if error on the above command: |
OlderNewer