Skip to content

Instantly share code, notes, and snippets.

View alirezahi's full-sized avatar
🏀
Happy to be Busy

Alireza Heydari alirezahi

🏀
Happy to be Busy
View GitHub Profile
npm install npm@latest -g
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
const uniqueArray = things.thing.filter((thing,index) => {
return index === things.thing.findIndex(obj => {
return JSON.stringify(obj) === JSON.stringify(thing);
});
});
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',
'STATIC_KW',
'BOOLEAN_KW',
'CHARACTER_KW',
'INTEGER_KW',
'CHAR_KW',
'BOOL_KW',
'INT_KW',
'VOID_KW',
'IF_KW',
'OTHER_KW',