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
test3 |
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
update_accum(_UID, #contactInfo{presence=0}, Accum) -> Accum; | |
update_accum(UID, #contactInfo{presence=Presence}, Accum) -> | |
dict:store(UID, Presence, Accum). |
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 | |
class HashChain(object): | |
"""A chain of hash values that can be traversed backwards | |
A hash chain is a sequence of the form H(s), H(H(s)), H(H(H(s))), | |
where 'H' is a one-way hash function and s is the initial seed. | |
This class generates a hash chain and allows you to traverse it | |
in reverse order (e.g., from H(H(H(s))), to H(H(s)), H(s)). | |
Construction requires O(N) time (where N is the length of the |
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_PROGRAMS = hello | |
hello_SOURCES = hello.c | |
#hello_LDADD = @LEXLIB@ |
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 <tr1/functional> | |
#include <cstdio> | |
struct FooSyncIface { | |
virtual int bar(int arg) = 0; | |
virtual int baz(int arg) = 0; | |
}; | |
struct FooAsyncIface { |
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
$ mkdir pytest | |
$ cd pytest | |
$ mkdir src | |
$ mkdir stage | |
$ mkdir src/mylib | |
$ touch src/mylib/__init__.py | |
$ echo 'import mylib' > src/myscript.py | |
$ cd src | |
$ zip mypar.zip mylib/__init__.py myscript.py | |
adding: mylib/__init__.py (stored 0%) |
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
program | |
*.so |
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
A | |
/ \ | |
/ \ | |
B C | |
/ / \ | |
D E F | |
/ | |
G | |
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 | |
set -e | |
# This script identifies the packages manually installed on your old | |
# Debian system that are not installed on your new Debian system. | |
if test "$#" -ne "2" ; then | |
echo >&2 "usage: $0 /path/to/old/var/lib/dpkg /path/to/old/var/lib/apt" | |
exit 1 | |
fi |
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
<?xml version="1.0"?> | |
<project name="test" default="run" basedir="."> | |
<property environment="env" /> | |
<path id="cpath"> | |
<pathelement path="${env.CLASSPATH}" /> | |
<pathelement location="build" /> | |
</path> | |
<target name="init" > |
OlderNewer