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
var gistPrefix = 'https://gist.github.com/', | |
// Cache document.write so that it can be restored once all Gists have been | |
// embedded. | |
cachedWrite = document.write, | |
body = $('body'), | |
// Map each p.gist to an object that contains the paragraph to be replaced | |
// and the Gist's identifier. | |
gists = $('a.gist').map(function(n, a) { | |
a = $(a); | |
var href = a.attr('href'); |
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
// git | |
sudo apt-get install git | |
// node (installs n which would then bring npm/node) | |
curl -L http://git.io/n-install | bash | |
n latest | |
// nodemon | |
sudo npm install -g nodemon |
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
$http.post(url, data, { | |
headers: { | |
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8' | |
}, | |
transformRequest: function(data) { | |
return $.param(data); | |
} | |
}). | |
success(function(data, status, headers, config) { | |
if (data.error) { |
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
less: { | |
development: { | |
files: [{ | |
expand: true, // Enable dynamic expansion. | |
cwd: 'public/less', // Src matches are relative to this path. | |
src: ['*.less'], // Actual pattern(s) to match. | |
dest: 'public/css', // Destination path prefix. | |
ext: '.css', // Dest filepaths will have this extension. | |
}] | |
} |
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
Cómo escribir mejor, según investigaciones: http://educationbythenumbers.org/content/3-lessons-science-teach-writing_2194/ | |
Técnicas de estudio (muy interesante, no como lo que hay en todos lados): http://www.oxbridgenotes.com/articles/autodidactism/malgorithms | |
Referencias de Python: | |
El libro: http://learnpythonthehardway.org/book/ex21.html | |
Un recorrido: http://simeonfranklin.com/python-fundamentals/ | |
Code like a Pythonista: http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html |
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
Roadmap Javascript: | |
- Head First Javascript. | |
- Eloquent Javascript (para algunos temas puntales, aunque es un libro corto). | |
* | |
- Javascript Cookbook (como referencia). | |
* Acá podría ir Head First jQuery | |
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
Configuración: | |
git config --global user.name nombredeusuario | |
git config --global user.email emaildeusuario | |
Work flow: | |
git status | |
git add . |
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
// You can specify single files: | |
{src: 'foo/this.js', dest: ...} | |
// Or arrays of files: | |
{src: ['foo/this.js', 'foo/that.js', 'foo/the-other.js'], dest: ...} | |
// Or you can generalize with a glob pattern: | |
{src: 'foo/th*.js', dest: ...} | |
// This single node-glob pattern: | |
{src: 'foo/{a,b}*.js', dest: ...} | |
// Could also be written like 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
export default class Thing { | |
constructor ($q) { | |
this.$q = $q; | |
} | |
doStuff (a, b) { | |
let { $q } = this; | |
return a + b; | |
} | |
} |
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
"use strict"; | |
Object.defineProperty(exports, "__esModule", { | |
value: true | |
}); | |
var _createClass = (function() { | |
function defineProperties(target, props) { | |
for (var i = 0; i < props.length; i++) { | |
var descriptor = props[i]; |
OlderNewer