Skip to content

Instantly share code, notes, and snippets.

View jcampbell05's full-sized avatar

James Campbell jcampbell05

View GitHub Profile
@jcampbell05
jcampbell05 / WMELite Audio Crash
Created December 9, 2013 17:48
Log From WME Lite For Audio Crash
This file has been truncated, but you can view the full file.
E/ClockAlarmWidget( 5504): [AlarmWidgetIdManager] getListItem() : itemIndex=0, widgetID:1
E/ClockAlarmWidget( 5504): [AlarmWidgetIdManager] getListItem() : ItemIndex exceed ListItemCount. itemIndex=1
E/ClockAlarmWidget( 5504): [AlarmWidgetIdManager] getListItem() : itemIndex=1, widgetID:1
D/ClockAlarmDataProvider( 5504): getAlarm() - too many same ID alarm data. nCount: 0
E/Watchdog( 2265): !@Sync 178
W/HTTPMetricsTransport( 5293): transmit - Aborting metrics transmission because there is no usable connection.;
W/Metrics:BatchTransmitte( 5293): QueuePusher.sendBatches - Batch transmission failed due to no usable connection, re-enqueuing batch;
I/Metrics:BatchTransmitte( 5293): QueuePusher.sendBatches - Partial number of batches sent; 0
I/Metrics:BatchTransmitte( 5293): QueuePusher.sendBatches - Drained batch queue.; Number of batches sent: 0
D/CircleLockScreen( 2265): onRefreshBatteryInfo() showPatteryInfo: true pluggedIn: true batteryLevel: 27
@jcampbell05
jcampbell05 / podfile
Created December 26, 2015 14:33
Sup pod file
platform :ios, '8.0'
use_frameworks!
#UI
pod 'ActionSheetPicker-3.0', '~> 1.5.0'
pod 'BFPaperTableViewCell'
pod 'BFPaperButton'
pod 'KVNProgress'
pod 'SWTableViewCell', '~> 0.3.7'
# The Train-Inferno Development Cycle
The continual release focused development cycle.
# Sprints
In the Inferno development cycle the team sets the length of a sprint, this defines how often each train departs. The train is a new version of a product.
For each sprint, the team must decide the tasks they wish to tackle and must process the task category, stage and a fare.
@sarahjeong APIs are like Human Lanaguage.
They are the tools that help us describe an idea and the instructions to realise that idea. Copyrighting APIs would be like banning certain people from using words to describe or action certain things. So if EAT Ltd copyrighted the word "Eat" from being used for all humans who implemented it as a way of communicating ideas about eating to other Humans, then whenever we wanted to discuss eating or even take part in that activity then we would need a new word.
If this continued then soon everyone would end up having to invent whole new collection of words to the point where could you even argue its the same language? Computers are powerful when they inteoperate with APIs just like the way Humans are powerful when they can interoperate with words.
@jcampbell05
jcampbell05 / AngleTypes.swift
Created June 23, 2016 15:32
This was the only way I could create units in Swift and mimic a generic number system as well.
//
// AngleTypes.swift
// Sup
//
// Created by James Campbell on 22/12/2015.
// Copyright © 2015 Sup. All rights reserved.
//
// This File defines representations of Degrees and Radians as Type Safe Alogrithm Types
import Foundation
PO_EDITOR_BASE_LANGUAGE = 'en'
PO_EDITOR_LANGUAGES = ['en', 'fr', 'es', 'pt'].freeze
def export_translations
poeditor_export(
api_token: PO_EDITOR_API_TOKEN,
project_id: PO_EDITOR_PROJECT_ID,
export_format: 'apple_strings',
language: PO_EDITOR_BASE_LANGUAGE,
output_path: "Sup/Base.lproj/Localizable.strings"
# Train Score System
This document is to serve as a measurable way of determining the level of service
a train operator has. By creating a tangiable and open way of scruitinising these
companies it is hoped that especially in the UK, service levels will improve.
## Levels
These are the levels that train companies can achieve:
import calendar
import csv
import datetime
import dateutil.parser
import json
from dateutil.rrule import rrule, MONTHLY, YEARLY
from urllib import request
from urllib.parse import urlencode
base_url = "https://www.performance.service.gov.uk/data/register-to-vote/volumetrics"
import calendar
import csv
import datetime
import dateutil.parser
import json
from dateutil.relativedelta import *
from dateutil.rrule import rrule, MONTHLY, YEARLY
from urllib import request
from urllib.parse import urlencode
//
// main.swift
// StructSize
//
// Created by James Campbell on 20/04/2020.
// Copyright © 2020 James Campbell. All rights reserved.
//
import Foundation
import AppKit