Skip to content

Instantly share code, notes, and snippets.

@rgngl
rgngl / tizenrecover.java
Created December 9, 2013 07:09
Recovery utility for Tizen certificate passwords
// Small utility to recover forgotten Tizen certificate password.
// If you still have the Eclipse IDE remembering the password, you
// can find it in encrypted form in a file:
// <WORKSPACE>/.metadata/.plugins/org.tizen.common.sign/profiles.xml
// Then simply paste the password from that file to this utility as
// a command line parameter.
// Code is mostly copied from Tizen IDE source code.
package fi.ustun.tizendecipher;
@rgngl
rgngl / bfinterp.py
Created October 16, 2013 13:44
Brainfuck interpreter in Python
#Wrote this to entertain myself, on a slow day at work.
#Üstün Ergenoglu
import sys
class Instructions:
SUBP = 0
INCP = 1
DECP = 2
INCV = 3
@rgngl
rgngl / RocketInterfaces.cpp
Created June 16, 2013 21:54
libRocket and GamePlay3D integration
//
// RocketInterfaces.cpp
// rocketgp3dtest
//
// Created by Ustun Ergenoglu on 6/13/13.
//
//
#include "RocketInterfaces.h"
#include <string.h>
@rgngl
rgngl / random.glsl
Created May 29, 2013 12:15
glsl random
float rand(vec3 co){
return 0.9+0.1*fract(sin(co.z+dot(co.xy, vec2(12.9898,78.233))) * 43758.5453);
}
@rgngl
rgngl / fog.frag
Created May 20, 2013 13:40
fog shader
uniform float u_fogMaxDist;
uniform float u_fogMinDist;
uniform vec4 u_fogColor;
varying vec4 v_eyePos;
float computeLinearFogFactor()
{
float factor;
// XOR'd carpets
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
float noise(vec2 p, float s)
{
// warping hexagons, WIP. @psonice_cw
// I'm sure there's a less fugly way of making a hexagonal grid, but hey :)
// Maybe - Try this...
// Simplify!
#ifdef GL_ES
precision mediump float;
#endif
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {
#ifdef GL_ES
precision mediump float;
#endif
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
void main( void ) {