- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains 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
#Juego para aprender un poco sobre python orientado a objetos por @pedrojimenezp | |
#Clase que tiene los atributos y metodos de un jugador, en este caso solo tiene el nombre y los puntos | |
class Jugador(): | |
#cada atributo que inicie por dos guiones bajos (__) es un atributo privado de la clase... | |
#lo mismo se aplica para los metodos | |
# metodo contructor que recibe dos parametros el nombre y los puntos del jugador... | |
def __init__(self, n="",p=0): | |
# __nombre y __puntos son atributos privados de la clase Jugador |
This file contains 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
#!/bin/bash | |
#Este script permanece observando los archivos de un directorio y si alguno cambia re-compila los archivos .less | |
#Recibe 3 parámetros | |
# 1. El directorio donde están los archivos .less que se desean observar | |
# 2. El directorio donde se guardara el nuevo archivo .css compilado | |
# 3. El nombre del archivo .less que se quiere compilar | |
#este script por ahora solo compila un archivo pasado como parámetro, pero lo compila cuando cualquiera de los ficheros de un directorio sean modificados |
This file contains 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
print "------- Interpolacion Polinomica (Newton) -------" | |
n = int(raw_input("Ingrese el grado del polinomio a evaluar: "))+1 | |
# print "El grado del polinomio es: ", n | |
matriz = [0.0] * n | |
for i in range(n): | |
matriz[i] = [0.0] * n | |
vector = [0.0] * n |
This file contains 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
""" | |
This function counts how many pairs degrees have the succcession list | |
""" | |
def numbers_pairs_degrees(succession_list): | |
n = 0 | |
for degree in succession_list: | |
if degree % 2 != 0: | |
n += 1 | |
return n | |
This file contains 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 Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
- lxml - Pythonic binding for the C libraries libxml2 and libxslt.
- boto - Python interface to Amazon Web Services
- Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
- Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
- PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
- Celery - Task queue to distribute work across threads or machines.
- pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.
- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
This file contains 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
// this function takes an array and return a flattened array | |
function flatten(array) { | |
// Iterates over the given array to return just one flatten array | |
return array.reduce((newArray, item) => { | |
// Check if the item to add is an array itself to call the function again to make the item a flatten array | |
if (item.constructor === Array) return newArray.concat(flatten(item)); | |
// If is not an array just adds the item to the new array | |
return newArray.concat(item); | |
}, []); | |
} |
This file contains 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
function combine(mapFunc) { | |
return function() { | |
const args = Array.prototype.slice.call(arguments); | |
const lengths = args.map(arg => arg.length) | |
const minLength = Math.min.apply(this, lengths) | |
const combined = [] | |
for (let i = 0; i < minLength; i++) { | |
combined.push(mapFunc(args.map(arg => arg[i]))) | |
} | |
return combined |