> lsb_release -a | grep Description
Description: Ubuntu 12.04.4 LTS
> sudo lsof -i :2181 | grep '(LISTEN)'
java 29720 zookeeper 27u IPv4 236483534 0t0 TCP *:2181 (LISTEN)
> mesos-master --version
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
| // calculator-api-swagger/generator.js | |
| var fs = require('fs'); | |
| var CodeGen = require('swagger-js-codegen').CodeGen; | |
| var file = 'api/swagger/swagger.json'; | |
| var swagger = JSON.parse(fs.readFileSync(file, 'UTF-8')); | |
| var reactjsSourceCode = CodeGen.getReactCode({ className: 'Test', swagger: swagger }); | |
| console.log(reactjsSourceCode); | |
| //var tsSourceCode = CodeGen.getTypescriptCode({ className: 'Test', swagger: swagger, imports: ['../../typings/tsd.d.ts'] }); |
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
| function greeter(person) { | |
| return "Hello, " + person; | |
| } | |
| var user = "Jane"; | |
| var eventPlaceId = "greeter"; | |
| alert('hello world in JS!'); | |
| document.getElementById(eventPlaceId).innerHTML = greeter(user); | |
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
| // OSX | |
| open /Applications/Google\ Chrome.app --args --disable-web-security --user-data-dir | |
| // Linux | |
| chromium-browser --disable-web-security --user-data-dir | |
| // Windows | |
| // (Needs to find where is Chrome Link: may just right click on Chrome icon and choose its properties and path) | |
| // later | |
| cd /D C:/UserData/Microsoft/Windows/... |
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 com.twitter.app.Flag | |
| import com.twitter.finagle.http.{Request, Response} | |
| import com.twitter.finagle.{Http, ListeningServer, Service} | |
| import com.twitter.server.TwitterServer | |
| import com.twitter.util.Await | |
| import io.circe.{Encoder, Json} | |
| import io.finch._ | |
| import io.finch.circe._ |
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
| // Let change finch example to specify custom http-headers (let call them CTPPHeader) per models | |
| object model { | |
| trait ToJsonWithHeaders { | |
| def toJson: Json | |
| // provide specific headers per model file | |
| def getTemplate :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
| /** | |
| * Generated by Scrooge | |
| * version: 3.14.1 | |
| * rev: a996c1128a032845c508102d62e65fc0aa7a5f41 | |
| * built at: 20140501-114707 | |
| */ | |
| package com.xxx.services | |
| import com.twitter.scrooge.{ | |
| TFieldBlob, ThriftException, ThriftStruct, ThriftStructCodec3, ThriftStructFieldInfo, ThriftUtil} |
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
| // These are snippets based on the recent finch demo package. | |
| // Some modification are added to eliminate usage of ToJson trait, | |
| // but use argonaut Json via implicits instead. | |
| // The purpose of ToJson trait removal is to bypass compilers errors on | |
| // Service[AuthRequest, Seq[argonaut.Json]] to Service[AuthRequest, Json]] | |
| // conversion. | |
| // See current compilers errors at the bottom of the gist |
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
| // ----------- Build script configuration | |
| buildscript { | |
| repositories { | |
| mavenCentral() | |
| maven { url 'http://saturday06.github.io/gradle-android-scala-plugin/repository/snapshot' } | |
| maven { url 'http://clinker.47deg.com/nexus/content/groups/public' } | |
| maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } | |
| maven { url 'https://maven.fabric.io/public' } | |
| maven { | |
| url "https://oss.sonatype.org/content/repositories/snapshots" |
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
| weblab@devbox:~/projects$ grunt --version | |
| grunt-cli v0.1.11 | |
| weblab@devbox:~/projects$ yo --version | |
| 1.0.4 | |
| weblab@devbox:~/projects/closure-test$ node --version | |
| v0.8.26 | |
| weblab@devbox:~/projects/closure-test$ npm --version |
NewerOlder