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
# lets say we change /repos/* to /repositories | |
# hardcoded urls | |
pull_response = RestCall.get("/repos/bob/rails8/pulls") # 301 | |
pull_response = RestCall.get("/repositories/bob/rails8/pulls") | |
issue_response = RestCall.get("/repos/bob/rails8/issues/#{response.first['issue']}") # 301 | |
issue_response = RestCall.get("/repositories/bob/rails8/issues/#{response.first['issue']}") | |
# hypermedia | |
pull_response = RestCall.get("/repos/bob/rails8/pulls") # 301 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example.helloworld</groupId> | |
<artifactId>hello-world</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<dependencies> | |
<dependency> |
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
source :rubygems | |
gem 'rake' | |
gem 'forgery' | |
gem 'cassandra-cql', :path => '../cassandra-cql' | |
gem 'cassandra', :path => '../cassandra' | |
gem 'perftools.rb' | |
gem 'rbtrace' |
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
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
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
jquery.hover (arg) -> | |
value | |
, (arg) -> | |
value | |
# Or: | |
jquery.hover( | |
(arg) -> value |
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
# If cached file exists, serve it and stop processing | |
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_FILENAME} -f | |
RewriteRule ^(.*)$ /cache/%{HTTP_HOST}$1 [L] | |
# other redirection (imgs, js, css, ...) | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_URI} !.*/mephisto/.* | |
RewriteCond %{REQUEST_URI} !.*html | |
RewriteCond %{REQUEST_URI} !^/cache | |
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/$1 -f |
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
// Beginning of a Ubiquty script for use with xtt | |
CmdUtils.CreateCommand({ | |
name: "xtt", | |
takes: {status: noun_arb_text}, | |
preview: function(previewBlock, statusText) { | |
var previewTemplate = "Updates your XTT status to: <br/>" + | |
"<b>${status}</b><br /><br />"; | |
var previewData = { |