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
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); |
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
<head> | |
<title>quadrados</title> | |
</head> | |
<body> | |
{{> quadrados}} | |
</body> | |
<template name="quadrados"> | |
{{#each quadrados}} |
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
Page Cache: | |
- Quando todos os usuários verão exatamente a mesma página, ao mesmo tempo, e quando é uma página que não muda muito | |
Action Cache: | |
- Quando houver código para ser executado antes da action (ex.: Autenticação) | |
- Porém os resultados das páginas serão os mesmos | |
Fragment Cache: | |
- Quando a página for diferente para cada usuário | |
- Porém partes da página forem a mesma para diversos usuários |
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
#if 0 | |
#include <SPI.h> | |
#include <PN532_SPI.h> | |
#include <PN532.h> | |
#include <NfcAdapter.h> | |
PN532_SPI pn532spi(SPI, 10); | |
NfcAdapter nfc = NfcAdapter(pn532spi); | |
#else |
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_++; |
OlderNewer