Skip to content

Instantly share code, notes, and snippets.

View leetheguy's full-sized avatar

Lee Nathan leetheguy

View GitHub Profile
2017-06-30 13:35:48.400821-0700 MyApp[2153:688346] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2017-06-30 13:35:48.408201-0700 MyApp[2153:688346] Apache Cordova native platform version 4.4.0 is starting.
2017-06-30 13:35:48.409330-0700 MyApp[2153:688346] Multi-tasking -> Device: YES, App: YES
2017-06-30 13:35:48.544506-0700 MyApp[2153:688346] Using UIWebView
2017-06-30 13:35:48.546420-0700 MyApp[2153:688346] [CDVTimer][handleopenurl] 0.138998ms
2017-06-30 13:35:48.550142-0700 MyApp[2153:688346] [CDVTimer][intentandnavigationfilter] 3.609002ms
2017-06-30 13:35:48.550329-0700 MyApp[2153:688346] [CDVTimer][gesturehandler] 0.093997ms
2017-06-30 13:35:48.573028-0700 MyApp[2153:688346] [CDVTimer][splashscreen] 22.641003ms
2017-06-30 13:35:48.585519-0700 MyApp[2153:688346] [CDVTimer][statusbar] 12.297988ms
2017-06-30 13:35:48.589548-07
@leetheguy
leetheguy / .block
Last active March 10, 2017 22:56 — forked from mbostock/.block
Polar Clock
license: gpl-3.0
@leetheguy
leetheguy / settings-2.ts
Last active March 12, 2018 16:13
illustrating getters and setters
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-settings',
templateUrl: 'settings.html'
})
export class SettingsPage {
_pomLength: number;
_shortBreakLength: number;
@leetheguy
leetheguy / settings-1.ts
Last active February 23, 2017 10:38
illustrating getters and setters
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-settings',
templateUrl: 'settings.html'
})
export class SettingsPage {
pomLengthValue: number;
shortBreakLengthValue: number;
@leetheguy
leetheguy / settings-service.ts
Last active February 23, 2017 18:13
illustrating getters and setters
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import 'rxjs/add/operator/map';
@Injectable()
export class SettingsService {
_pomLength: number;
_shortBreakLength: number;
_longBreakLength: number;
@leetheguy
leetheguy / settings-3.ts
Last active February 23, 2017 18:18
illustrating getters and setters
import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { SettingsService } from './settings-service';
@Component({
selector: 'page-settings',
templateUrl: 'settings.html'
})
export class SettingsPage {
constructor(public navCtrl: NavController, public navParams: NavParams, public settings: SettingsService) {
AttachmentCtrl = ($scope, $location, $timeout, Docs) ->
$ ->
$("#fileupload").fileupload
dataType: "json"
url: "/angular-ib/app/fileupload?id=" + $location.search().id
add: (e, data) ->
$scope.$apply (scope) ->
# Turn the FileList object into an Array
i = 0
@leetheguy
leetheguy / gist:1384578
Created November 22, 2011 01:15
oddball error
SQLite3::SQLException: unsupported file format: SELECT name
FROM sqlite_master
WHERE type = 'table' AND NOT name = 'sqlite_sequence'