Skip to content

Instantly share code, notes, and snippets.

View IcodeNet's full-sized avatar
😀

Byron Thanopoulos IcodeNet

😀
View GitHub Profile
@IcodeNet
IcodeNet / git.md
Last active November 25, 2020 09:52
git.md helpers #xsoft #git
@IcodeNet
IcodeNet / Tools.md
Last active May 17, 2020 16:12
Useful tools for Slack, source tree, nodenv #xsoft
@IcodeNet
IcodeNet / .prettierrc
Created April 30, 2020 07:54
prettier default configuration for front end projects
{
"trailingComma": "none",
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"semicolons": true,
"printWidth": 150
}
@IcodeNet
IcodeNet / howTo.txt
Last active March 2, 2020 10:11
get all vscode extensions to install on another machine
-- code --list-extensions | % { "code --install-extension $_" }
-- output will be like
code --install-extension amazonwebservices.aws-toolkit-vscode
code --install-extension Angular.ng-template
code --install-extension Anjali.clipboard-history
code --install-extension anseki.vscode-color
code --install-extension burkeholland.simple-react-snippets
code --install-extension christian-kohler.npm-intellisense
code --install-extension cmstead.jsrefactor
amazonwebservices.aws-toolkit-vscode
Angular.ng-template
Anjali.clipboard-history
anseki.vscode-color
burkeholland.simple-react-snippets
christian-kohler.npm-intellisense
cobeia.airbnb-react-snippets
cyrilletuzi.angular-schematics
DavidAnson.vscode-markdownlint
dbaeumer.vscode-eslint
Cypress.Commands.add('iframe', { prevSubject: 'element' }, $iframe => {
return new Cypress.Promise(resolve => {
$iframe.on('load', () => {
resolve($iframe.contents().find('body'));
});
});
});
// for <iframe id="foo" src="bar.html"></iframe>
cy.get('#foo').iframe().find('.bar').should('contain', 'Success!');
export default class AboutPage {
constructor() {
this.elements = {
navigation: () => cy.getSilent('a[href$=about]'),
paragraph: index => cy.getSilent('section.m-3 div p').eq(index),
};
}
goTo() {
cy.visit('/');
@IcodeNet
IcodeNet / installNpmPackagesFast.txt
Created September 4, 2019 07:30
npm install using flags to display the current npm configuration and running as fast as we can
npm config ls -l && npm install --progress=false --prefer-offline --no-audit
@IcodeNet
IcodeNet / ContextCmder-Disable.reg
Created August 1, 2019 09:47 — forked from jojobyte/ContextCmder-Disable.reg
Cmder Context (Right-Click) Menu for Windows 7, 8 & 10
Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
[-HKEY_CLASSES_ROOT\Directory\shell\Cmder]
@IcodeNet
IcodeNet / npm-commands.md
Created July 30, 2019 11:16 — forked from ankurk91/npm-commands.md
Useful npm commands and tricks

npm v3.10 - ◾

If you are learning npm then i would suggest to go for yarn, dont waste your time in learning npm

⚠️ This gist is outdated, but most of the commands are still relevant.

Update npm itself

npm install -g npm
# Downgrade to a specific version