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
# Configuration file for the usbmount package, which mounts removable | |
# storage devices when they are plugged in and unmounts them when they | |
# are removed. | |
# Change to zero to disable usbmount | |
ENABLED=1 | |
# Mountpoints: These directories are eligible as mointpoints for | |
# removable storage devices. A newly plugged in device is mounted on | |
# the first directory in this list that exists and on which nothing is |
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
/// <reference path="../../api/jasmine/jasmine.d.ts" /> | |
/// <reference path="../../src/Task/CoolThing.ts" /> | |
describe("CoolThingTest", function() { | |
var RESOURCE_ID:string = 'agdiaWctc2t5ch4LEhFTZWxlY3Rpb25SZXNvdXJjZRiAgICAgICgCgw'; | |
beforeEach(function(done) { | |
this.testTask = new Task.CoolThing(RESOURCE_ID); | |
expect(this.testTask.run()).toBe(true); |
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
// Initialize and use dependencies from "npm install" | |
var customizedOptions = { | |
languages: ['javascript', 'typescript'], | |
path: { | |
docs: './report/docs/' | |
}, | |
taskTree: { | |
'karma': { | |
include: ['express_start'] | |
}, |
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
module.exports = function(config) { | |
config.set({ | |
browsers: ["PhantomJS"], | |
coverageReporter: { | |
dir: 'report/coverage/', | |
reporters: [ | |
{type: 'html', subdir: 'html'}, | |
{type: '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
from logging import debug as log_debug | |
from google.appengine.ext import deferred | |
from google.appengine.ext import ndb | |
from model2 import Child # this works for query purposes! | |
# deserialize bigtable data into object will yield | |
# just GrandParent fields prior to migration running | |
BATCH_SIZE = 20 |
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
from google.appengine.ext import ndb | |
from google.appengine.ext.ndb import polymodel | |
class SelectionBinder(polymodel.PolyModel): | |
""" | |
Base class for selecting content. | |
https://developers.google.com/appengine/docs/python/ndb/polymodelclass | |
All selections are at the binder level or more specific. | |
""" |
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 postCorsRequest(theUrl, theJsonObj, theOnLoadCallback, theErrorCallback) { | |
var aJsonStr = JSON.stringify(theJsonObj); | |
var aRequest = createCorsRequest("post", theUrl); | |
if (aRequest) { | |
aRequest.onload = theOnLoadCallback; | |
aRequest.onerror = theErrorCallback; | |
aRequest.send(aJsonStr); | |
} |
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 createCorsRequest(method, url) { | |
var xhr = new XMLHttpRequest(); | |
if ("withCredentials" in xhr) { | |
xhr.open(method, url, true); | |
} else if (typeof XDomainRequest != "undefined") { | |
xhr = new XDomainRequest(); | |
xhr.open(method, url); | |
} else { | |
xhr = null; | |
} |
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
<!doctype html> | |
<!-- | |
/* | |
* Jason Zerbe | |
* Copyright 2012 | |
* Build-Id: EMPTY | |
* | |
* any comments before doctype will set IE9 to quirks mode | |
*/ | |
--> |