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
checkFunctionDecl: function(line, lineNumber) { | |
var errors = []; | |
var functions = line.match(/function\s+\w+/g); | |
_.each(functions, function(fun) { | |
var name = fun.split(/\s+/g)[1]; | |
// I18N: Don't translate the '\" var %(name)s = function() {}; \"' part | |
var error = { | |
row: lineNumber, | |
column: line.indexOf(fun), |
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
/* global initProcessingStubs */ | |
importScripts("processing-stubs.js?cachebust=" + (new Date()).toDateString()); | |
self.onmessage = function(event) { | |
var data = event.data, | |
context = data.context, | |
code = "with(arguments[0]){\n" + | |
data.code + | |
"\nif (typeof draw !== 'undefined' && draw){draw();}}", |
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
/** | |
* LocalStore is a *super* simple abstraction around localStorage for easy | |
* get/set/delete. We may end up wanting something more powerful like | |
* BankersBox, but for now this is much lighter weight. | |
* | |
* If you ever need to completely wipe LocalStore for *all* users when, | |
* say, changing the format of data being cached, just bump up the "version" | |
* property below. | |
*/ | |
window.LocalStore = { |
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 externals; | |
var localStorage = (function() { return this.localStorage; })(); | |
var prompt = (function() { return this.constructor.prototype.prompt.bind(this); })(); | |
var wopen = (function() { return this.constructor.prototype.open.bind(this); })(); | |
var prompt2 = (function() { return this.prompt.bind(this); })(); | |
var wopen2 = (function() { return this.open.bind(this); })(); | |
localStorage.knowsPass_ID7232115911023911 = "xzz"; | |
println(localStorage.knowsPass_ID7232115911023911); | |
prompt("What is the password?"); |
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
Error.prepareStackTrace = function(error, structuredStackTrace) { | |
return structuredStackTrace; | |
}; | |
var getNumberFromChromeTrace = function(stack) { | |
// find first eval | |
var evalSite = null; | |
for (var i = 0; i < stack.length; i++) { | |
if (stack[i].isEval()) { | |
evalSite = stack[i]; |
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
<html> | |
<body> | |
<style> | |
h1{ | |
background-color: yellow; | |
} | |
h2{ | |
background-color: lightblue; | |
} | |
</style> |
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
CREATE TABLE jeopardy( | |
ID INTEGER NOT NULL PRIMARY KEY | |
, Show_Number INTEGER | |
, Air_Date TEXT | |
, Round TEXT | |
, Category TEXT | |
, Value TEXT | |
, Question TEXT | |
, Answer TEXT | |
); |
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
/* | |
Khan Academy Avatars: | |
This table contains all of Khan Academy's avatars, including their type and name, the requirements to unlock them, and their relative image URL. | |
Collected by: | |
https://www.khanacademy.org/profile/chopsor/ | |
*/ | |
CREATE TABLE avatars ( | |
id INTEGER, |
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
/* | |
Top 10 organs in the human body, by weight | |
Adapted from: https://propelsteps.wordpress.com/2014/10/12/know-top-10-largest-organs-of-the-human-body/ | |
Collected by: https://www.khanacademy.org/profile/errorbuddy/ | |
*/ | |
CREATE TABLE organs (id INTEGER PRIMARY KEY, | |
name TEXT, | |
weight INTEGER, | |
important_functions TEXT, |
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
application: oliverfoxmurals | |
version: 1 | |
runtime: python | |
api_version: 1 | |
handlers: | |
- url: / | |
static_files: static/index.html | |
upload: static/index.html | |
OlderNewer