Skip to content

Instantly share code, notes, and snippets.

View certik's full-sized avatar

Ondřej Čertík certik

View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
int * bill2(int n) {
int * a = malloc(sizeof(int)*n);
int i;
for (i = 0; i < n; i++)
a[i] = i;
return a;
}
@certik
certik / gist:1220015
Created September 15, 2011 18:13
pages
37-46, 234-237
@certik
certik / gist:1224558
Created September 18, 2011 01:12
GotoBLAS2 error messages
gcc -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER=4 -DASMNAME=sgemm_kernel -DASMFNAME=sgemm_kernel_ -DNAME=sgemm_kernel_ -DCNAME=sgemm_kernel -DCHAR_NAME=\"sgemm_kernel_\" -DCHAR_CNAME=\"sgemm_kernel\" -I.. -UDOUBLE -UCOMPLEX -c -UDOUBLE -UCOMPLEX ../kernel/x86_64/gemm_kernel_8x4_sse3.S -o sgemm_kernel.o
gcc -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER=4 -DASMNAME=sgemm_incopy -DASMFNAME=sgemm_incopy_ -DNAME=sgemm_incopy_ -DCNAME=sgemm_incopy -DCHAR_NAME=\"sgemm_incopy_\" -DCHAR_CNAME=\"sgemm_incopy\" -I.. -UDOUBLE -UCOMPLEX -c -UDOUBLE -UCOMPLEX ../kernel/x86_64/../generic/gemm_ncopy_8.c -o sgemm_incopy.o
gcc -O2 -DEXPRECISION -m128bit-long-double -Wall -m64 -DF_INTERFACE_GFORT -fPIC -DSMP_SERVER -DMAX_CPU_NUMBER=4 -DASMNAME=sgemm_itcopy -DASMFNAME=sgemm_itcopy_ -DNAME=sgemm_itcopy_ -DCNAME=sgemm_itcopy -DCHAR_NAME=\"sgemm_itcopy_\" -DCHAR_CNAME=\"sgemm_itcopy\" -I.. -UDOUBLE -UCOMPL
$ ./run_tests.py
Looking for "js" and "py-builtins" [2]: .. [OK]
tests/test_compile_js.py [1]: . [OK]
tests/test_builtins.js [1]: . [OK]
tests/algorithms/sqrt.py [4]: .... [OK]
tests/algorithms/triangulation.py [4]: .... [OK]
tests/basic/assign_slice.py [4]: .... [OK]
tests/basic/augassign.py [4]: .... [OK]
tests/basic/augassign2.py [4]: .... [OK]
tests/basic/binaryops.py [4]: .... [OK]
@certik
certik / gist:1396880
Created November 27, 2011 03:11
statistics output
$ python main.py
Percent by priority-open:
Critical: [ ] 0.1%
High: [#### ] 7.2%
Medium: [################################################### ] 90.8%
Low: [# ] 1.8%
Percent by priority-closed:
Critical: [# ] 2.9%
High: [######### ] 16.5%
@certik
certik / text.rst
Created December 12, 2011 20:22
Full text: President Obama's remarks in Kansas

Remarks of President Barack Obama - As Prepared for Delivery Tuesday, December 6, 2011 Osawatomie, Kansas As Prepared for Delivery -- Good afternoon. I want to start by thanking a few of the folks who've joined us today. We've got the mayor of Osawatomie, Phil Dudley; your superintendent, Gary French; the principal of Osawatomie High, Doug Chisam. And I've brought your former governor, who's now doing an outstanding job as our Secretary of Health and Human Services, Kathleen Sebelius. It is great to be back in the state of Kansas. As many of you know, I've got roots here. I'm sure you're all familiar with the Obamas of Osawatomie. Actually, I like to say that I got my name from my father, but I got my accent -- and my values -- from my mother. She was born in Wichita. Her mother grew up in Augusta. And her father was from El Dorado. So my Kansas roots run deep. My grandparents served during World War II -- he as a soldier in Patton's Army, she as a worker on a bomber assembly line. Together, they shared the o

@certik
certik / gist:1470743
Created December 13, 2011 05:25
sphinx log
# Sphinx version: 1.1
# Python version: 2.6.4
# Docutils version: 0.8.1 release
# Jinja2 version: 2.5.5
Traceback (most recent call last):
File "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/Sphinx-1.1-py2.6.egg/sphinx/cmdline.py", line 189, in main
app.build(force_all, filenames)
File "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/Sphinx-1.1-py2.6.egg/sphinx/application.py", line 204, in build
self.builder.build_update()
File "/home/ondrej/repos/qsnake/local/lib/python2.6/site-packages/Sphinx-1.1-py2.6.egg/sphinx/builders/__init__.py", line 196, in build_update
can_open called: res.c
can_open called: Python.h
can_open called: /home/ondrej/repos/qsnake/local/include/python2.6/Python.h
can_open called: /home/ondrej/repos/qsnake/local/include/python2.6/patchlevel.h
can_open called: /home/ondrej/repos/qsnake/local/include/python2.6/pyconfig.h
can_open called: /home/ondrej/repos/qsnake/local/include/python2.6/pymacconfig.h
can_open called: /home/ondrej/repos/qsnake/local/include/python2.6/limits.h
can_open called: /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include/limits.h
can_open called: /usr/local/include/limits.h
can_open called: /usr/lib/gcc/x86_64-linux-gnu/4.6.1/include-fixed/limits.h
/*
preload hack to catch all filename ops
tridge@samba.org July 2006
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <fcntl.h>
#include <pwd.h>
#include <sys/types.h>