This file contains hidden or 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
let individualScores = [75, 43, 103, 87, 12] | |
var teamScore = 0 | |
if 75 > 50 { | |
teamScore += 3 //this makes teamScore go from 0->3 | |
} else { | |
teamScore += 1 | |
} | |
This file contains hidden or 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 | |
// Silverton Resource Tracker | |
// | |
// Created by Michael Langford on 6/2/14. | |
// Copyright (c) 2014 Rowdy Labs LLC. All rights reserved. | |
// | |
import UIKit |
This file contains hidden or 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 UIKit | |
class Square { | |
var sideLength: Double | |
init(sideLength: Double, name: String) { | |
self.sideLength = sideLength | |
} | |
init(sideSlipperyness: Double, name: String) { |
This file contains hidden or 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
func + <T> (left: T[], right: T[]) -> T[] { | |
var newArray : T[] = [] | |
for item in left { | |
newArray.append(item) | |
} | |
for item in right { | |
newArray.append(item) | |
} | |
return newArray; | |
} |
This file contains hidden or 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
In init: | |
-(instancetype)init{ | |
... | |
_sections = @[ | |
@[@"Twitter",@"Blog",@"Contact Us"], | |
@[@"nameone",@"nametwo",@"namethree"] | |
]; | |
... |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
{:type :document, | |
:content | |
[{:type :document-type, | |
:attrs | |
{:name "html", | |
:publicid "-//W3C//DTD XHTML 1.0 Transitional//EN", | |
:systemid | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}} | |
{:type :element, | |
:attrs {:xmlns "http://www.w3.org/1999/xhtml"}, |
This file contains hidden or 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
https://itunes.apple.com/us/app/numbers/id409203825?mt=12 It's like excel but free and from apple | |
https://www.apple.com/mac/keynote/ arguably better than powerpoint in almost every way | |
https://itunes.apple.com/us/app/alfred/id405843582?mt=12 Alfred (Makes launching apps easy) | |
https://itunes.apple.com/us/app/transmit/id403388562?mt=12 Makes copying files to internet sites easy | |
https://itunes.apple.com/us/app/mail-notifr/id808154494?mt=12 Makes "mail to" web browser sites work with gmail |
This file contains hidden or 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/sh | |
# Current as working as of 2014/09/22 | |
# modified form of http://stackoverflow.com/questions/25056144/xcode-6-how-to-pick-signing-certificate-provisioning-profile-for-ad-hoc-distri | |
# Xcode 6 | |
MYAPP="HELLOWORLD" | |
OUTPUTDIR="$HOME/Desktop/$MYAPP" | |
APPNAME="ANAppName" | |
SCHEME="ASchemeName" |
This file contains hidden or 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/sh | |
OUTPUTDIR="$HOME/Desktop/The_App" | |
APPNAME="The_App" | |
SCHEME="The_App" | |
SRCROOT=`pwd` | |
APP_WORKSPACE="$SRCROOT/The_App.xcworkspace" | |
ARCHIVE_PATH="$OUTPUTDIR/$APPNAME-production.xcarchive" | |
rm -f "$OUTPUTDIR/$APPNAME-production.ipa" |
This file contains hidden or 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 AddressBook | |
import UIKit | |
typealias CThingPtr = UnsafeMutablePointer <ABRecordRef> | |
func cthing_dispose(o:CThingPtr?)->(){ | |
} | |
func cthing_create(cString:UnsafePointer<Int8>)->CThingPtr{ | |
return nil |