Skip to content

Instantly share code, notes, and snippets.

@robinkruyt
robinkruyt / CreatePanorama.cs
Created March 12, 2015 10:33
Panorama tools.
using UnityEngine;
using System.Collections;
public class CreatePanorama : MonoBehaviour {
public string captureName;
private float stepSize = 20;
// Use this for initialization
IEnumerator Start () {
@robinkruyt
robinkruyt / tracker.html
Created March 13, 2013 13:56
Simple Slush's pool reward tracker
<html>
<head>
<title>Slush Rewards</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
<script type="text/javascript">
var API_KEY = ""; // Your Slush's pool API Token
google.load("visualization", "1", {packages:["corechart"]});
# Simpele Binary puzzle solver die Level 1, en sommige Level 2 puzzels kan solven. (Zoals deze: http://binaire-puzzels.robinu.nl/binaire-puzzel.php?id=9 )
# Door Robin Kruijt. Op zijn mobiel. In de vakantie.
$veld = Array.new;
tmpV = Array.new;
$height = 13;
$width = $height;
# Dit is voor input, maar aangezien we lui zijn. putten we weinig in.
@robinkruyt
robinkruyt / jsgame.js
Created February 8, 2011 17:15
Whole source of my Javascript sidescroller
(function game(){
var canvas = document.getElementById("game");
gs = canvas.getContext("2d");
var collideIndex = 1;
bitSize = 5; //Size of 1 block. 4=16 5=32 6=64
sourceSize = 16;
destSize = Math.pow(2,bitSize);
tileWidth = 4;
layerSize = {x:levelWidth*destSize, y:(levelArray.length/levelWidth)*destSize};