- 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 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
# jekyll-readtime | |
# 2015 Ron Scott-Adams, Licensed under MIT: | |
# https://tldrlegal.com/license/mit-license | |
# Original work: https://gist.github.com/zachleat/5792681 | |
# Outputs the estimated time the average person might take to read the content. | |
# 200 is a round figure based on estimates gathered from various studies. | |
# http://www.ncbi.nlm.nih.gov/pubmed/18802819 | |
# Usage: {{ page.content | readtime }} |
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
# Outputs the reading time | |
# Read this in “about 4 minutes” | |
# Put into your _plugins dir in your Jekyll site | |
# Usage: Read this in about {{ page.content | reading_time }} | |
module ReadingTimeFilter | |
def reading_time( input ) | |
words_per_minute = 180 |
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
for var in $(ps aux | grep ansible | awk '{print $2}'); do echo $var; sudo kill -9 $var; done |
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
denominations_USD = [ | |
{ 'title': 'Hundred-dollar bill', 'count': 0, 'val': 10000 }, | |
{ 'title': 'Fifty-dollar bill', 'count': 0, 'val': 5000 }, | |
{ 'title': 'Ten-dollar bill', 'count': 0, 'val': 1000 }, | |
{ 'title': 'Five-dollar bill', 'count': 0, 'val': 500 }, | |
{ 'title': 'One-dollar bill', 'count': 0, 'val': 100 }, | |
{ 'title': 'Quarter', 'count': 0, 'val': 25 }, | |
{ 'title': 'Dime', 'count': 0, 'val': 10 }, | |
{ 'title': 'Nickel', 'count': 0, 'val': 5 }, | |
{ 'title': 'penny', 'count': 0, 'val': 1 } |
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
is_processing = false; | |
last_page = false; | |
function addMoreElements() { | |
is_processing = true; | |
$.ajax({ | |
type: "GET", | |
//FOS Routing | |
url: Routing.generate('route_name', {page: page}), | |
success: function(data) { | |
if (data.html.length > 0) { |
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
<h2>ASCII Animation Editor/Viewer</h2> | |
<table style="margin-left:auto;margin-right:auto"> | |
<tr><td style="text-align:center"> | |
Enter the frames below, separated by "<code>=====</code>".</td> | |
<td style="text-align:center"> | |
<input type="button" value="Play the Animation" onclick="PlayAnimation();"> | |
</tr> | |
<tr><td><textarea id="frameArea" rows=25 cols=55 style="font-size:8pt"> |
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
$(window).scroll(function(){ | |
'use strict'; | |
if ( $(window).scrollTop() > 49 ) { | |
$("#nav").addClass("nav-fixed"); | |
} else { | |
$("#nav").removeClass("nav-fixed"); | |
} | |
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 xdg-open | |
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Terminal=false | |
StartupNotify=true | |
Name=Smartgit | |
Exec=env SMARTGIT_JAVA_HOME=/opt/apps/jre7/ /opt/apps/smartgit/bin/smartgit.sh | |
Icon=/opt/apps/smartgit/bin/smartgit-64.png |
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
############################################# | |
# Push de la rama actual | |
git push origin $rama_actual | |
############################################# | |
# Volver a un commit anterior, descartando los cambios | |
git reset --HARD $SHA1 | |
############################################# | |
# Ver y descargar Ramas remotas |