- 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
- 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.
- 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 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
//Great online repo for more snippets: https://bgrins.github.io/devtools-snippets/ | |
/************************************************* | |
//Cache Buster | |
Overwrite all link and (optionally) script tags by adding Date.now() | |
at the end of href and src attributes, respectively. By default processing | |
scripts is not performed, you should change the variable process_scripts | |
to true to run these. | |
/*************************************************/ | |
(function (){ |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- @author Kumar Shwetabh, @version 1.0 --> | |
<!-- Based upon https://github.com/philmander/ant-jshint --> | |
<!-- Add reference to http://jslinterrors.com in the reports file --> | |
<project name="LintTasks" default="LintTasks" basedir="."> | |
<property name="FilesToLint" value="C:/LintFiles"/> | |
<property name="ReportFile" value="${basedir}/jshint/results.html"/> | |
<target name="LintTasks"> |
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
/** | |
* Services combined together: | |
* ~Yahoo Pipes~, Gmail, Google App Script, GDrive, Google Charts | |
* | |
* This is a Google App Script Web App that draws a Column Graph highlighting the current and historical exchange rate trend of | |
* Xoom Money Transfer. Created this simple app to keep an eye on the $ to Rupee up/down trend. | |
* Has a related excel sheet also. | |
* | |
* Output (snapshot): https://plus.google.com/photos/108969069990423509081/albums/6115274347350257297?authkey=CKOFv9-t77O4kAE | |
* |
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 psycopg2 | |
conn = psycopg2.connect("host='localhost' port='5432' dbname='stocks' user='xxxxxx' password='xxxxxx'") | |
cur = conn.cursor() | |
SQL_STATEMENT = """ | |
COPY %s FROM STDIN WITH | |
CSV | |
HEADER | |
DELIMITER AS ',' | |
""" |
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
# List unique values in a DataFrame column | |
# h/t @makmanalp for the updated syntax! | |
df['Column Name'].unique() | |
# Convert Series datatype to numeric (will error if column has non-numeric values) | |
# h/t @makmanalp | |
pd.to_numeric(df['Column Name']) | |
# Convert Series datatype to numeric, changing non-numeric values to NaN | |
# h/t @makmanalp for the updated syntax! |
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
//Code borrowed from: https://github.com/aws-samples/amazon-kinesis-video-streams-media-viewer | |
function configureLogging() { | |
console._error = console.error; | |
console.error = function(messages) { | |
log('ERROR', Array.prototype.slice.call(arguments)); | |
console._error.apply(this, arguments); | |
} | |
console._log = console.log; |
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 requests | |
import cv2 | |
import numpy as np | |
# Online code reference: https://www.youtube.com/watch?v=-mJXEzSD1Ic | |
# Image URL being streamed from IPWebCam app (I used the one written by Pavel Khlebovich). | |
# Make sure that the android device and the machine running opencv are on the same network and | |
# you can access the streaming URL from that machine | |
url = 'http://192.168.43.236:8080/shot.jpg' |