Skip to content

Instantly share code, notes, and snippets.

View avdg's full-sized avatar

Anthony Van de Gejuchte avdg

View GitHub Profile
<?php
// Example code
abstract class PPI_Array_Rename {
/*
spl array binder methods which uses the translator method
*/
/* @returns string */
# Forum rank table
# Format:
# Player name <tab> Player id <tab> Forum link
#
# Script:
# - Want:
# <link aichallenge>final rank</link> <link forum>name</link forum>
# Page 1
run: function() {
//this.trySomethingALittleBitSmarter();
this.tryToFillStomach();
},
@avdg
avdg / playgame.sh
Created November 30, 2011 15:56
Path bug (check paths in replay.0.html)
#!/usr/bin/env sh
../../aichallenge/aichallenge/ants/playgame.py --player_seed 42 --end_wait=0.25 --log_dir game_logs --turns 1000 --map_file ../../aichallenge/aichallenge/ants/maps/maze/maze_04p_01.map "./MyBot" "python ../../aichallenge/aichallenge/ants/dist/sample_bots/python/LeftyBot.py" "python ../../aichallenge/aichallenge/ants/dist/sample_bots/python/HunterBot.py" "python ../../aichallenge/aichallenge/ants/dist/sample_bots/python/GreedyBot.py" -IOE
There were 2 failures:
1) Phergie_Plugin_MessageTest::testMessages with data set #6 ('foo bar', 'foo bar', true, NULL)
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-foo bar
+
Serve static content from a cookieless domain (17)
3.70KB of cookies were sent with the following static resources. Serve these static resources from a domain that does not set cookies:
css.php
bg-body-bg.png
bg-header-bg.png
bg-header-shadow.png
bg-header-page.png
icons-logo.png
github.png
ppi.png
phpunit .
PHPUnit 3.5.14 by Sebastian Bergmann.
................................................................. 65 / 72 ( 90%)
.......
Time: 3 seconds, Memory: 9.75Mb
OK (72 tests, 157 assertions)
@avdg
avdg / .gitconfig
Created July 16, 2011 23:34
Git configuration file configured to have a global ignore file
[core]
excludesfile = /path/to/ignoreFile/.gitignore_global
@avdg
avdg / gist:1078587
Created July 12, 2011 18:16
Phergie commits until e37bac2
279 elazar
74 Matthew Turland
47 Anthony Van de Gejuchte
31 dotEvan
29 James Logsdon
21 Evan Fribourg
17 Sean Coates
12 Dossy Shiobara
10 Graham Christensen
10 Nom4d3
@avdg
avdg / gist:1012957
Created June 7, 2011 19:28
Git config file
[core]
excludesfile = /path/to/ignoreFile/.gitignore_global
[color]
ui = auto
[alias]
br = branch
co = checkout
df = diff
lg = log -p
lgp = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative