Skip to content

Instantly share code, notes, and snippets.

David Olesch davidolesch

View GitHub Profile
@davidolesch
davidolesch / TenSwiftStyleRules.swift
Last active Mar 8, 2019
Good Swift Style and Conventions
View TenSwiftStyleRules.swift
/*
____ _ __ _
/ ___|_ _(_)/ _| |_
\___ \ \ /\ / / | |_| __|
___) \ V V /| | _| |_
|____/ \_/\_/ |_|_| \__|
Good Swift Style and Conventions
View BlackjackSimulation.Playground
import Foundation
protocol Randomizable {
init?(rawValue:Int)
static var min:Int { get }
static var max:Int { get }
}
extension Randomizable {
static var random:Self? {
View AppDelegate.m
#import "AppDelegate.h"
@import AcceptSDK;
@interface AppDelegate ()
@end
@implementation AppDelegate
View poll.html
<a href="alertsenseapp://alertsense.com/Polling/119571">alertsenseapp://alertsense.com/Polling/119571</a>
View AlertID.html
<a href="alertsenseapp://alertsense.com/Alerts/116810">alertsenseapp://alertsense.com/Alerts/116810</a>
View form.html
<a href="alertsenseapp://alertsense.com/login?UserName=david.rabbit">alertsenseapp://alertsense.com/login?UserName=david.rabbit</a>
@davidolesch
davidolesch / Best-iOS-engineering-and-indie-business-blogs
Last active Aug 29, 2015
High quality iOS engineering and indie business blogs that continuously release new good content.
View Best-iOS-engineering-and-indie-business-blogs
News Sources
============
(https://twitter.com/DavidOlesch/following)[https://twitter.com/DavidOlesch/following]
http://hn.algolia.com/legacy#!/story/sort_by_date/prefix/0/ios
http://www.watchkitresources.com/
Technical Blogs
===============
http://subjc.com/
http://petersteinberger.com/blog/archives/
View jquery.formatCurrency-1.4.0.js
// This file is part of the jQuery formatCurrency Plugin.
//
// The jQuery formatCurrency Plugin is free software: you can redistribute it
// and/or modify it under the terms of the GNU General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
// The jQuery formatCurrency Plugin is distributed in the hope that it will
// be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
View DOViewController.m
//
// DOViewController.m
// LoginForm
//
// Created by David Olesch on 4/1/14.
// Copyright (c) 2014 David Olesch. All rights reserved.
//
#import "DOViewController.h"
@davidolesch
davidolesch / gist:9309897
Created Mar 2, 2014
Lesson 4 presented March 4th 2014
View gist:9309897
- (void)getAndDisplayTravelTime
{
//create request
MKDirectionsRequest *request = [[MKDirectionsRequest alloc] init];
[request setSource:[[MKMapItem alloc] initWithPlacemark:self.origin]];
[request setDestination:[[MKMapItem alloc] initWithPlacemark:self.destination]];
[request setTransportType:MKDirectionsTransportTypeAutomobile];
//send request
[[[MKDirections alloc] initWithRequest:request] calculateDirectionsWithCompletionHandler:^(MKDirectionsResponse *response, NSError *error) {
You can’t perform that action at this time.