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
| class SomeController { | |
| private func loadOfferSummaries() -> Void { | |
| api.fetchOfferSummaries( { either in | |
| switch either { | |
| case let .Failure(boxedError): | |
| NSLog("Failure fetching games, code --> \(boxedError.value.code)") | |
| // mock out test data | |
| self.offers = self.mockOfferSummaries() | |
| self.loadTable() | |
| case let .Success(boxed): |
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
| curl -v https://api.sportsdatallc.org/mlb-t4/schedules/2014.json\?api_key\=[VALID_API_KEY] | |
| * Adding handle: conn: 0x7fdb3b804000 | |
| * Adding handle: send: 0 | |
| * Adding handle: recv: 0 | |
| * Curl_addHandleToPipeline: length: 1 | |
| * - Conn 0 (0x7fdb3b804000) send_pipe: 1, recv_pipe: 0 | |
| * About to connect() to api.sportsdatallc.org port 443 (#0) | |
| * Trying 23.23.158.219... | |
| * Connected to api.sportsdatallc.org (23.23.158.219) port 443 (#0) | |
| * TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 |
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
| // what I'd like to do | |
| def primaryOperation(): Unit = { | |
| // blah | |
| // blah | |
| val triforce = makeTriforce | |
| val complexObject = new ComplexObject( | |
| firstParam = somethingelse | |
| secondParam = triforce._1 | |
| thirdParm = snakes |
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 com.sabrelabs.twitter.auth | |
| import scala.collection.BitSet | |
| import scala.annotation.tailrec | |
| import scala.runtime.RichInt | |
| import scala.collection.mutable.ListBuffer | |
| object PercentEncoder { | |
| def encodeRFC3986(str: String): 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
| def load_words | |
| formatted_words = [] | |
| File.readlines(ARGV[0]).each{|line| formatted_words << line.chomp.downcase} | |
| formatted_words | |
| end | |
| def sort_word_alphabetically(unsorted_word) | |
| unsorted_word.chars.sort.join | |
| end |
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
| tar -jvcf email-xml-pairs.tar.bz2 /path/to/base |
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
| tar -jvcf email-xml-pairs.tar.bz2 /path/to/base |
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
| git status | grep deleted | awk '{print $3}' | xargs git rm |
NewerOlder