Skip to content

Instantly share code, notes, and snippets.

View atextor's full-sized avatar

Andreas Textor atextor

View GitHub Profile
### Keybase proof
I hereby claim:
* I am atextor on github.
* I am atextor (https://keybase.io/atextor) on keybase.
* I have a public key whose fingerprint is RETU RN T HIS. PGP. GET_ FING ERPR INT( );
}
To claim this, I am signing this object:
package regex;
import java.util.regex.Pattern;
public class RegexSwitch {
enum RegexCase {
HELLO("Hello.*"),
FOOD("x?Food$"),
NOMATCH(null);
@atextor
atextor / gist:2781717
Created May 24, 2012 13:59
cd'able archive files test
a_textor@vs11[~]$ cd test
a_textor@vs11[~/test]$ ls
sbt.jar
a_textor@vs11[~/test]$ cd sbt.jar
a_textor@vs11[~/test/sbt.jar]$ ls
jline/ LICENSE LICENSE_Apache LICENSE_JLine LICENSE_Scala META-INF/ module.properties NOTICE org/ sbt/ scala/ xsbt/ xsbti/
a_textor@vs11[~/test/sbt.jar]$ touch foo
a_textor@vs11[~/test/sbt.jar]$ cd ..
a_textor@vs11[~/test]$ unzip -l sbt.jar | grep foo
0 2012-05-24 15:58 foo
#include <stdio.h>
#include <stdbool.h>
struct _named_t {
int arg1;
int arg2;
bool subtract_one;
};
int _calculate_sum(struct _named_t *args) {