- 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
var distance = 100; | |
var geometry = new THREE.Geometry(); | |
for (var i = 0; i < 1000; i++) { | |
var vertex = new THREE.Vector3(); | |
var theta = THREE.Math.randFloatSpread(360); | |
var phi = THREE.Math.randFloatSpread(360); |
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
var fs = require('fs'); | |
var http = require('http'); | |
var fsize; | |
var skBar = document.getElementById('progressbar'); | |
//Función que maneja la descarga del archivo | |
var download = function(url, dest, cb) { | |
var file = fs.createWriteStream(dest); | |
var request = http.get(url, function(response) { | |
//Para ver el progreso, primero necesitamos saber el tamaño total del archivo |
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
https://www.digitalocean.com/community/tutorials/building-for-production-web-applications-overview | |
https://www.digitalocean.com/community/tags/load-balancing | |
http://www.microsiervos.com/archivo/peliculas-tv/asi-se-crearon-los-dragones-de-la-quinta-temporada-de-juego-de-tronos.html | |
https://aws.amazon.com/es/architecture/ |
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
<select ng-model="selectedTestAccount" ng-options="item.Id as item.Name for item in testAccounts"> | |
<option value="">Select Account</option> | |
</select> |
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
<ion-content padding="false" scroll="false" has-bouncing="false"> | |
<div id="form"> | |
<div class="list"> | |
<label class="item item-input" id="company"> | |
<input type="text" placeholder="Company Name*" focus-me="{{cmpFocus}}" ng-model="user.companyname" maxlength="100"> | |
</label> | |
<div class="padding submitbtn"> | |
<button type="submit" class="button" ng-click="registration(user);">SUBMIT</button> | |
</div> | |
</div> |
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
<?php | |
// Filter wp_nav_menu() to add profile link | |
add_filter( 'wp_nav_menu_items', 'my_nav_menu_profile_link' ); | |
function my_nav_menu_profile_link($menu) { | |
$myavatar = bp_core_fetch_avatar( array( | |
'item_id' => bp_loggedin_user_id(), | |
'width' => 50, | |
'height' => 50, | |
'class' => 'avatar', | |
) |
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
<?php | |
... | |
// START EM Custm Attribute "Teacher" search | |
/* Create a new search attribute form entry for our new Event Attribute "teacher" (#_ATT{teacher}) | |
The values are hard-coded but could probably be automatically selected | |
Add this field to the search form using an EM action. | |
nb. The action doc'd here http://wp-events-plugin.com/tutorials/adding-custom-event-search-form-fields/ | |
does not seem to exist so use the footer one for inclusion in advanced search or the header one | |
for normal search. Read the source Luke. | |
*/ |
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
<select name='monthSelect' id='monthSelect'> | |
<option value='all'>- Select a month -</option> | |
</select> | |
<select name='locationSelect' id='locationSelect'> | |
<option value='all'>- Select a location -</option> | |
</select> | |
<select name='categorySelect' id='categorySelect'> | |
<option value='all'>- Select a division -</option> |
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 |