Skip to content

Instantly share code, notes, and snippets.

Gist should be way faster now.
@mojombo
mojombo / regex_example.c
Created October 29, 2008 00:29
An example of using regex in C
#include <stdlib.h>
#include <string.h>
#include <regex.h>
#include <stdio.h>
int main() {
regex_t *preg = calloc(1, sizeof(regex_t));
int numoffsets = 5;
regmatch_t pmatch[numoffsets];
github tour
gist
---
egitd
error messages
more flexible interpolation
logging
@mojombo
mojombo / FUGPL.txt
Created September 25, 2008 19:07 — forked from schacon/FUGPL.txt
The FUGPL License
===================
Free software should be truly free. The GPL and its derivatives infringe
upon the freedoms of the licensee by forcing distribution of code with
distribution of software. This license is a protest against anti-business,
anti-freedom licenses such as the GPL.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
another file
1
2
3
1
2
3
abcdefg
is this faster now?
doesn't seem like it
I wish it was faster
I feel the need
the need for speed!
1) Failure:
test_basic(TestRubyGitAlt)
[./test/test_rubygit_alt.rb:18:in `test_basic'
/Library/Ruby/Gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `__send__'
/Library/Ruby/Gems/1.8/gems/mocha-0.5.6/lib/mocha/test_case_adapter.rb:19:in `run']:
<false> is not true.
2) Failure:
test_clone_of_clone(TestRubyGitAlt)
[./test/test_rubygit_alt.rb:27:in `test_clone_of_clone'