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
#!/bin/bash | |
GERRIT=https://www.studentrobotics.org/gerrit | |
function getgit { | |
PROJECT=$1 | |
URL=$GERRIT/comp/$PROJECT | |
PATCH=$2 | |
git clone $URL $PROJECT | |
cd $PROJECT | |
git fetch $URL $PATCH |
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
from xmlrpc.client import ServerProxy as TracAPI | |
from xmlrpc.client import Fault as TracFault | |
from urllib.parse import quote | |
from getpass import getpass | |
from pathlib import Path | |
import sys | |
import time | |
username = input('SR Username: ') | |
password = getpass('SR Password: ') |
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
7 SpawningPool | |
10 Extractor | |
10 Overlord | |
10 Zergling | |
11 Queen | |
13 +1 Drone on gas | |
16 +1 Drone on gas | |
16 +1 Drone on gas | |
18 EvolutionChamber | |
18 Overlord |
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
from __future__ import print_function, division | |
import argparse | |
from datetime import timedelta | |
from math import ceil, floor | |
def parse_time(x): | |
hours, minutes = x.split(':') | |
return timedelta(hours=int(hours), minutes=int(minutes)) | |
parser = argparse.ArgumentParser(description='Calculate statistics about matches for an SR competition') |
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
String found where operator expected at equine.pl line 1, near "near "near "" | |
(Do you need to predeclare near?) | |
Bareword found where operator expected at equine.pl line 1, near ""near "near" | |
(Missing operator before near?) | |
String found where operator expected at equine.pl line 1, near "near """ | |
(Do you need to predeclare near?) | |
Use of ?PATTERN? without explicit operator is deprecated at equine.pl line 2. | |
Semicolon seems to be missing at equine.pl line 4. | |
String found where operator expected at equine.pl line 5, near "near "near "" | |
(Do you need to predeclare near?) |
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
awk: cmd. line:1: equine.awk | |
awk: cmd. line:1: ^ syntax error |
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
from functools import wraps | |
from collections import namedtuple | |
from collections.abc import MutableMapping | |
import string | |
import operator | |
import sys | |
import numbers | |
class Parser(object): | |
__slots__ = ('parse',) |
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
alistairlynn$ clang -pipe -### -emit-llvm -c moof.c | |
clang version 1.0 (http://llvm.org/svn/llvm-project/cfe/trunk 68401) | |
Target: powerpc-apple-darwin9 | |
clang: warning: not using the clang compiler for the 'ppc' architecture | |
"/usr/bin/gcc" "-pipe" "-emit-llvm" "-S" "-arch" "ppc" "-o" "moof.o" "-x" "c" "moof.c" |
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> | |
#import <objc/objc.h> | |
#import <dlfcn.h> | |
const char *class_getImageName(Class cls) | |
{ | |
int ok; | |
Dl_info info; | |
if (!cls) return NULL; |
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
<?php | |
function apply_transform ( $source, $transform, $params ) | |
{ | |
$tokens = token_get_all($source); | |
$newContent = ''; | |
foreach ($tokens as $token) | |
{ | |
$newTok = $transform($token, $params); | |
if (is_string($newTok)) |