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
I made this: http://jsperf.com/ydn-db-s-indexeddb-vs-pure-localstorage, check it out |
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
<script src="http://cdnjs.cloudflare.com/ajax/libs/rxjs/2.4.3/rx.all.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/rxjs/2.4.3/rx.testing.min.js"></script> | |
<script src="http://daniellmb.github.com/jasmine-run/jasmine-1.3.1-run.js"></script> | |
<script> | |
var waitsForObservable = function (observable, callback, opt_timeout) { | |
var result, timeout; | |
timeout = opt_timeout || 5000; | |
runs(function(){ |
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
jasmine.MAX_PRETTY_PRINT_DEPTH = 3; | |
jasmine.pp = (function (j$) { | |
function PrettyPrinter() { | |
this.ppNestLevel_ = 0; | |
this.seen = []; | |
} | |
PrettyPrinter.prototype.format = function(value) { | |
this.ppNestLevel_++; |
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
(ns rxjsclj.core | |
(:require [Rx])) | |
(defn stream-for [x] | |
(.map (.interval js/Rx.Observable 2000) x)) | |
(def providers (.from js/Rx.Observable [1 2 3])) | |
(-> (stream-for providers) | |
(.concatMap #(.map % stream-for)) |
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
<div id="window_drive" class="abs window"> | |
<div class="abs window_inner"> | |
<div class="window_top"> | |
<span class="float_left"> | |
<img src="assets/images/icons/icon_16_drive.png" /> | |
Alunos | |
</span> | |
<span class="float_right"> | |
<a href="#" class="window_min"></a> | |
<a href="#" class="window_resize"></a> |
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
import Data.List | |
main = do | |
putStrLn "Welcome to the contacts list program!" | |
mainMenu [] -- initial contacts list state | |
mainMenu :: [String] -> IO b | |
mainMenu contacts = do | |
putStrLn "1 - Add new contacts; 2 - Show contacts; 3 - Sort contacts" |
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 (originalOpen) { | |
XMLHttpRequest.prototype.open = function (method, url, async, user, password) { | |
if (url.match(/limits/)) url = "REJECTED"; | |
originalOpen.call(this, method, url, async, user, password); | |
}; | |
})(XMLHttpRequest.prototype.open); |
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
class JQuery | |
class << self | |
attr_accessor :thread | |
end | |
def self.get(url, &block) | |
block.call("resposta") | |
return self | |
end |
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
/* CSS declarations go here */ | |
.quadrado{ | |
width:50px; height:50px; background:#F00; position: absolute; | |
} |
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
Quadrados = new Meteor.Collection("quadrados"); | |
if (Meteor.isClient) { | |
Template.quadrados.quadrados = function () { | |
return Quadrados.find({}); | |
}; | |
Meteor.startup(function () { | |
var quadrado = Quadrados.insert({x: Math.random() * 500, y: Math.random() * 500}); | |
Session.set("quadrado", quadrado); |
OlderNewer