This file contains 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
Feature: API | |
In order to use the service from third party apps | |
As a user | |
I want to be able to use an API | |
Background: | |
Given a user exists # Pickle | |
And I login as the user using basic auth | |
Scenario Outline: Get a ticket |
This file contains 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
-- Reset the query cache | |
RESET QUERY CACHE; | |
-- Closes all open tables, forces all tables in use to be closed, and flushes the query cache. | |
FLUSH TABLES; | |
-- Show character set in use by client, server, etc. | |
SHOW VARIABLES LIKE 'character_set%'; |
This file contains 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 'fileutils' | |
start_time = Time.now | |
SOURCE_DB = { | |
:name => 'db_name', | |
:user => 'db_user', | |
:password => 'db_pass', | |
:host => 'localhost' |
This file contains 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 org.apache.lucene.analysis.standard.StandardAnalyzer; | |
import org.apache.lucene.document.Document; | |
import org.apache.lucene.facet.index.CategoryDocumentBuilder; | |
import org.apache.lucene.facet.index.params.DefaultFacetIndexingParams; | |
import org.apache.lucene.facet.index.params.FacetIndexingParams; | |
import org.apache.lucene.facet.search.DrillDown; | |
import org.apache.lucene.facet.search.FacetsCollector; | |
import org.apache.lucene.facet.search.params.CountFacetRequest; | |
import org.apache.lucene.facet.search.params.FacetRequest; | |
import org.apache.lucene.facet.search.params.FacetSearchParams; |
This file contains 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 airbnb.cascading.sessions; | |
import cascading.flow.Flow; | |
import cascading.flow.FlowConnector; | |
import cascading.flow.hadoop.HadoopFlowConnector; | |
import cascading.pipe.Pipe; | |
import cascading.scheme.hadoop.TextLine; | |
import cascading.tap.SinkMode; | |
import cascading.tap.Tap; | |
import cascading.tap.hadoop.Hfs; |
This file contains 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
# Clone the repo: | |
$ git clone git://github.com/airbnb/twitter-commons-sample.git | |
# Build using Maven: | |
$ mvn package | |
# Run: | |
$ bash run_local.bash | |
# Like a place: |
This file contains 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 sys | |
port = 8080 | |
if sys.version_info.major == 3: | |
import http.server | |
import socketserver | |
handler = http.server.SimpleHTTPRequestHandler | |
httpd = socketserver.TCPServer(("",port), handler) | |
elif sys.version_info.major == 2: |
This file contains 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 mesosphere.mesos.util.FrameworkInfo | |
import org.apache.mesos.MesosSchedulerDriver | |
/** | |
* @author Tobi Knaup | |
*/ | |
object Main extends App { |
This file contains 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
# Git | |
source /usr/local/etc/bash_completion.d/git-prompt.sh | |
if [ "$USER" = "root" ]; then | |
PS1='\e[1;31m[\u@\h \W[\033[34m\]$(__git_ps1 " (%s)")\[\033[00m\]\$\e[0m ' | |
else | |
PS1='\u@\h \w$(__git_ps1 " (%s)")\$ ' | |
fi | |
alias g='git' | |
alias gpr='git pull --rebase' |
This file contains 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
Index: Rakefile | |
=================================================================== | |
--- Rakefile (revision 1572742) | |
+++ Rakefile (working copy) | |
@@ -36,7 +36,7 @@ | |
Dir.glob('*.md').each { |doc| | |
puts "working on: #{doc}" | |
IO.write(doc, File.open(doc) { |f| | |
- f.read.gsub(/\((.*)(\.md)\)/, '(\1)') | |
+ f.read.gsub(/\((.*)(\.md)\)/, '(/documentation/latest/\1/)') |
OlderNewer