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
| /* | |
| * C11 <threads.h> emulation library | |
| * | |
| * (C) Copyright yohhoy 2012. | |
| * Distributed under the Boost Software License, Version 1.0. | |
| * (See copy at http://www.boost.org/LICENSE_1_0.txt) | |
| */ | |
| #ifndef EMULATED_THREADS_H_INCLUDED_ | |
| #define EMULATED_THREADS_H_INCLUDED_ | |
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
| cd ~/Downloads | |
| wget http://support.apple.com/downloads/DL1359/en_US/JavaForMacOSX10.5Update10.dmg \ | |
| -O ~/Downloads/JavaForMacOSX10.5Update10.dmg | |
| hdiutil attach ~/Downloads/JavaForMacOSX10.5Update10.dmg | |
| pkgutil --expand /Volumes/Java\ For\ Mac\ OS\ X\ 10.5\ Update\ 10/JavaForMacOSX10.5Update10.pkg \ | |
| ~/Downloads/JavaForMacOSX10.5Update10 | |
| cd ~/Downloads/JavaForMacOSX10.5Update10/JavaForMacOSX10.5Update10.pkg/ |
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
| # set this to your Torchlight directory | |
| TORCHLIGHTDIR=$HOME/games/Torchlight | |
| hg clone http://hg.libsdl.org/SDL | |
| # check out the revision before the one that introduces the bug as advised here: http://forums.runicgames.com/viewtopic.php?f=24&t=33360&start=60#p474739 | |
| hg up 4de584a3a027 --clean | |
| # Fix X11 compilation issues with another changeset | |
| hg export 6caad66a4966 > patch | |
| hg import patch |
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
| $ clang++ -O0 test1.cpp test2.cpp -o simple; ./simple | |
| destructor 1 | |
| destructor 1 | |
| $ clang++ -O1 test1.cpp test2.cpp -o simple; ./simple | |
| destructor 1 | |
| destructor 1 | |
| $ clang++ -O2 test1.cpp test2.cpp -o simple; ./simple | |
| destructor 1 | |
| destructor 2 | |
| $ clang++ -O3 test1.cpp test2.cpp -o simple; ./simple |
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
| #!/usr/bin/env ruby | |
| def ⌨ ✉️ | |
| puts ✉️ | |
| end | |
| def ☠ ⚒ | |
| ⌨ ⚒ | |
| end |
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
| >> require 'uri' | |
| >> URI.extract('hello world test: https://helloworld.com test') | |
| => ["test:", "https://helloworld.com"] |
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
| #include <stdio.h> | |
| #include <unistd.h> | |
| int main(){const char *O_o[]=/*msz*/{ | |
| " ,------,\n" "v| /\\__/\\ \n" | |
| " |__( ^ w ^) \n" " \" \"\n", | |
| " ,------,\n" | |
| "~| /\\__/\\\n" | |
| " |___( ^ w ^) \n" | |
| " \" \"\n", |
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
| L#k>L#0 | |
| WjZj | |
| Wi>L# | |
| L#i>L# | |
| F#i>L# | |
| L#u | |
| k>L#0 | |
| Wk>L# | |
| Wi>L# | |
| 6.#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
| (puts "Hello World in Runy ...") | |
| (def (say (x) | |
| (puts "Hello World in #{x} once again ...") | |
| )) | |
| (class (Runy | |
| (def (say (x) | |
| (puts "Hello World in #{x} for the last time ...") | |
| )) |
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
| /* | |
| (Open)GL Sans Triangles. | |
| Mihail Szabolcs, Public Domain. | |
| Make: | |
| gcc notris.c -lglut -lGL -lGLU -funroll-loops -O3 -o notris | |
| Run: | |
| ./notris |