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
madsy@Singularity:~/Projects/Idris$ cabal install idris | |
Resolving dependencies... | |
cabal: Could not resolve dependencies: | |
trying: idris-0.9.14.3 | |
trying: network-2.4.1.2/installed-040... | |
trying: parsec-3.1.3/installed-6c6... | |
trying: parsers-0.12.1.1 | |
rejecting: attoparsec-0.10.4.0/installed-d9f... (conflict: parsers => | |
attoparsec>=0.12.1 && <0.13) | |
rejecting: attoparsec-0.12.1.2, 0.12.1.1, 0.12.1.0 (conflict: parsec => |
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
p1+d1*t1 = p2+d2*t2 | |
t1d1 = p2+t2d2-p1 | |
t1d1 x d2 = (p2+t2d2-p1) x d2 | |
t1(d1 x d2) = (t2d2) x d2 + (p2-p1) x d2 | |
t1(d1 x d2) = t2(d2 x d2) + (p2-p1) x d2 | |
t1(d1 x d2) = t2*0 + (p2-p1) x d2 | |
t1(d1 x d2) = (p2-p1) x d2 | |
t1(d1 x d2) . (d1 x d2) = ((p2-p1) x d2) . (d1 x d2) | |
t1 = (((p2-p1) x d2) . (d1 x d2)) / |d1 x d2|² |
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
precision mediump float; | |
uniform float iGlobalTime; | |
uniform vec2 iResolution; | |
uniform sampler2D tex0; //playing area | |
uniform sampler2D tex1; //grass | |
uniform mat2 iRotation; //camera | |
uniform vec2 iTranslation; //camera position | |
void main() { | |
vec2 uv; |
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
madsy@singularity2:~/Projects2/TileRasterizer/build$ make | |
[ 9%] Building CXX object bin/CMakeFiles/demo.dir/main.cpp.o | |
In file included from /usr/include/c++/4.8/random:52:0, | |
from /usr/include/c++/4.8/bits/stl_algo.h:65, | |
from /usr/include/c++/4.8/algorithm:62, | |
from /home/madsy/Projects2/TileRasterizer/demo/main.cpp:3: | |
/usr/include/c++/4.8/bits/random.tcc: In member function ‘void std::poisson_distribution<_IntType>::param_type::_M_initialize()’: | |
/usr/include/c++/4.8/bits/random.tcc:1408:55: error: no matching function for call to ‘max(float, const double&)’ | |
_M_d = std::round(std::max(6.0, std::min(__m, __dx))); | |
^ |
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
include <iostream> | |
#include <thread> | |
#include <mutex> | |
#include <condition_variable> | |
std::mutex mtx; | |
std::mutex mtx2; | |
std::condition_variable cv; | |
std::condition_variable cv2; | |
bool threadsRunning = false; |
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
const __v2di VECMASK_00 = {0,0}; | |
const __v2di VECMASK_01 = {0,1}; | |
const __v2di VECMASK_10 = {1,0}; | |
const __v2di VECMASK_11 = {1,1}; | |
//Tile size base. Must be POT | |
const int Q = 3; | |
//Actual Tile size | |
const int q = (1<<Q); |
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
madsy@singularity2:~/Desktop$ dd if=/dev/urandom of=./testinput bs=1 count=128k | |
131072+0 records in | |
131072+0 records out | |
131072 bytes (131 kB) copied, 0,332786 s, 394 kB/s |
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
# Modules | |
/ %/: prepare scripts FORCE | |
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ | |
$(build)=$(build-dir) | |
%.ko: prepare scripts FORCE | |
$(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \ | |
$(build)=$(build-dir) $(@:.ko=.o) | |
$(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modpost |
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
make[2]: Entering directory '/home/andreas/moxa/sdlinux-moxaart/user/busybox' | |
unset CFLAGS CPPFLAGS LDFLAGS CXXFLAGS && \ | |
make -f Makefile ARCH=arm CROSS_COMPILE=arm-linux- CFLAGS="-isystem /usr/local/arm-linux/include/ " V=1 | |
make[3]: Entering directory '/home/andreas/moxa/sdlinux-moxaart/user/busybox' | |
Makefile:1269: *** mixed implicit and normal rules: deprecated syntax | |
rm -f .kernelrelease | |
echo 1.13.3 > .kernelrelease | |
make -f /home/andreas/moxa/sdlinux-moxaart/user/busybox/Makefile silentoldconfig | |
/home/andreas/moxa/sdlinux-moxaart/user/busybox/Makefile:421: *** mixed implicit and normal rules: deprecated syntax | |
/home/andreas/moxa/sdlinux-moxaart/user/busybox/Makefile:1269: *** mixed implicit and normal rules: deprecated syntax |
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
var jsRaster = jsRaster || {}; | |
jsRaster.Rasterizer = function(canvas, enableExceptions) { | |
if (!(this instanceof jsRaster.Rasterizer)) { | |
return new jsRaster.Rasterizer(canvas, enableExceptions); | |
} | |
this.canvas = canvas; | |
this.renderContext = canvas.getContext(); | |
this.framebuffer = this.renderContext.createImageData(canvas.width, canvas.height); | |
this.width = canvas.width; |