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
ES6 is JS Next. | |
Typescript adds compile time static type assertions, and optionally runtime dynamic assertions. | |
AtScript adds compile time annotations to Typescript. | |
At(Type(ES6(JS))) |
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
FROM fedora:20 | |
RUN yum install wget make bzip2 --assumeyes | |
# Download and build chruby | |
RUN wget -O /tmp/chruby-0.3.8.tar.gz https://github.com/postmodern/chruby/archive/v0.3.8.tar.gz | |
RUN tar -xzf /tmp/chruby-0.3.8.tar.gz -C /tmp/ | |
RUN /bin/make -C /tmp/chruby-0.3.8/ install | |
RUN echo 'source /usr/local/share/chruby/chruby.sh' >> $HOME/.bashrc |
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
init(hostname: String, accessToken: String) { | |
self.hostname = hostname | |
self.request = Net(baseUrlString: self.hostname, headers: ["access_token": accessToken]) | |
} | |
func getActivities(callback: Callback) -> Void { | |
self.request.GET("/activities.json", params: nil, successHandler: { responseData in | |
var json = JSON(data: responseData.data) | |
callback(json) | |
}, failureHandler: { error in |
NewerOlder