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
TAP version 13 | |
ok 1 - BatchRowUpdateTest::testWriterBasicFunctionality | |
ok 2 - BatchRowUpdateTest::testReaderBasicIterate | |
ok 3 - BatchRowUpdateTest::testReaderGetPrimaryKey with data set #0 ('Must return single column pk when requested', array(42), array(42, 'dvorak', 'samurai')) | |
ok 4 - BatchRowUpdateTest::testReaderGetPrimaryKey with data set #1 ('Must return multiple column pks when requested', array(42, 'samurai'), array(42, 'dvorak', 'samurai')) | |
ok 5 - BatchRowUpdateTest::testReaderSetFetchColumns with data set #0 ('Must merge primary keys into select conditions', array('foo', 'bar'), array('foo'), array('bar')) | |
ok 6 - BatchRowUpdateTest::testReaderSetFetchColumns with data set #1 ('Must not merge primary keys into the all columns selector', array('*'), array('foo'), array('*')) | |
ok 7 - BatchRowUpdateTest::testReaderSetFetchColumns with data set #2 ('Must not duplicate primary keys into column selector', array('foo', 'bar', 'baz'), array('foo', 'bar'), array('bar', 'baz')) | |
ok 8 - BatchRowUpdateTest::testRe |
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 sys | |
import time | |
monkeys = [ | |
u'\U0001F648', | |
u'\U0001F649', | |
u'\U0001F64A', | |
] | |
try: |
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
# This formula provide NodeJS v0.5.9 for Mac Homebrew | |
# | |
# Install this node-unstable.rb file in your `brew --prefix` directory | |
# Then: | |
# $ brew install node-unstable | |
# | |
# Formula was uploaded originally for v0.5.7 originally at: | |
# https://raw.github.com/bramswenson/homebrew/94c4104e50a95c111710ab7bc52cc2f7417db712/Library/Formula/node-unstable.rb | |
# | |
# Unfortunately, NodeJS 0.5.7 or 0.5.8 do not provide child_process.fork() |
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 python3 | |
import random | |
import time | |
arm = 'v^<>' | |
eye = '^Oo*' | |
body = '\r%s(%s%s)%s' | |
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 | |
# | |
# Lame script to easily clone a MediaWiki extension from Gerrit to current dir | |
# | |
# License: GPLv2 | |
# Author : Antoine "hashar" Musso | |
REMOTE_NAME="gerrit" | |
REMOTE_PATTERN="ssh://hashar@gerrit.wikimedia.org:29418/mediawiki/extensions/\$1.git" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
int main() { | |
puts( "Writing file 'ORIG_HEAD.lock'!" ); | |
FILE *file; | |
file = fopen( "ORIG_HEAD.lock", "w+" ); |
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
<project default="main"> | |
<target name="main"> | |
<script language="javascript"> <![CDATA[ | |
task = project.createTask( 'macro' ); | |
if( task.getOwningTarget() == null ) { | |
task.log( "Assigning an owner ..." ); | |
task.setOwningTarget( self.getOwningTarget() ); | |
task.log( "Task: " + task.getOwningTarget() ); | |
} |
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 | |
# You will need a file named 'gerrit-projects' containing the list of projects | |
# gerrit ls-projects > gerrit-projects | |
# The refs/meta/config file for each project is then downloaded. Slashes are | |
# replaced by dash and filename is suffixed with '.config'. | |
GITWEB="https://gerrit.wikimedia.org/r/gitweb?p=<PROJECT>.git;a=blob_plain;f=project.config;hb=refs/meta/config" | |
for project in `cat gerrit-projects`; do | |
echo "Checking out $project.." |
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
try: | |
if not args.force and ( | |
os.path.getmtime(filepath) <= | |
os.path.getmtime(zonefilepath)): | |
continue | |
except OSError: | |
# destination file not found | |
pass |
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
if not args.force: | |
# Verify whether template is fresh | |
outdated = os.path.getmtime(filepath) <= os.path.getmtime(zonefilepath) | |
if not outdated: | |
continue # skip file generation |
OlderNewer