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
/* | |
Small automated testing header. | |
Example code: | |
#include "test.h" | |
int calculate_pi_approx(){ | |
return 3; | |
} | |
int is_true(int truth){ |
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
/* | |
Small debug print header file inspired from book 'Learn C the Hard Way' | |
Usage: | |
- To use `dbg_debug()`, add -DDBG as compiler flag | |
- `dbg_info`, `dbg_warn`, `dbg_error` is for logging | |
- `dbg_test(EXPR, MESSAGE, ...)` tests EXPR, if not true, then it print MESSAGE and jump to label `error`, | |
where you can handle the failed test. | |
- `dbg_test_panic(EXPR, MESSAGE, ...)` tests EXPR, if not true, then it print MESSAGE and aborts. | |
- Example code: | |
#include "dbg.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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<project source="3.7.2" version="1.0"> | |
This file is intended to be loaded by Logisim-evolution v3.7.2(https://github.com/logisim-evolution/). | |
<lib desc="#Wiring" name="0"> | |
<tool name="Pin"> | |
<a name="appearance" val="classic"/> | |
</tool> | |
</lib> | |
<lib desc="#Gates" name="1"/> |
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | |
<project source="3.7.2" version="1.0"> | |
This file is intended to be loaded by Logisim-evolution v3.7.2(https://github.com/logisim-evolution/). | |
<lib desc="#Wiring" name="0"> | |
<tool name="Pin"> | |
<a name="appearance" val="classic"/> | |
</tool> | |
</lib> | |
<lib desc="#Gates" name="1"/> |
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
// Noise from: https://gist.github.com/patriciogonzalezvivo/670c22f3966e662d2f83 | |
#version 450 | |
in vec4 color; | |
uniform float time; | |
out vec4 FragColor; | |
vec3 permute(vec3 x) { return mod(((x*34.0)+1.0)*x, 289.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
Show hidden characters
{ | |
"class": { | |
"scope": "haxe", | |
"prefix": "rice-class", | |
"body": [ | |
"class $TM_FILENAME_BASE extends rice2d.Script{", | |
"", | |
"\tpublic function new() {", | |
"\t\tsuper();", | |
"", |
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
#..................................................................................................... | |
#......................If using python 3 than change raw_input() to just input()...................... | |
#..................................................................................................... | |
import time | |
#import time is used to get time | |
#Exchange rate is set to float because float contain decimals point while int dont have decimal point | |
exchangeRate = float(63.819) | |