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
| var request = require('request'); | |
| var async = require('async'); | |
| var ghUsername = process.env.GH_USERNAME; | |
| var ghToken = process.env.GH_TOKEN; | |
| var ghOrgname = process.env.GH_ORGNAME; | |
| var ghTeamId = process.env.GH_TEAMID; | |
| function githubRequest(apiEndpoint, method, callback) { | |
| request({ | |
| url: 'https://api.github.com' + apiEndpoint, |
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 Person { | |
| let name: String | |
| let age: Int | |
| init(name: String, age: Int) { | |
| self.name = name | |
| self.age = age | |
| } | |
| class func createPerson(name: String, age: Int) -> Person { |
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
| struct ArgumentList : Sequence { | |
| var arguments: String[] | |
| // init ... | |
| func generate() -> GeneratorOf<String> { | |
| var i = 0; | |
| return GeneratorOf<String>({ | |
| if (i > self.arguments.count) { | |
| return .None |
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
| operator infix ^= { | |
| } | |
| operator infix *= { | |
| } | |
| operator infix * { | |
| } | |
| operator infix % { |