Skip to content

Instantly share code, notes, and snippets.

View cdave1's full-sized avatar
💭
I may be slow to respond.

David Petrie cdave1

💭
I may be slow to respond.
View GitHub Profile
bootargs=console=ttyS0,115200 console=tty0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
aload_script=fatload mmc 0 0x43000000 script.bin;
aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
uenvcmd=run aload_script aload_kernel
@cdave1
cdave1 / build-bananapi-3.12.28.sh
Last active August 29, 2015 14:06
Experimental shell for creating an image with 3.12.28 of the kernel (image did not boot for me). REQUIRES kernel 3.12.28 from kernel.org
#!/bin/bash
rm -rf build
mkdir -p build/boot
echo "[INFO] Creating u-boot-bananapi"
if [ ! -d u-boot-bananapi ]; then
git clone https://github.com/LeMaker/u-boot-bananapi.git
elif [ -d u-boot-bananapi ]; then
( cd u-boot-bananapi && git pull )
// total number of samples at each fragment
#define NUM_SAMPLES {{ numSamples }}
#define NUM_SPIRAL_TURNS {{ numSpiralTurns }}
#define USE_ACTUAL_NORMALS {{ useActualNormals }}
#define VARIATION {{ variation }}
uniform sampler2D sGBuffer;
@cdave1
cdave1 / gist:e21160c63977ffe6f616
Created May 12, 2014 03:58
Pure fragment shader -- circle pattern
// circles by @davidppp
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;