- Sony alpha NEX-5 14.2 MP Mirrorless Camera - Black — Kit w/ 16mm & 18-55mm Lenses, flash and spare battery (excellent working condition with some wear and tear)
- PlayStation 3 God of War 3 Edition w/ GoW 3, Portal 2 and Red Dead Redemption (mint condition, only played RDR)
- PSP (PlayStation Portable) — Silver w/ Hard casing, spare battery and games (Family Guy, God of War, Exterminator, etc.) (mint condition)
- Creative Computer Speakers (basic speakers, never used)
- Philips Computer Speakers (basic speakers, never used)
- AudioEngine 5 Speakers w/ built-in amp (Studio Monitors) (needs repair for pops and crackles - common problem in this model)
- 2007 PC w/ Q6600 2.4GHz, Asus P5K Deluxe Motherboard, AMD ATI 4800 512MB Graphics Card, 2GB GSkill RAM (needs repair; motherboard not posting - known problem with this MB model)
- 2008 MacBook Pro 2.6GHz w/ spare MagSafe charger (needs new battery, keyboard up/down keys not responding)
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
// "select" non-nil elements. | |
var data: Array<String> = ["0", "a"] | |
var wrappedIntsWithOptionals = data.map { $0.toInt() } as Array<Int?> | |
println("wrappedIntsWithOptionals: \(wrappedIntsWithOptionals)") | |
// wrappedIntsWithOptionals: [Optional(0), nil] | |
// ## This works |
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
package main | |
import "fmt" | |
// protocol | |
type Specimen interface { | |
NumLegs() int | |
} | |
var Species = []Specimen{} |
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
request(.GET, CUSTOMER_URL, parameters: params, encoding: .URL).responseJSON { (request, response, result) -> Void in | |
if let message = JSON(result.value ?? "")["message"].string ?? "Default value to make it nonOptional" { | |
switch(result) { | |
case .Success(let json): | |
if let customer = JSON(json)["customer"].dictionaryObject { | |
GlobalCache.sharedInstance.setCustomer(customer) | |
} | |
completion(succeed: response?.statusCode == 200, message: message) | |
case .Failure(_,_): | |
completion(succeed: false, message: message) |
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
{ | |
"data": { | |
"id": 14830193, | |
"type": "twitter_connection", | |
"attributes": { | |
"created_at": "2015-09-15T11:19:50.201187+05:30", | |
"updated_at": "2015-09-15T11:19:50.201187+05:30", | |
"screen_name": "Gurpartap" | |
} | |
} |
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
source "https://github.com/CocoaPods/Specs.git" | |
platform :ios, "8.0" | |
use_frameworks! | |
inhibit_all_warnings! | |
pod "Protobuf", "~> 3.0.0-alpha-4.1" | |
pod "gRPC", git: "https://github.com/grpc/grpc" | |
pod "EchoSDK", path: "../proto" |
Follow the link for more info:
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
// 1. Like SGo | |
var regularVar: String | |
// This will _not compile_. | |
// print(regularVar) | |
// This will _not compile_. | |
// regularVar = nil |
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://play.golang.org/p/P5DDZrcXZB | |
package main | |
import "fmt" | |
type Monad interface { | |
Bind(func(interface{}, Monad) Monad) Monad | |
Return(interface{}) Monad | |
} |