Skip to content

Instantly share code, notes, and snippets.

Andreas Textor atextor

Block or report user

Report or block atextor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View named_args.c
#include <stdio.h>
#include <stdbool.h>
struct _named_t {
int arg1;
int arg2;
bool subtract_one;
};
int _calculate_sum(struct _named_t *args) {
View RegexSwitch.java
package regex;
import java.util.regex.Pattern;
public class RegexSwitch {
enum RegexCase {
HELLO("Hello.*"),
FOOD("x?Food$"),
NOMATCH(null);
View gist:cace4dbc5ee67ed113d2
### 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:
@atextor
atextor / gist:2781717
Created May 24, 2012
cd'able archive files test
View gist:2781717
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
You can’t perform that action at this time.