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
CACHE MANIFEST | |
CACHE: | |
index.html | |
pattern8-pattern70c.png | |
swfobject.js | |
chromelogo-pulse.swf | |
NETWORK: |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body style="overflow:hidden"> | |
<embed width="100%" height="99%" src="main.swf" type="application/x-shockwave-flash"></embed> | |
</body> |
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
function Timer() { | |
this.gameTime = 0; | |
this.lastTick = 0; | |
this.maxStep = 0.05; | |
this.lastTimestamp = 0; | |
} | |
Timer.prototype.step = function() { | |
var current = Date.now(); |
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 plusOneScript = document.createElement('script'); | |
plusOneScript.setAttribute("src", "https://apis.google.com/js/plusone.js"); | |
plusOneScript.textContent = '{"parsetags": "explicit"}'; | |
plusOneScript.addEventListener("load", function() { | |
var script = document.createElement("script"); | |
script.textContent = "var addPlusOne = function(){gapi.plusone.go();setTimeout(addPlusOne, 1000);};setTimeout(addPlusOne, 1000);"; | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(plusOneScript); |
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/ruby | |
require 'rubygems' | |
require 'hpricot' | |
require 'open-uri' | |
require 'ftools' | |
doc = Hpricot(open("http://postsecret.blogspot.com/")) | |
images = [] |
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
#import('dart:dom', prefix:'dom'); | |
#import('dart:html'); | |
main() { | |
dom.AudioContext audioContext = new dom.AudioContext(); | |
dom.AudioBufferSourceNode source = audioContext.createBufferSource(); | |
dom.AudioGainNode gainNode = audioContext.createGainNode(); | |
source.connect(gainNode, 0, 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
#import('dart:dom', prefix:'dom'); | |
#import('dart:html'); | |
String VERSION = "1"; | |
String TODOS_STORE = 'todos'; | |
initDb(db) { | |
if (VERSION != db.version) { | |
dom.IDBVersionChangeRequest versionChange = db.setVersion(VERSION); | |
versionChange.addEventListener('success', (e) { |
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
#library('lib2'); | |
#source('lib2_helper.dart'); | |
String lib2String = "hello from lib2"; |
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
#import('dart:html'); | |
#import('dart:json'); | |
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
// for details. All rights reserved. Use of this source code is governed by a | |
// BSD-style license that can be found in the LICENSE file. | |
dataReceived(MessageEvent e) { | |
var data = JSON.parse(e.data); |
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
web: dart main.dart |