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
| ..='cd ..' | |
| add='git add ' | |
| admin='ssh-add && ssh admin' | |
| b='cd ..' | |
| be='bundle exec ' | |
| branch='git branch ' | |
| cata='cat ~/.dotfiles/bash/aliases' | |
| cdev='cd ~/dev' | |
| checkout='git checkout ' | |
| co='git checkout ' |
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
| require 'twitter' | |
| require 'json' | |
| require 'pp' | |
| Twitter.configure do |config| | |
| config.consumer_key = "" | |
| config.consumer_secret = "" | |
| config.oauth_token = "" | |
| config.oauth_token_secret = "" | |
| end |
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 com.twitter.finatrahelloworld | |
| import com.twitter.finatra.{Controller, FinatraServer, View} | |
| case class Tweet(status:String) | |
| class TimelineView(val tweets:List[Tweet]) extends View { | |
| val template = "timeline.mustache" | |
| } |
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 com.posterous.finatrahelloworld | |
| import com.twitter.finatra.{Controller, FinatraServer} | |
| import com.twitter.finatra_views.View | |
| case class Tweet(status:String) | |
| class TimelineView(val tweets:List[Tweet]) extends View { | |
| val template = "timeline.mustache" | |
| } |
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 TweetsController extends Controller { | |
| get("/users/:username/tweets.json") { request => | |
| val tweets = List() | |
| render.json(tweets) | |
| } | |
| get("/users/:username/tweets") { request => | |
| val tweets = List() | |
| val tweetsView = new TimelineView(tweets) |
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 com.twitter.demo | |
| import com.twitter.macaw.{FinatraController, Status} | |
| class EchoController extends FinatraController { | |
| get("/echo.json") { request => | |
| request.params.get("s") match { | |
| case Some(s) => | |
| actionJsonObjectResponse(Map("echo" -> s)) |
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
| Test set: com.twitter.demo.EchoControllerSpec | |
| ------------------------------------------------------------------------------- | |
| Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.33 sec <<< FAILURE! | |
| GET \/echo.json?s=foo should respond with an echo(com.twitter.demo.EchoControllerSpec) Time elapsed: 0.088 sec <<< ERROR! | |
| org.scalatest.TestFailedException: | |
| at org.scalatest.matchers.Matchers$class.newTestFailedException(Matchers.scala:150) | |
| at com.capotej.finatra_core.FinatraSpec.newTestFailedException(FinatraSpecHelper.scala:7) | |
| at org.scalatest.matchers.ShouldMatchers$ShouldMethodHelper$.shouldMatcher(ShouldMatchers.scala:873) | |
| at org.scalatest.matchers.ShouldMatchers$AnyRefShouldWrapper.should(ShouldMatchers.scala:1491) | |
| at com.twitter.demo.EchoControllerSpec$$anonfun$1.apply$mcV$sp(EchoControllerSpec.scala:22) |
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
| { | |
| "caret_style": "wide", | |
| "draw_indent_guides": false, | |
| "draw_white_space": "none", | |
| "font_size": 15.0, | |
| "ignored_packages":[], | |
| "show_tab_close_buttons": true, | |
| "tab_size": 2, | |
| "translate_tabs_to_spaces": true, | |
| "tree_animation_enabled": false, |
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
| Dear Christopher Burnett | |
| I am attorney Campion Keith. personal lawyer to MR.T.B.Burnett. a, foreign construction engineer who was a | |
| resident here in Lome Togo.My client died with his family while on holiday in Phuket, Thailand in December 2004. | |
| Asia quake disaster (tsunami) I decided to contact you, soIknow that you bear the same surname with him.The | |
| deposit is estimated $ 8.4 Million U.S. dollars only and is deposited with the bank. I am with all the |
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
| require 'rubygems' | |
| require 'rspec' | |
| class Anagrams | |
| include Enumerable | |
| class Word < String | |
| def key | |
| chars.sort.hash | |
| end |