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
Spork.each_run do | |
require 'cucumber/rails/world' | |
require 'rr' | |
Cucumber::Rails::World.send(:include, RR::Adapters::RRMethods) | |
Before do | |
RR.reset | |
end | |
After do |
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
#!/usr/bin/perl | |
package Options; | |
use Mouse; | |
with 'MouseX::Getopt'; | |
has 'help' => ( | |
is => 'rw', | |
isa => 'Bool', | |
default => 0, |
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
diff -ruN router-anymoose/.shipit router-caf/.shipit | |
--- router-anymoose/.shipit 2010-02-23 16:13:48.000000000 +0900 | |
+++ router-caf/.shipit 2010-02-23 16:15:20.000000000 +0900 | |
@@ -1,7 +1,3 @@ | |
-steps = FindVersion, ChangeVersion, CheckChangeLog, Manifest, DistTest, Commit, Tag, MakeDist, UploadCPAN, Twitter, DistClean | |
- | |
+steps = FindVersion, ChangeVersion, CheckChangeLog, Manifest, DistTest, Commit, Tag, MakeDist, UploadCPAN, DistClean | |
git.tagpattern = %v | |
git.push_to = origin | |
- |
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
#!/usr/bin/ruby | |
require 'stringio' | |
module AB | |
class Response | |
class << self | |
def parse_string(string) | |
new.tap {|res| res.parse_string(string) } | |
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
#include <iostream> | |
#include <sstream> | |
#include <vector> | |
typedef std::vector<char> Buffer; | |
void assign(std::stringstream& stream) { | |
Buffer buffer; | |
buffer.push_back('M'); | |
buffer.push_back('A'); |
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
$ git clone http://git.chromium.org/git/chromium.git chromium-src | |
Cloning into chromium-src... | |
remote: Counting objects: 599632, done. | |
remote: Compressing objects: 100% (125184/125184), done. | |
remote: Total 599632 (delta 446304), reused 587790 (delta 435692) | |
Receiving objects: 100% (599632/599632), 1.05 GiB | 311 KiB/s, done. | |
Resolving deltas: 100% (446304/446304), done. |
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
namespace win32 { | |
// deleter traits | |
template <class T> struct handle_deleter_t { | |
typedef T handle_type; | |
}; | |
struct win32_handle_deleter : public handle_deleter_t<HANDLE> { | |
void operator()(handle_type handle) { | |
if (handle && handle != INVALID_HANDLE_VALUE) ::CloseHandle(handle); | |
}; | |
}; |
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
diff --git a/tracrpc/ticket.py b/tracrpc/ticket.py | |
index 6224276..3042718 100644 | |
--- a/tracrpc/ticket.py | |
+++ b/tracrpc/ticket.py | |
@@ -237,14 +237,13 @@ class TicketRPC(Component): | |
req.args['comment'] = comment | |
req.args['ts'] = time_changed | |
changes, problems = tm.get_ticket_changes(req, t, action) | |
- for warning in problems: | |
- add_warning(req, "Rpc ticket.update: %s" % warning) |
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
# -*- coding: utf-8 -*- | |
# file: trac-install.sh | |
# prepare | |
yum install sqlite sqlite-devel mod_wsgi | |
easy_install pysqlite Babel Genshi pytz docutils | |
# or `yum install python-sqlite2 babel python-genshi pytz python-docutils` | |
# setup | |
wget http://www.i-act.co.jp/project/products/downloads/Trac-0.12.2.ja1.zip |
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
--- testman4trac/trunk/testmanager/api.py.orig 2011-06-18 23:16:34.000000000 +0900 | |
+++ testman4trac/trunk/testmanager/api.py 2011-06-23 18:55:13.000000000 +0900 | |
@@ -85,8 +85,10 @@ | |
if row[0] == 'default': | |
self.default_outcome = row[1].lower() | |
else: | |
- color = row[0].partition('.')[0] | |
- outcome = row[0].partition('.')[2].lower() | |
+ color = row[0].split('.')[0] | |
+ outcome = '' |