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
// How to access GPIO registers from C-code on the Raspberry-Pi | |
// Example program | |
// 15-January-2012 | |
// Dom and Gert | |
// | |
/* | |
$ wget http://www.open.com.au/mikem/bcm2835/bcm2835-1.8.tar.gz | |
$ tar -zxvf bcm2835-1.8.tar.gz | |
$ cd bcm2835-1.8 |
From https://en.wikipedia.org/wiki/Zebra_Puzzle
- There are five houses.
- The Englishman lives in the red house.
- The Spaniard owns the dog.
- Coffee is drunk in the green house.
- The Ukrainian drinks tea.
- The green house is immediately to the right of the ivory house.
- The Old Gold smoker owns snails.
- Kools are smoked in the yellow house.
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
(ns three.demo | |
(:require [THREE :as THREE])) | |
(def camera | |
(THREE/PerspectiveCamera. | |
75 | |
(/ 800 600) | |
1 | |
10000)) |
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
(ns maze.core | |
(:use [enchilada :only [canvas ctx value-of canvas-size]] | |
[monet.canvas :only [get-context stroke stroke-style stroke-cap begin-path close-path line-to move-to stroke-width]] | |
[monet.core :only [animation-frame]] | |
[jayq.core :only [$ document-ready data attr hide show]] | |
[maze.util :only [coord->pos]] | |
[maze.generator :only [create-maze]] | |
[maze.solver :only [solve]])) | |
(defn draw-path-segments [ctx snake start end] |
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
#!/usr/bin/perl | |
# This script is made to show graphs with git commit time made on workweek vs weekend | |
# | |
# The desription of this script and results of its usage is avaliable at: | |
# https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend | |
# | |
# usage: | |
# | |
# git log --author="Sebastian Riedel" --format="%H %ai" | perl script.pl |
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
; rewritten in Clojurescript from javascript (originally by Piotr Stosur: http://js1k.com/2013-spring/demo/1431) | |
(ns psychedelic-animation.demo | |
(:use [enchilada :only [canvas svg ctx]] | |
[jayq.core :only [show hide]] | |
[monet.core :only [animation-frame]] | |
[monet.canvas :only [fill-style fill-rect draw-image rotate translate]])) | |
(show canvas) | |
(hide svg) |
I hereby claim:
- I am rm-hull on github.
- I am rhu (https://keybase.io/rhu) on keybase.
- I have a public key ASAlyPkfDitTkB4MCdhTjMXTFIdzrBMeS1n4MyUgahQ3VQo
To claim this, I am signing this object:
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
// Pixel Spaceships | |
// David Bollinger - July 2006 | |
// http://www.davebollinger.com | |
// for Processing 0115 beta | |
// (updated for 0119 Beta) | |
/** | |
Click mouse to advance early to next pattern<br> | |
*/ |
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
;; Adapted from javascript version by Tristan Brehaut at | |
;; http://js1k.com/2013-spring/details/1362 | |
(ns flower-of-life.demo | |
(:use [monet.canvas :only [save restore begin-path end-path translate rotate | |
stroke stroke-style fill-style fill-rect move-to | |
bezier-curve-to composition-operation]] | |
[monet.core :only [animation-frame]] | |
[jayq.core :only [show]] | |
[enchilada :only [ctx canvas]])) |
NewerOlder