A concise Publish/Subscribe utility module. It supports both free-form signal names and a stricter style where signals are declared first. You can also mix them.
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
function yielding() { | |
var stop = false, | |
stamp = (new Date()).getTime(), | |
count = 0, | |
clear; | |
function tick() { | |
if (!stop) { | |
count++; | |
clear = setImmediate(tick); |
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
'''Description of bitcoin binary protocol fragments''' | |
from construct import (Construct, ConstructError, Struct, Bytes, Array, | |
ULInt8, ULInt16, ULInt32, ULInt64) | |
class VarInt(Construct): | |
def __init__(self, name): | |
Construct.__init__(self, name) |
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
'''screenshot utilities for selenium | |
Let's you work with screenshots of specific elements as PIL images. | |
>>> el = driver.find_element_by_css_selecto('#logotype') | |
>>> img = screenshot.element(driver, el) | |
>>> ref = Image.open('reference.png') | |
>>> screenshot.compare(ref, img) | |
True | |
''' |
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 bash | |
# Generates gource video (h.264) out of multiple repositories. | |
# Pass the repositories in command line arguments. | |
# Example: | |
# <this.sh> /path/to/repo1 /path/to/repo2 | |
i=0 | |
for repo in $*; do | |
# 1. Generate a Gource custom log files for each repo. This can be facilitated by the --output-custom-log FILE option of Gource as of 0.29: | |
logfile="$(mktemp /tmp/gource.XXXXXX)" |
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 | |
static='slideshow' | |
queue='slideshow_temp' | |
uri="" | |
Zzz=5 | |
if [ -z "$UZBL_FIFO" ]; then | |
echo "$0: error: set UZBL_FIFO before running" | |
exit 2 |
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 re | |
split = re.compile(r'(%[A-Z][^%]|%[^%])').split | |
def format(s, values): | |
return ''.join([str(values[k[1:]]) if k.startswith('%') else k for | |
k in split(s)]) | |
if __name__ == '__main__': |
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
/* | |
* Copyright (C) 2006, 2007 Apple Inc. | |
* Copyright (C) 2007 Alp Toker <[email protected]> | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions | |
* are met: | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
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
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
index 1031631..d8f9b5c 100755 | |
--- a/CMakeLists.txt | |
+++ b/CMakeLists.txt | |
@@ -16,10 +16,14 @@ endif() | |
if(WIN32) | |
set(CMAKE_MODULE_PATH "$ENV{OGRE_HOME}/CMake/;${CMAKE_MODULE_PATH}") | |
+ set(DATA_DIR bin/Release/Resources) | |
+ set(RELEASE_DIR bin/Release) |
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
SWEOSWIK - Ord som rekommenderas utvidgat nyttjande i samtliga kontext | |
oortodox | |
ooficill | |
utensil | |
KIWSOEWS - Ord vars användade vänligt men bestämt undanbedes | |
fokus | |
I annat sammanhang än optik |
NewerOlder