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: Manage Projects | |
In order to manage projects | |
As a developer | |
I want to create and manage projects | |
Scenario: Projects List | |
Given I have projects titled blog-app, todo-app | |
When I go to the list of projects | |
Then I should see "my blog-app" | |
And I should see "my todo-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
<?php | |
header("Content-Type: application/json"); | |
echo json_encode(array("time"=>time())); | |
?> |
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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'streambot' | |
@blacklist = ['LeipzigerBimmel','lvb_rt','rt_leipzig','oepnv_leipzig','rt_fail'] | |
@keywords = ["#LVB","#lvb"] | |
@auth = {:username=>'user',:password=>'password'} | |
bot = StreamBot::Tracker.new(@auth, @blacklist, @keywords) | |
bot.start |
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
#!/usr/bin/env ruby | |
require 'streambot' | |
@params = {"auth_type" => "oauth", | |
"oauth" => {"key" => "consumer key", "secret" => "consumer secret"}, | |
"http" => {"username" => "username", "password" => "password"} | |
} | |
@blacklist = ['mac_rt','apple_rt'] | |
bot = StreamBot::Tracker.new(@params, @blacklist, 'apple','ipad','iphone os 4','steve jobs') | |
bot.start |
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
<%= flash_messages %> |
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 'test_helper' | |
require 'benchmark' | |
class ArticlesTest < ActiveSupport::TestCase | |
# Replace this with your real tests. | |
test "benchmark" do | |
Benchmark.bm do |b| | |
# create an article with paper_trail | |
b.report("create") do | |
Article.paper_trail_on |
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
function the_category_filter($thelist,$separator=' ') { | |
$childrens = get_categories("child_of=".the_print_category_id()); | |
$exclude=array(); | |
$exclude[] = get_category(the_print_category_id())->name; | |
$exclude[] = get_category(the_special_category_id())->name; | |
foreach($childrens as $category){ | |
$exclude[] = $category->name; | |
} | |
$cats = explode($separator,$thelist); |
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
# show the actual git branch in command line prompt | |
export PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w $(__git_ps1 "[%s]") $ ' |
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
alias /sync "/media/disk/sync" | |
<Directory "/media/disk/sync"> | |
Dav On | |
Allow from all | |
</Directory> | |
# | |
# doesn't work with iWorks for iPad | |
# shame on apple | |
# |
OlderNewer