- 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
var scope = angular.element($('#elementToUpdate')).scope(); | |
scope.$apply(function() { | |
scope.variable1 = $scope.variable1; | |
scope.variable2 = $scope.variable2; | |
}); |
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
public static synchronized void addValue(int myIndex) { | |
boolean imDone = false; | |
System.out.println("Thread " + myIndex + " is trying to add its value"); | |
do { | |
if (myIndex != numberOfThreadsDone) { | |
try { | |
System.out.println(myIndex + " is about to wait"); | |
ParallelSerial.class.wait(); // <-- ** Important need to call className.class.wait() in syncronized method** | |
} catch (InterruptedException e) { | |
e.printStackTrace(); |
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 |
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
.data | |
L1: .word 2,4,6,8,10,12,14,16 # the array | |
.text | |
.globl main | |
main: add $t0, $0, $0 # initialize $t0=0 | |
add $t1, $0, $0 # initialize the sum = 0 | |
lw $t2, L1($t0) # load first value | |
add $t1, $t1, $t2 # add to sum | |
addi $t0, $t0, 8 # computer addr of two elements down |
I hereby claim:
- I am eaddingtonwhite on github.
- I am eaddingtonwhite (https://keybase.io/eaddingtonwhite) on keybase.
- I have a public key ASD4PKByCNZFqPfhbUnTxU7NI2BKe4wElT-6LsNMea-g2Ao
To claim this, I am signing this object: