- 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
#include "msp430g2553.h" | |
#include "stdbool.h" | |
#define LED BIT6 | |
#define RXD BIT1 | |
#define TXD BIT2 | |
unsigned int i; // for loop variable | |
volatile unsigned char rx_flag = 0; | |
volatile unsigned char tx_flag = 0; |
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.
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 pieChartFromObject(data, options, className) { | |
var labels = [], total = 0, | |
values = $.map(data, function(value, label) { total += value; labels.push(label); return value; }); | |
var chart = $('<span class="'+className+'"> </span>'); | |
options.type = 'pie'; | |
options.tooltipFormat = '<span style="color: {{color}}">●</span> {{offset:labels}} - {{value}} ({{percent.1}}%)'; | |
options.tooltipValueLookups = { labels: labels} ; | |
if (total == 0) { |
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
FROM ubuntu:14.04 | |
ENV src /src | |
WORKDIR ${src} | |
RUN apt-get update; apt-get install git build-essential -y | |
RUN apt-get install -y cmake libboost-all-dev libmsgpack-dev | |
RUN git clone --recursive https://github.com/tplgy/bonefish.git | |
RUN mkdir bonefish-build && cd bonefish-build; cmake ../bonefish | |
RUN cd bonefish-build/; make; make install | |
CMD ["bonefish-build/daemon/bonefish", "--realm", "\"default\"", "--websocket-port", "9999"] |
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
<?php | |
/* | |
author: Guillermo <[email protected]> | |
This converst a list of jsons to a csv string. JSON names | |
are built with the key names and points. See example below. | |
It basically flattens associative arrays with a recursive function | |
and then merges all these flattened arrays. |
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 script exports all tables in a MSAccess file to a bunch of CSV's. | |
It depends on UCanAccess binaries, which can be downloaded from here: | |
http://ucanaccess.sourceforge.net/site.html | |
It supports MSAccess 2016 and previous versions. | |
Make sure to set pathUCA to the path of the UCanAccess binaries. | |
""" | |
from subprocess import Popen, PIPE, STDOUT | |
import io |
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
# Para utilizar se puede correr este comando, luego se pega la lista de textos y | |
# luego se presiona ctrl+d para terminar de ingresar la lista y correr el programa | |
# El programa abre una ventana con un botón. Cada vez que se presiona ese botón | |
# se copia en el portapapeles o clipboard el próximo texto de la lista | |
# | |
# cat | python3 copylista.py | |
# >linea1 | |
# >linea2 | |
# >CTRL+D |