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
| <h2 class="wmd-title" id="ハッカーのためのベイエリアガイド">「ハッカー」のためのベイエリア・ガイド</h2> | |
| <p><em>(注)本ガイドは氏が書かれた<a href="http://islandofatlas.net/2013/10/04/a-hackers-guide-to-the-bay-area.html">文書</a>を大西洋平(<a href="https://twitter.com/legoboku">@legoboku</a>)が翻訳したものです。翻訳の不備については訳者にお知らせください。</em></p> | |
| <hr> | |
| <p>本ガイドの対象読者はサンフランシスコ・ベイエリア(特にサンフランシスコもしくはシリコンバレー)に移住したいと思っている「ハッカー」です。本ガイドは私のライフスタイルを反映したものになっています(男性、独身、技術的な仕事に専念、貯蓄、ただ健康に関心あり)。「ハッカー」にとって重要だとみなされるものにフォーカスします。</p> | |
| <p>もっとディスカッションしたい方はこちらを参照ください(<a href="https://news.ycombinator.com/item?id=6502430">https://news.ycombinator.com/item?id=6502430</a>)。</p> |
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
| 「ハッカー」のためのベイエリア・ガイド | |
| ------------------- | |
| *(注)本ガイドは氏が書かれた[文書][1]を大西洋平([@legoboku][2])が翻訳したものです。翻訳の不備については訳者にお知らせください。* | |
| ---------- | |
| 本ガイドの対象読者はサンフランシスコ・ベイエリア(特にサンフランシスコもしくはシリコンバレー)に移住したいと思っている「ハッカー」です。本ガイドは私のライフスタイルを反映したものになっています(男性、独身、技術的な仕事に専念、貯蓄、ただ健康に関心あり)。「ハッカー」にとって重要だとみなされるものにフォーカスします。 | |
| もっとディスカッションしたい方はこちらを参照ください([https://news.ycombinator.com/item?id=6502430][3])。 |
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
| app.get('/trips', function(req, res) { | |
| Parse.Cloud.httpRequest({ | |
| url: 'https://api.automatic.com/v1/trips', | |
| headers: { | |
| 'Authorization': 'token xxx' | |
| } | |
| }).then(function(httpResponse) { | |
| console.log(httpResponse); | |
| res.end(httpResponse.text); | |
| }, function(err) { |
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
| //URL to call REST API | |
| final HttpPost httpPostRequest = new HttpPost("https://api.parse.com/1/functions/availableCars"); | |
| //Application ID | |
| httpPostRequest.setHeader("X-Parse-Application-Id", "App-key"); | |
| //REST API Key | |
| httpPostRequest.setHeader("X-Parse-REST-API-Key", "REST-API-key"); | |
| // Content type must be application/json | |
| httpPostRequest.setHeader("Content-Type", "application/json"); | |
| try { | |
| // You have to set valid JSON data as a form data |
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
| Executor executor = Executors.newFixedThreadPool(2); | |
| WebSocketClient client = new WebSocketClient(executor); |
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
| addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.4.0") |
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
| // 文字列型 にマッピングするEnum | |
| object Color extends Enumeration { | |
| type Color = Value | |
| val Blue = Value("Blue") | |
| val Red = Value("Red") | |
| val Green = Value("Green") | |
| } | |
| // 整数型にマッピングするEnum | |
| object Bar extends Enumeration { |
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
| % tree | |
| . | |
| ├── README.md | |
| ├── index.html | |
| ├── package.json | |
| ├── src | |
| │ ├── helloModule.ts | |
| │ ├── index.ts | |
| │ └── wordModule.ts | |
| └── tsconfig.json |
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
| export type Callback = () => void; |
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 scala.language.postfixOps | |
| class BankAccount { | |
| private var bal: Int = 0 | |
| def balance: Int = bal | |
| def deposit(amount: Int) = { | |
| require(amount > 0) | |
| bal += amount | |
| } | |
| def withdraw(amount: Int): Boolean = { | |
| if (amount > bal) false |
OlderNewer