- http://ponyfoo.com/
- http://www.2ality.com/ (acá aprendí ECMAScript 6)
- http://addyosmani.com/blog
- http://rmurphey.com/
- https://alexsexton.com/
- http://carlosazaustre.es/blog/
- http://christianheilmann.com/
- http://dailyjs.com/ (este junta articulos muy buenos de otros blogs, muy bueno para conocer más blogs de a poco)
- http://davidwalsh.name/
- http://ariya.ofilabs.com/
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
| #!/usr/bin/python | |
| # -*- coding : utf-8 -*- | |
| """ | |
| @author: Diogenes Augusto Fernandes Herminio <diofeher@gmail.com> | |
| """ | |
| from abc import ABCMeta | |
| #Abstract Factory | |
| class StandardFactory(object): |
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
| class Math: | |
| def __init__(self, x, y): | |
| self.x = x | |
| self.y = y | |
| def add(self): | |
| return self.x + self.y | |
| def substract(self): | |
| return self.x - self.y |
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"; | |
| // Example 1 | |
| let dragon = (name, size, element) => | |
| name + ' is a ' + | |
| size + ' dragon that breathes ' + | |
| element + '!' | |
| console.log(dragon('fluffykins', 'tiny', 'lightning')) | |
| // Example 2 | |
| let dragon = |
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"; | |
| let categories = [ | |
| {id: 'animals', parent: null }, | |
| {id: 'mammals', parent: 'animals' }, | |
| {id: 'cats', parent: 'mammals' }, | |
| {id: 'dogs', parent: 'mammals' }, | |
| {id: 'chihuahua', parent: 'dogs' }, | |
| {id: 'labrador', parent: 'dogs' }, | |
| {id: 'persian', parent: 'cats' }, |
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
| import 'babelify/polyfill' | |
| function loadImage(url) { | |
| return new Promise((resolve, reject) => { | |
| let image = new Image() | |
| image.onload = function() { | |
| resolve(image) | |
| } |
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
| const dog = () => { | |
| const sound = 'woof' | |
| return { | |
| talk: () => console.log(sound) | |
| } | |
| } | |
| const sniffles = dog() | |
| sniffles.talk() |
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"; | |
| const barker = (state) => ({ | |
| bark: () => console.log('Woof, I am ' + state.name) | |
| }) | |
| const driver = (state) => ({ | |
| drive: () => state.position = state.position + state.speed | |
| }) |
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
| import os | |
| from os import path | |
| def removeDots(filename): | |
| for n in ['.', ' ', ',']: | |
| filename = filename.replace(n, '') | |
| return filename | |
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
| #!/usr/bin/env python | |
| import yaml | |
| def generateHtml(msg): | |
| return ''' | |
| <li> | |
| <div class="collapsible-header"> | |
| <div class="text--size">{title}</div> | |
| </div> |
OlderNewer