Skip to content

Instantly share code, notes, and snippets.

View jchris's full-sized avatar

Chris Anderson jchris

View GitHub Profile
// MARK: - Listener
func startListener() -> Bool {
if listener != nil {
return true
}
var error: NSError?
listener = CBLListener(manager: CBLManager.sharedInstance(), port: 0)
// Enable Basic Authentication
2015-02-09 13:55:51.265 TodoLite[25539:1536873] Apache Cordova native platform version 3.7.0 is starting.
2015-02-09 13:55:51.265 TodoLite[25539:1536873] Multi-tasking -> Device: YES, App: YES
2015-02-09 13:55:51.268 TodoLite[25539:1536873] Unlimited access to network resources
2015-02-09 13:55:51.271 TodoLite[25539:1536873]
Started backup to iCloud! Please be careful.
Your application might be rejected by Apple if you store too much data.
For more information please read "iOS Data Storage Guidelines" at:
https://developer.apple.com/icloud/documentation/data-storage/
To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
passes: 1176failures: 2duration: 196.48s
test.attachments.js- local:local
Many many attachments replicate ‣
AssertionError: expected '' to equal 'Zm9vYmFy'
at http://127.0.0.1:8000/tests/integration/test.attachments.js:1948:47
Many many png attachments replicate ‣
AssertionError: expected '' to equal 'iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAMFBMVEX+9+j+9OD+7tL95rr93qT80YD7x2L6vkn6syz5qRT4ogT4nwD4ngD4nQD4nQD4nQDT2nT/AAAAcElEQVQY002OUQLEQARDw1D14f7X3TCdbfPnhQTqI5UqvGOWIz8gAIXFH9zmC63XRyTsOsCWk2A9Ga7wCXlA9m2S6G4JlVwQkpw/YmxrUgNoMoyxBwSMH/WnAzy5cnfLFu+dK2l5gMvuPGLGJd1/9AOiBQiEgkzOpgAAAABJRU5ErkJggg=='
at http://127.0.0.1:8000/tests/integration/test.attachments.js:1987:47
test.attachments.js-http
#3074 non-live changes() ‣
AssertionError: when attachments=true: expected [ Array(5) ] to deeply equal [ Array(5) ]
at Assertion.assertEqual (http://127.0.0.1:8000/node_modules/chai/chai.js:1378:19)
at Assertion.ctx.(anonymous function) [as equal] (http://127.0.0.1:8000/node_modules/chai/chai.js:3627:25)
at http://127.0.0.1:8000/tests/integration/test.attachments.js:231:33
#3074 live changes() ‣
AssertionError: when attachments=true: expected [ Array(5) ] to deeply equal [ Array(5) ]
at Assertion.assertEqual (http://127.0.0.1:8000/node_modules/chai/chai.js:1378:19)
at Assertion.ctx.(anonymous function) [as equal] (http://127.0.0.1:8000/node_modules/chai/chai.js:3627:25)
@jchris
jchris / index.js
Created November 7, 2014 17:24
requirebin sketch
require('tap-browser-color')();
var test = require("tape");
var dbName = "safari_test2";
test("clear old", function(t) {
indexedDB.deleteDatabase(dbName).onsuccess = function(){
t.end()
}
@jchris
jchris / index.js
Created November 7, 2014 17:23
safari indexeddb bug
require('tap-browser-color')();
var test = require("tape");
var dbName = "safari_test2";
test("clear old", function(t) {
indexedDB.deleteDatabase(dbName).onsuccess = function(){
t.end()
}
@jchris
jchris / index.js
Created November 7, 2014 15:37
requirebin sketch
require('tap-browser-color')();
var test = require("tape");
test("clear old", function(t) {
indexedDB.deleteDatabase("safari_test").onsuccess = function(){
t.end()
}
})
var db;
@jchris
jchris / index.js
Created November 7, 2014 15:33
requirebin sketch
var test = require("tape");
test("clear old", function(t) {
indexedDB.deleteDatabase("safari_test").onsuccess = function(){
t.end()
}
})
var db;
test("create db", function(t) {
@jchris
jchris / topics.md
Last active August 29, 2015 14:07
Comprehensive Plan Testimony

I'm capturing my testimony here for others to use / remix / refute / get inspired. Please do the same. I'll just collect everything I sent into one email. It was all sent out as individual mails, to psc@portlandoregon.gov and tsp@portlandoregon.gov - don't forget to include your name and address!

I couldn't find the CRC on the map app, maybe someone can point me to how to comment against it.

Alternative Dwelling Units

ADUs are our best shot at maintaining neighborhood character. Character comes not only from the style of the housing stock, but also from maintaining the affordability of dense central neighborhoods as places for the types of creative people who made Portland what it is today. ADUs should be encouraged anywhere single family housing is found. Affordability in the central city is an equity issue, so the faster we can create housing the better our chances of weathering our current boom and coming out the other side as city that's affordable for people who put quality of life about income.