Skip to content

Instantly share code, notes, and snippets.

View branan's full-sized avatar
💩

Branan Riley branan

💩
View GitHub Profile
#!/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()])
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
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
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
@branan
branan / readfile
Created November 28, 2012 20:11 — forked from Lunanne/readfile
Hashing code, stupid homework
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);
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 = ""
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
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' |>
@branan
branan / gist:3416682
Created August 21, 2012 15:43
Metaprogrammed SHA-1
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,

We are pleased to announce the Tre'bivdil stained glass contest!

Submissions will be accepted starting immediately until Midnight September 30th, US Pacific time. This is approximately six weeks. E-mail your submission to contest@guildofwriters.org

Submission Requirements

Each submission must consist of two 256x256 texture images:

  • A full-color image of the stained glass
  • A greyscale image representing the reflection