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
module test; | |
private { | |
import std.stdio; | |
import std.string : toStringz; | |
} | |
extern(C) bool surfi_init(); | |
extern(C) bool surfi_poll(); | |
extern(C) void* surfi_client_new(int width, int height); |
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
module test_013; | |
TypeInfo _V__TypeInfo_d = { 8, 23, d, false, }; | |
import defaultsymbols; | |
import object; | |
int vmain()body { | |
double[] i = [0.0, 1.0]; | |
float b = 2.0; | |
(i = __concatArrayAd(i, b)); | |
if (((((i[0] == cast(double)0) && (i[1] == cast(double)1)) && (i[2] == cast(double)2)) && (i.length == cast(ulong)3))) { |
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
xmin = 0 | |
xmax = 0 | |
zmin = 0 | |
zmax = 0 | |
for vertex, i in exports.face.vertices | |
switch i % 3 | |
when 0 | |
xmin = Math.min xmin, vertex | |
xmax = Math.max xmax, vertex | |
when 2 |
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
--stdlib-file | |
%@execdir%/rt/rt.bc | |
--stdlib-I | |
%@execdir%/rt/src | |
-l | |
gc | |
#--stdlib-file | |
#%@execdir%/../stdlib/libwatt.bc | |
#--stdlib-I | |
#%@execdir%/../stdlib/src |
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
>>> class A(object): | |
... def __add__(self, o): return "add" | |
... | |
... class B(A): | |
... def __radd__(self, o): return "radd" | |
>>> A() + B() | |
0: 'add' | |
>>> |
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
public static byte[] readBytesFromStream(DataInputStream par0DataInputStream) throws IOException | |
{ | |
short var1 = par0DataInputStream.readShort(); | |
System.out.printf("\n\nLength is: %s\n", var1); | |
if (var1 < 0) | |
{ | |
throw new IOException("Key was smaller than nothing! Weird key!"); | |
} |
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
import weechat as w | |
from collections import defaultdict | |
from itertools import chain | |
import sys | |
NAME = 'orderbuf' | |
DESC = 'Orders buffers like a boss. Orders by channel, server, prefixed channel, ' \ | |
'autojoin list and in reverse order.' |
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
private { | |
import gl3n.linalg; | |
import glamour.gl; | |
import glamour.shader; | |
import glamour.texture; | |
import glamour.sampler; | |
import glamour.vbo; | |
import glwtf.glfw; | |
import glwtf.window; |
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
// dmd -I../awesomium -L-L. -L-lawesomium-1.6.5 short.d | |
import deimos.awesomium.awesomium; | |
import std.string; | |
void main(string[] args) { | |
string URL = "http://google.com"; | |
string OUTFILE = "./result.jpg"; |
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
─[dav1d@ArchBox][~/ftbla/mcedit]╼ python2 mcedit.py master | |
/home/dav1d/ftbla/mcedit/pymclevel/materials.py:153: UserWarning: Module pymclevel was already imported from /home/dav1d/ftbla/mcedit/pymclevel/__init__.pyc, but /usr/lib/python2.7/site-packages is being added to sys.path | |
import pkg_resources | |
/home/dav1d/ftbla/mcedit/pymclevel/materials.py:153: UserWarning: Module _nbt was already imported from None, but /usr/lib/python2.7/site-packages is being added to sys.path | |
import pkg_resources | |
Running in fixed install mode. MCEdit-schematics and mcedit.ini are in your Documents folder. | |
Minecraft_Server.jar storage initialized. | |
Each server is stored in a subdirectory of /home/dav1d/.pymclevel/ServerJarStorage named with the server's version number | |
Cached servers: [] | |
Loading texture pack Default... |