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
#!/usr/bin/env python | |
def radix(arr): | |
# Finds max string length to calculate indexes to work on | |
max_len = 0 | |
for x in arr: | |
if len(x) > max_len: | |
max_len = len(x) |
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
// Yep, this is C alright ;) | |
char** dir_list_new(const char *dir, const char *ext) | |
{ | |
size_t path_len = strlen(dir); | |
size_t cur_ptr = 0; | |
size_t cur_size = 32; | |
char **dir_list = NULL; | |
#ifdef _WIN32 |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
4xBR shader | |
Created by Hyllian. | |
(License: Unknown) | |
--> | |
<shader language="GLSL"> | |
<fragment scale="4.0" filter="nearest"><![CDATA[ |
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
; Usage WaitAPUIO0 WAIT_COND | |
.macro WaitAPUIO0 | |
- | |
cmp APUIO0 | |
bne - | |
.endm | |
; Usage WaitAPUIO1 WAIT_COND | |
.macro WaitAPUIO1 | |
- |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Bicubic shader: | |
Copyright (C) 2010 Team XBMC | |
http://www.xbmc.org | |
Copyright (C) 2011 Stefanos A. | |
http://www.opentk.com |
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
Wrote 0x0 to 0x100. | |
Wrote 0x0 to 0xff. | |
Wrote 0x1 to 0xfe. | |
Read 0x2f from addr 0xfffc. | |
Read 0xd6 from addr 0xfffd. | |
====================================== | |
PC: d62f | |
Read 0x78 from addr 0xd62f. | |
Opcode: 0x78 | |
A : 0000 X : 0000 Y: 0000 |
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
Opcode table updated! Value: 7 | |
====================================== | |
PC: d630 | |
Opcode: 0x78 || sei | |
A: 0000 X: 0000 Y: 0000 DP: 0000 SP: 00fd DB: 00 PB: 00 nvMXdIzc | |
====================================== | |
====================================== | |
PC: d631 | |
Opcode: 0x18 || clc | |
A: 0000 X: 0000 Y: 0000 DP: 0000 SP: 00fd DB: 00 PB: 00 nvMXdIzc |
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
PC: d633 | |
Opcode: 0xc2 || rep | |
Old mask: 0x35, Reset flags: 0x38 | |
Opcode table updated! Value: 0 | |
A: 0000 X: 0000 Y: 0000 DP: 0000 SP: 00fd DB: 00 PB: 00 nvmxdIzC | |
====================================== | |
====================================== | |
PC: d635 | |
Opcode: 0xa2 || ldx (imm) | |
A: 0000 X: 1fff Y: 0000 DP: 0000 SP: 00fd DB: 00 PB: 00 nvmxdIzC |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<shader language="GLSL"> | |
<fragment filter="nearest" scale="1.0"><![CDATA[ // Scale="1.0", render first pass at same resolution as input. | |
#version 120 | |
#pragma optimize (on) | |
#pragma debug (off) | |
uniform sampler2D rubyTexture; | |
uniform vec2 rubyTextureSize; | |
//uniform int frame_number; |
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 ProducerConsumer | |
{ | |
public: | |
ProducerConsumer(); | |
~ProducerConsumer(); | |
void signal(); | |
void wait(); | |
private: | |
bool can_sleep; |