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/sh | |
NUM=$1 | |
PORT=$2 | |
MYSQL_HOST=${MYSQL_HOST:-192.168.2.1} | |
DIR=/home/official-infclass/teeworlds-infclass | |
FNCFG=$DIR/config/tw06-infclass$NUM.cfg | |
FNGDB=$DIR/config/tw06-infclass$NUM.gdb | |
FNLOG=$DIR/logs/tw06-infclass$NUM-$(date +"%y-%m-%d-%T").txt | |
PARAM="-f $FNCFG" |
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 bisect | |
import operator | |
import unittest | |
class history: | |
"""Limited-length sorted list.""" | |
def __init__(self, maxlen): | |
self._maxlen = maxlen | |
self._list = [] | |
def __repr__(self): |
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
# -*- coding: utf-8 -*- | |
# | |
# Copyright (c) 2009 by xt <xt@bash.no> | |
# Copyright (c) 2013 by Valentin Lorentz | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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 | |
from __future__ import with_statement | |
import pbs | |
import time | |
import glob | |
import requests | |
ROOT = '/home/compiler/Limnoria' |
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
Générateur de virelangue |
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 | |
# -*- coding: utf8 -*- | |
# Copyright (c) 2012, Valentin Lorentz | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, | |
# distribute, sublicense, and/or sell copies of the Software, and to |
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 collections, sys, types | |
weakref = None | |
generic_hash = id | |
# Possible additions: | |
# - Add callbacks to CallableReference | |
# - Reimplement RefValueList |
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 | |
# Set this to False if the animation is really too slow or if | |
# your terminal do not support background colors. | |
ENABLE_BACKGROUND = True | |
import os | |
import sys | |
import time | |
import signal |
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
ProgVal@main tmp $ git clone git://github.com/ProgVal/Limnoria.gitCloning into Limnoria... | |
remote: Counting objects: 38576, done. | |
remote: Compressing objects: 100% (8970/8970), done. | |
remote: Total 38576 (delta 29455), reused 38576 (delta 29455) | |
Receiving objects: 100% (38576/38576), 6.51 MiB | 3.51 MiB/s, done. | |
Resolving deltas: 100% (29455/29455), done. | |
ProgVal@main tmp $ cd Limnoria/ | |
ProgVal@main Limnoria $ ls | |
ACKS docs LICENSE plugins RELNOTES scripts src | |
ChangeLog INSTALL locale README sandbox setup.py test |
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
get: ('global', 'default', 'foo') | |
None | |
get: ('global', 'default', 'foo') | |
None | |
set: ('global', 'default', 'foo', 'bar') | |
[('global', 'default', 'foo', 'bar', 0)] | |
get: ('global', 'default', 'foo') | |
None | |
Variable does not exist. |