This file contains hidden or 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
LNv4P6jo2fi1UNUyWyc8NMj4SsXUpwmWXV |
This file contains hidden or 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
#!/opt/local/bin/python2.6 | |
from __future__ import print_function | |
import optparse | |
import PyHSPlasma | |
from PyHSPlasma import * | |
def indent(text): | |
"\n".join([" %s" % (line) for line in text.splitlines()]) |
This file contains hidden or 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
def export_obj: | |
obj.export_thyself | |
obj.children.each | |
export_obj child | |
if obj.needs_lightmaps | |
lm_list.push_back(obj) | |
# more of this for other post-processing | |
def post_process |
This file contains hidden or 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
icfp2013.language> ((eval(transform-prog '(lambda (x) (shl1 (shr1 x))))) 1) | |
( )shr1 0x0000000000000001=0x0000000000000000 | |
( )shl1 0x0000000000000000=0x0000000000000000 | |
()(clojure.core/binding [icfp2013.language/*indent-level* (clojure.core/inc icfp2013.language/*indent-level*)] (clojure.core/let [the-arg__2295__auto__ (clojure.core/binding [icfp2013.language/*indent-level* (clojure.core/inc icfp2013.language/*indent-level*)] (clojure.core/let [the-arg__2290__auto__ x result__2291__auto__ (clojure.core/bit-and 9223372036854775807 (clojure.core/bit-shift-right the-arg__2290__auto__ 1))] (icfp2013.language/debug-print (clojure.core/format shr1 0x%016x=0x%016x the-arg__2290__auto__ result__2291__auto__)) result__2291__auto__)) result__2296__auto__ (clojure.core/bit-shift-left the-arg__2295__auto__ 1)] (icfp2013.language/debug-print (clojure.core/format shl1 0x%016x=0x%016x the-arg__2295__auto__ result__2296__auto__)) result__2296__auto__)) | |
()lambda [1]=0x0000000000000000 | |
0 |
This file contains hidden or 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/Sources/Plasma/Apps/plClient/external/CMakeLists.txt b/Sources/Plasma/Apps/plClient/external/CMakeLists.txt | |
index 7de0753..d3c1aaa 100644 | |
--- a/Sources/Plasma/Apps/plClient/external/CMakeLists.txt | |
+++ b/Sources/Plasma/Apps/plClient/external/CMakeLists.txt | |
@@ -6,7 +6,7 @@ set(external_SCRIPTS | |
set(external_SOURCES | |
Cursor_Base.svg | |
- Linking_Book.svg | |
+ Writers_Logo.svg |
This file contains hidden or 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
FILE * fp = fopen("woorden.txt","rb"); | |
char tempBuffer[35]; | |
while(fgets(tempBuffer,sizeof(tempBuffer),fp)!=NULL) | |
{ | |
//we found a word.Let's assume its shorter than 35 characters and we can safe some space | |
int length = strlen(tempBuffer); | |
word = malloc(length*sizeof(char)); | |
strncpy(word,tempBuffer,length); |
This file contains hidden or 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
User the_user = load_credentials_from_file(); | |
do { | |
try { | |
if (the_user.username.empty()) { | |
cin >> the_user.username | |
cin >> the_user.password | |
} | |
login(the_user) | |
} catch (LoginError) { | |
the_user.username = "" |
This file contains hidden or 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
branan@pegasus:~$ ls /usr/lib/gcc/x86_64-linux-gnu/4.4/include | |
ammintrin.h cross-stdarg.h iso646.h mm_malloc.h smmintrin.h stdfix.h wmmintrin.h | |
avxintrin.h emmintrin.h mm3dnow.h nmmintrin.h stdarg.h tmmintrin.h x86intrin.h | |
bmmintrin.h float.h mmintrin-common.h omp.h stdbool.h unwind.h xmmintrin.h | |
cpuid.h immintrin.h mmintrin.h pmmintrin.h stddef.h varargs.h |
This file contains hidden or 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
class { 'apt': | |
always_apt_update => true | |
} | |
# This is required if you use PPAs - the python-software-properties package | |
# might be installed by puppet and you need it *before* apt-get update is run | |
# | |
# If you are not using PPAs, you can use a simpler collection | |
Class['apt::update'] -> Package <| name != 'python-software-properties' |> |
This file contains hidden or 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
template <uint32_t val> | |
struct BigEndian { | |
enum { | |
value = (val & 0xFF << 24) | (val & 0xFF00 << 8) | (val & 0xFF0000 >> 8) | (val & 0xFF000000 >> 24) | |
}; | |
}; | |
struct ShaInitVector { | |
enum { | |
H0 = 0x67452301, |