This file contains 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
#!/usr/bin/env python | |
import requests | |
import sys | |
from collections import namedtuple | |
Bucket = namedtuple('Bucket', ('name', 'type', 'ddocs_uri')) | |
View = namedtuple('View', ('name', 'map', 'reduce')) | |
DDoc = namedtuple('DDoc', ('name', 'views')) |
This file contains 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
a = "$GOPATH" | |
b = "$LANG" | |
c = "$NO_SUCH_ENVAR" |
This file contains 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
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) | |
{ | |
@autoreleasepool { | |
NSDictionary *dict = @{ | |
@"Doody" : @"Doody", | |
}; | |
@try { | |
[ dict valueForKeyPath:@"Doody.Doody.Doody" ]; |
This file contains 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
#!/usr/bin/python | |
import commands | |
import sys | |
import fileinput | |
def get_task_name(branch): | |
task = branch.rsplit("/",1)[-1] | |
task = task.split("_")[0] | |
if task.count('-') > 1: |