/project
/public
/javascripts
/app
project_library.js
/lib
general_lib_you_made.js
/vendor
class DashboardController < ApplicationController | |
include Secured | |
def show | |
end | |
end |
# First login | |
curl -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"user":"admin","email":"","password":"admin"}' --cookie-jar ~/foo 'http://localhost:3000/login' | |
# Response is {"message":"Logged in"}. | |
### | |
# This creates a cookie jar file in ~/foo like the following: | |
# Netscape HTTP Cookie File | |
# http://curl.haxx.se/docs/http-cookies.html | |
# This file was generated by libcurl! Edit at your own risk. |
# where d is how many days you want | |
# where h is how many hours you want | |
for d in $(seq 0 1); do for h in $(seq 0 1); do \ | |
dt=$(echo `date -u -v-${d}d +%Y-%m-%d`-`printf %02d $h`);\ | |
curl --progress-bar -f --no-include -o $dt.tsv.gz -L -H "X-Papertrail-Token: YOUR HTTP API KEY" https://papertrailapp.com/api/v1/archives/$dt/download;\ | |
done done |
--- | |
app_name: foo-app-name | |
app_user: ci | |
git_location: git@github.com:foo/project.git | |
basic_auth: | |
- username: ci | |
password: ci | |
credentials: | |
aws_access_key_id: AAABBBCCCC | |
aws_secret_access_key: xyzxyzxyz |
[alias] | |
st = status | |
co = checkout | |
br = branch | |
ci = commit | |
pp = !git pull && git push |
describe("Page Behaviors", function () { | |
beforeEach(function() { | |
spyOn(window, "alert").andCallFake(function() { | |
}); | |
}); | |
describe("given a page behavior", function () { | |
beforeEach(function() { | |
BehaviorMap['.foo'] = function() { | |
alert("The Pentagon!"); |
#!/bin/bash | |
# This is only for development machines. Probably could be made a lot better. | |
sudo brew update | |
sudo chown -R pivotal /usr/local | |
# blow away default image's data directory | |
rm -rf /usr/local/var/postgres |
# heading 1 | |
## heading 2 |
##################################### | |
jasmine_fixtures_test_helper.rb - Include in lib/ | |
##################################### | |
class ActionController::TestCase | |
def self.save_fixture(fixtures, &expectations) | |
fixtures.each do |(fixture_name, selector)| | |
should "save the content of the selector #{selector} to fixture file #{fixture_name}.html" do |