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
| # this is an example of the Uber API | |
| # as a demonstration of an API spec in YAML | |
| swagger: '2.0' | |
| info: | |
| title: Uber | |
| description: Move your app forward with the Uber API | |
| version: "1.0.0" | |
| # the domain of the service | |
| host: api.uber.com | |
| # array of all schemes that your API supports |
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
| testtest |
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
| // gomoku_2016_01_18.txt | |
| // https://gist.github.com/bsoo/bd361a7fe01fc6bff068 | |
| package main | |
| import "strings" | |
| func lesson01(num int) { | |
| asterisk := 1 | |
| blank := num / 2 |
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
| // gomoku_2016_01_18.txt | |
| // https://gist.github.com/bsoo/bd361a7fe01fc6bff068 | |
| func isPrime(n int) bool { | |
| if n < 2 { | |
| return false | |
| } else if n == 2 { | |
| return true | |
| } |
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 ( | |
| "bufio" | |
| "fmt" | |
| "log" | |
| "math" | |
| "os" | |
| "strconv" | |
| "time" |
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" | |
| "math/rand" | |
| "time" | |
| ) | |
| func pickupSort(min int, max int, num int) []int { | |
| numRange := max - min |
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 | |
| let pixelDataByteSize = 4 | |
| extension UIImage { | |
| func getColor(pos: CGPoint) -> UIColor { | |
| let imageData = CGDataProviderCopyData(CGImageGetDataProvider(self.CGImage)) | |
| let data : UnsafePointer = CFDataGetBytePtr(imageData) |