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
Connecting with backend: BotoBackend | |
Archive dir: None | |
Found 0 backup chains without signatures. | |
Found a complete backup chain with matching signature chain: | |
------------------------- | |
Chain start time: Tue May 24 14:07:46 2011 | |
Chain end time: Tue May 24 18:51:00 2011 | |
Number of contained backup sets: 4 |
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
# Knoten beginnen bei 1, Array bei 0 | |
# Matrix dieser Form: | |
# 1 2 3 4 | |
# 1 - - - - | |
# 2 0 - - - | |
# 3 1 1 - - | |
# 4 1 0 1 - | |
def calculateHorizontalInterval(n) | |
return nil if n == 1 |
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
Copyright 2011, Tim Buchwaldt. All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are | |
permitted provided that the following conditions are met: | |
1. Redistributions of source code must retain the above copyright notice, this list of | |
conditions and the following disclaimer. | |
2. Redistributions in binary form must reproduce the above copyright notice, this list | |
of conditions and the following disclaimer in the documentation and/or other materials |
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
<? | |
/* | |
* Usage: | |
* Instantiate class $c = couch::i(); | |
* You can now use $c to make calls | |
*/ | |
class couch | |
{ | |
private static $instance = null; | |
private $curl_object = null; |
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
/* | |
* Simple progressbar control script, for usage with Twitter Bootstrap | |
* | |
* | |
* Instantiate via pbar = new Progressbar("progress") | |
* first (&only) argument is the id of the container, e.g.: | |
* | |
* <div id="progress" class="progress progress-success"> | |
* <div class="bar" style="width: 21%;"></div> | |
* </div> |
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
class Range | |
def intersecting? t2 | |
if self.end <= t2.begin or self.begin >= t2.end | |
return false | |
else | |
return true | |
end | |
end | |
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
module Hookable | |
def initialize | |
@hooks = Hash.new | |
end | |
# exec all hooks for a given method name (e.g. before_load,after_load) | |
def exec_hooks(method) | |
unless @hooks[method.to_s].nil? | |
@hooks[method.to_s].each do |h| | |
instance_eval &h |
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
require 'rubygems' | |
require 'hiredis' | |
require 'redis' | |
require 'json' | |
require 'msgpack' | |
script = <<EOF | |
redis.call('get', 'a') | |
redis.call('get', 'b') | |
redis.call('get', 'c') |
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
{ | |
"results": [ | |
.... | |
], | |
"pagination":{ | |
"total":321, | |
"pages":21, | |
"current":1 | |
}, | |
"links":{ |
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
>> awacs start parkingscout | |
Starting environment parkingscout: | |
- redis [OK] | |
- elasticsearch [OK] | |
- postgresql [OK] | |
>> awacs ls | |
Running environments: | |
- parkingscout |