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
// | |
// ViewController.swift | |
// CurrentLocation | |
// | |
// Created by Jonathan Dalrymple on 13/05/2017. | |
// Copyright © 2017 float-right. All rights reserved. | |
// | |
import UIKit | |
import GoogleMaps |
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
class Object: NSObject { | |
let name:String | |
init(name:String) { | |
self.name = name | |
} | |
} |
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
class Object: NSObject { | |
let name:String | |
init(name:String) { | |
self.name = name | |
} | |
} | |
func ==(lhs: Object, rhs:Object) -> Bool { | |
return lhs.name == rhs.name |
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
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Comment: GPGTools - https://gpgtools.org | |
mQINBFZFv3ABEADKpPf1TY/t9sGkQNOxJRBadeisl1MLNwc3OttpuG9DNuINu/fI | |
7WAXKyA045gWiUcIOmwSrjGL5r4Li71TT9znqczoTVOWrbxsXarfXv+pYCruuCgm | |
DOz0ZqvzXd/cDFPtIjMbYS9vMr6BOopSU/a66iBSoVYwt5XFUUpgZJIe19YmfLhy | |
UnrKqI46E1kq8utq/WfqR8z/qwUsuhHw3IwJO6Cm0xoWJ++Htught3bBUn3AmJ68 | |
tgdgZq5O0U5bQJ0xeuD9K69CSqSklLYGMWVoeuUVX9o0qkV3xXjNMGJwGLP/bGdM | |
mIYrYidhx9yALrJzPpyIDsOZAp5hYjUIr8Ppu8UB8laGSJbxW2BGlwYiiNDgEmWB | |
sYBhthzGbyJX8UC8EOm4MPHL4S4fQLIdoaXyjoRTS3hM1AB+sDKujMBgM+SpQWBe |
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
import os | |
import shutil | |
contentTemplate = """ | |
{ | |
"images" : [ | |
{ | |
"idiom" : "universal", | |
"filename" : "%s" | |
} |
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
#!/usr/bin/env bash | |
SOURCE_REPO="" #ie. [email protected]:veritech/FRCoreDataOperation.git | |
DESTINATION_REPO="" #[email protected]:veritech/mirror.git | |
FORMATTED_DATE=`date +"%B %d %Y"` | |
# Get the head of the mirror repo | |
git clone $DESTINATION_REPO mirror | |
# Get the head of the of the source repo |
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
config defaultToCurrentScreen true | |
#screens | |
alias mon-laptop 1680x10150 | |
#applications | |
alias browser 'Google Chrome' | |
alias term 'Terminal' | |
alias editor 'TextMate' |
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
#!/bin/bash | |
# Automatic build script for polarssl | |
# for iPhoneOS and iPhoneSimulator | |
# | |
# Created by Felix Schulze on 08.04.11. | |
# Copyright 2010 Felix Schulze. All rights reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. |
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
- (void)updateConstraints { | |
NSMutableArray *constraints = [NSMutableArray array]; | |
NSDictionary *views; | |
NSDictionary *metrics = @{}; | |
void (^squareConstraint)(UIView *) = ^(UIView *aView) { | |
[constraints addObject:[NSLayoutConstraint constraintWithItem:aView | |
attribute:NSLayoutAttributeHeight | |
relatedBy:NSLayoutRelationEqual | |
toItem:aView |
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
- (NSDate *)dateAtStartOfWeek | |
{ | |
NSCalendar *calendar = [NSDate AZ_currentCalendar]; | |
NSDateComponents *components = [calendar components:NSYearCalendarUnit | NSMonthCalendarUnit | NSWeekdayCalendarUnit | NSDayCalendarUnit | NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit fromDate:self]; | |
// NSRange range = [calendar rangeOfUnit:NSDayCalendarUnit inUnit:NSWeekdayCalendarUnit forDate:self]; | |
components.day -= components.weekday; | |
return [calendar dateFromComponents:components]; | |
} | |
- (NSDate *)dateAtEndOfWeek |
NewerOlder