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> | |
void foo(void) { | |
static int barf=10; | |
barf++; | |
} | |
int main() | |
{ | |
printf("test: %d\n", (int)foo()); |
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
| allDeps toDigraph | | |
"Avoid artifacts" | |
MCWorkingCopy flushObsoletePackageInfos. | |
PackageOrganizer default flushObsoletePackages: [:p | | |
p classes size = 0 and: [p methods size = 0]]. | |
Smalltalk garbageCollect. | |
"" | |
toDigraph := [:hash | | s | | |
s := WriteStream on: String new. | |
s nextPutAll: 'digraph {'; lf. |
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 | |
pushd /usr/local/lib | |
for package in $( | |
for i in *.dylib; do | |
if otool -L $i | grep -q gettext/0.18.1.1; then | |
# get pacakge out ouf library | |
echo $(basename $(dirname $(dirname $(dirname $(readlink $i))))); | |
fi; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
--- binarytrees-generic.rkt 2015-10-28 11:06:42.000000000 +0100 | |
+++ binarytrees-generic-boolean.rkt 2015-10-28 11:51:04.000000000 +0100 | |
@@ -14,15 +14,15 @@ | |
(define-syntax leaf? (make-rename-transformer #'*leaf?)) | |
(define-syntax node (make-rename-transformer #'*node)) | |
(define-syntax node? (make-rename-transformer #'*node?)) | |
-(define-syntax-rule (leaf-val l) (*leaf-val l)) | |
+(define-syntax-rule (leaf-val l) (if (*leaf-val l) 0 1)) | |
(define-syntax-rule (node-left n) (*node-left n)) | |
(define-syntax-rule (node-right n) (*node-right n)) |
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
[14:41:04]ζtobias@Claudio ± structs | |
~/dev/pypy/pycket % ./pycket-c binarytrees-generic-boolean.rkt 18 | |
stretch tree of depth 19 check: 1 | |
524288 trees of depth 4 check: 262144 | |
131072 trees of depth 6 check: 65536 | |
32768 trees of depth 8 check: 16384 | |
8192 trees of depth 10 check: 4096 | |
2048 trees of depth 12 check: 1024 | |
512 trees of depth 14 check: 256 | |
128 trees of depth 16 check: 64 |
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
from pypy.rlib.parsing.tree import Node as PyNode | |
from pypy.rlib.parsing.lexer import SourcePos | |
class Node(PyNode): | |
def __init__(self, source_position=None): | |
self.source_position = source_position or SourcePos(-1,-1,-1) | |
def __eq__(self, other): 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
struct {int foo;} snarfu; | |
/* | |
*/ | |
#define WRAP(x) x | |
/* | |
*/ | |
snarfu; | |
snarfu(); | |
WRAP(snarfu); | |
WRAP(snarfu()); |
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 | |
# this was done a long time ago | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
brew install pypy | |
# use system python for virtualenv | |
sudo easy_install pip | |
# probably some updates here? |
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
Script started on Mon Aug 10 22:05:34 2015 | |
(B[m]0;pompompom/]7;file:///tmp/pompompom[1m[7m%[27m[1m[0m | |
[0m[27m[24m[J(B[m[38;5;196m(B[m[38;5;33m[22:05:35][38;5;165mζ(B[m[38;5;28mtobias[30m@[1m[38;5;28mclaudio [38;5;51m(B[m | |
[1m[38;5;255m/tmp/pompompom(B[m [1m[38;5;28m%(B[m [Kvvirtualenv -p pypy | |
Running virtualenv with interpreter /usr/local/bin/pypy | |
You must provide a DEST_DIR | |
Usage: virtualenv.py [OPTIONS] DEST_DIR |