Skip to content

Instantly share code, notes, and snippets.

View heerdyes's full-sized avatar

Heerdyes Mahapatro heerdyes

View GitHub Profile
@nataliefreed
nataliefreed / turtle.pde
Last active June 6, 2020 10:39
Turtle Graphics in Processing: This program shows another way to think about moving through Processing's coordinate system, inspired by Logo. Instead of placing points on a grid, you can imagine yourself as being somewhere on the grid, facing a direction. You can move forward or turn. The drawn line follows behind you.
// Turtle Graphics in Processing
// Natalie Freed, February 2013
// This program shows another way to think about moving
// through Processing's coordinate system. Instead of placing
// points on a grid, you can imagine yourself as being somewhere
// on the grid, facing a direction. You can move forward or turn.
// The drawn line follows behind you.
PVector loc; //current location
float orientation; //current orientation
@t2psyto
t2psyto / p5js_test.html
Last active December 27, 2020 18:49 — forked from jeremy886/p5js_test.html
Brython p5.js test
<html>
<head>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/p5.min.js"></script>
<script type="text/javascript"
src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython.js">
</script>
<script src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython_stdlib.js"></script>
</head>
<body onload="brython(1)">
@CodeDrome
CodeDrome / ncursesdemo_4.c
Created August 23, 2020 10:49
ncursesdemo.c part 4
//--------------------------------------------------------
// FUNCTION colouring
//--------------------------------------------------------
void colouring()
{
if(has_colors())
{
if(start_color() == OK)
{
init_pair(1, COLOR_YELLOW, COLOR_RED);