Skip to content

Instantly share code, notes, and snippets.

View igorparrabastias's full-sized avatar

Igor Parra Bastias igorparrabastias

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Using eslint for projects

Init project

npm init

Add basics packages

npm install eslint jest nodemon --save-dev
@igorparrabastias
igorparrabastias / programacion-autodidacta.md
Last active December 27, 2022 09:20
Aprender programación como autodidacta

Para una conocimiento bastante aceptable en modo autodidacta, recomiendo:

Lenguajes:

Hay cientos de lenguajes en uso hoy en día.
Personalmente propongo conocer estos 4 lenguajes si se quiere ir en serio.

@igorparrabastias
igorparrabastias / cleanup-codecommit-repos.sh
Created July 20, 2017 01:22 — forked from paulkearney/cleanup-codecommit-repos.sh
Migrating from GitHub to AWS CodeCommit
while read r; do
echo $r
aws codecommit delete-repository --repository-name $r --region us-east-1
done < ~/dev/utility-scripts/aws/codecommit/repos.txt
# scroll with mouse
set -g mode-mouse on
setw -g mode-mouse on
@igorparrabastias
igorparrabastias / vim.sh
Last active November 17, 2015 13:00
Linux/Bash Commands
# Display the path of the current file at bottom in Vim
# .vimrc
set laststatus=2
set statusline+=#F
# Install full version of Vim in Ubuntu
sudo apt-get remove vim-tiny
sudo apt-get install vim
# Color command line with git branch
stuff1 = function(deferred) {
setTimeout(function() {
console.log("Stuff #1 is done!");
deferred.resolve();
}, 1000);
};
stuff2 = function(deferred) {
setTimeout(function() {
console.log("Stuff #2 is done!");
@igorparrabastias
igorparrabastias / gist:ae11e8155fc15073faa6
Created September 9, 2014 01:18
NomikOS-Igor-Ricardo-Parra-Bastias.asc.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.11 (GNU/Linux)
mQENBFJRnTEBCACsk8jDaoG1bX1kkUFD7CtAM5VDWEhnCYEgCoU9B/OA794oU6Aq
vmmkt4OfO8OG2T1JOjr5iCvQFr6MXVD9NtfjBN7UeWytKMOWH8ipjlUkdVr3lJkR
G8Afooa9C6v7HOTBa21VoVsEdx2mkG2QXjTPSbRoQqJDUkPD1ZiRWrj5yLxymDAE
VGPTWYrg4v324vAuQrJAkb+t8HbcaoXhM//wEoAoz6vh+99H1moIPaFfdBsaqmea
CY9D+EOL5Z154Y8H9noRhX6eTDJtkzCZzxc7x6/A/C1jvWRcmqmyeWGDtR3R/pIu
yal4NPmdDNnjzuTZPcFRQYSMBbJXmmqlH1FRABEBAAG0O0lnb3IgUGFycmEgQmFz
dGlhcyAoT21uaWEgTWVjdW0gUG9ydG8pIDx1c3VhcmlvM0BnbWFpbC5jb20+iQE4
@igorparrabastias
igorparrabastias / gist:87b631ccd0f27c8dbb49
Last active August 29, 2015 14:02
Teaching Javascript to my daughter. Today "Class pattern".
// Javi, This is like a bad dog looks like in javascript using class pattern:
// constructor
function Dog() {}
// class method
Dog.prototype.seeCat = function() {
console.log('seeing cat...');
this.bark('whuf, whuf');
this.run();
@igorparrabastias
igorparrabastias / gist:9b0fdc0d367fb44a4d40
Last active August 29, 2015 14:02
node.js: Stubbing with gently and assert modules
var gently = new (require('gently'))
, assert = require('assert')
function Dog() {
}
Dog.prototype.seeCat = function() {
console.log('seeing cat...');
this.bark('whuf, whuf');
this.run();