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
Butts.send :butt=>'fart' | |
100.times {puts <<EOF | |
___ ___ ___ ___ ___ ___ ___ | |
/ / / / | / / / / / / / / / / | |
/__/ /__/ |/ / /__ /__/ / / / /__ /__ | |
/ | / \ / / / / \ / / / / / | |
/__/ / \ / /___ /___ / \ /__/ /__ /___ ___/ | |
EOF | |
} | |
puts <<EOF |
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 'spec_helper' | |
describe GroupsController do | |
include SessionTestHelper | |
describe "GET 'show'" do | |
it "should load the group from the database" do | |
@the_group = Factory(:group) | |
Group.stub(:find_active_by_unique_name).with("london-developers"). | |
and_return(@the_group) |
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 <stdlib.h> | |
#define BLOCKS 8192 | |
#define BLOCKSIZE 8192 | |
int main() { | |
int* blocks[BLOCKS]; | |
int i; | |
for (i=0;i<BLOCKS;i++) { | |
blocks[i] = (int*)calloc(BLOCKSIZE,sizeof(int)); |
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
bryce@bryce-imac ~> cat /mach_kernel | openssl sha1 | |
60b55b9c3daca7018db613e22563b2177906729b | |
bryce@bryce-imac ~> openssl sha1 /mach_kernel | |
SHA1(/mach_kernel)= 60b55b9c3daca7018db613e22563b2177906729b | |
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 'openssl' | |
class String | |
def to_bin | |
[self].pack('H*') | |
end | |
def to_hex | |
unpack('H*').first | |
end | |
end | |
vectors = [ |
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
#python or ruby - turns out it doesn't matter | |
inc = random(0,2*pi) | |
az = random(0,2*pi) | |
dist = random(5,80) | |
cx = dist * cos(az) | |
cy = dist * sin(az) | |
sh = (cy/80)*0.6 | |
x = 350 + (250+cx)*cos(inc) | |
y = 350 + (250+cx)*sin(inc) | |
z = cy |
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
(in /Users/bryce/Documents/hive/vendor/grit) | |
Loaded suite -e | |
Started | |
............. | |
..............................................................................................................FFE........... | |
Finished in 1.550918 seconds. | |
1) Failure: | |
test_basic(TestRubyGitAlt) | |
[./test/test_rubygit_alt.rb:18:in `test_basic' |

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
* When an object is corrupt in a pack, the object became unusable even | |
when the same object is available in a loose form, We now try harder to | |
fall back to these redundant objects when able. In particular, "git | |
repack -a -f" can be used to fix such a corruption as long as necessary | |
objects are available. |
OlderNewer