Skip to content

Instantly share code, notes, and snippets.

View nucliweb's full-sized avatar
⚡
Debugging…

Joan León nucliweb

⚡
Debugging…
View GitHub Profile

Sesión en abierto

  • React.js
    • Presentación React.js
    • Hola mundo! con React

Sesión 1

  • Entorno de desarrollo React con Webpack y Babel.js
  • Un componente React
  • Propiedades
@nucliweb
nucliweb / package.js
Last active February 21, 2016 12:37
phoenix npm script
// Task script to reinstall all dependencies of the project
"scripts": {
"phoenix": "rm -rf node_modules && npm install"
}
@nucliweb
nucliweb / Preferences.sublime-settings
Created February 19, 2016 22:08
Preferences.sublime-settings
{
"always_show_minimap_viewport": true,
"auto_complete_commit_on_tab": true,
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
@nucliweb
nucliweb / npm.aliases.bash
Last active June 8, 2016 18:41
NPM Aliases for Bash-it
cite 'about-alias'
about-alias 'common npm abbreviations'
# Aliases
alias ni='npm install'
alias nis='npm install --save'
alias nid='npm install --save-dev'
alias nit='npm install-test'
alias nits='npm install-test --save'
alias nitd='npm install-test --save-dev'
@nucliweb
nucliweb / pick.js
Last active February 11, 2016 18:15
Pick random list from an array
// Script by https://github.com/carlosvillu
var pick = function(list, range){
var array = list.slice(0)
return Array.apply(null, Array(range || 3)).map(function(){
return array.splice(Math.floor(Math.random() * array.length ), 1)[0];
});
}
var list = [1,2,3,4,5,6,7,8,9];
@nucliweb
nucliweb / Node-to-NVM.md
Last active August 20, 2016 23:36
Node.js to Node Version Manager

Change Node.js to Node Version Manager

  • List all global packages installed in your system
ls /usr/local/lib/node_modules > ~/node-packages.txt
  • Remove all packages
@nucliweb
nucliweb / CSS-Naming-Conventions.md
Last active February 19, 2020 10:46
CSS Naming Conventions
@nucliweb
nucliweb / SassMeister-input.scss
Last active February 1, 2016 18:50
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@each $font in Lato-Regular,
Lato-Bold,
Lato-Bold-Italic,
Lato-Italic {
@font-face {
font-family: $font;
@nucliweb
nucliweb / js-terms.md
Created January 24, 2016 09:13 — forked from AllThingsSmitty/js-terms.md
10 terms to help you better understand JavaScript

10 JavaScript Terms You Should Know

From currying to closures there are quite a number of special words used in JavaScript. These will not only help you increase your vocabulary but also better understand JavaScript. Special terms are normally found in documentation and technical articles. But some of them like closures are pretty standard things to know about. Knowing what the word itself means can help you know the concept it's named for better.

  1. Arity
  2. Anonymous
  3. Closure
  4. Currying
  5. Hoisting
  6. Mutation