Skip to content

Instantly share code, notes, and snippets.

@x13machine
x13machine / snakegame
Created January 1, 2015 18:58
not working
import curses, math, signal, time,thread
#init
screen = curses.initscr()
#curses.noecho()
curses.curs_set(0)
curses.start_color();
curses.use_default_colors()
#colors
@x13machine
x13machine / snakes
Created January 1, 2015 21:55
codenotworking
import curses, math, signal, time, thread
#init
screen = curses.initscr()
curses.noecho()
curses.curs_set(0)
curses.start_color();
curses.use_default_colors()
#colors
@x13machine
x13machine / game.py
Last active March 21, 2016 02:20
Shell Shakes - A snake Game using curses.
import curses, math, signal, time, thread, random
#init
screen = curses.initscr()
curses.noecho()
curses.curs_set(0)
curses.start_color();
curses.use_default_colors()
#colors
@x13machine
x13machine / buggy.html
Created June 14, 2015 03:56
HyperBolic Bug
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<link rel="stylesheet" type="text/css" href="example.css">
</head>
<body>
<div class="hyperbolic-canvas"></div>
@x13machine
x13machine / units.html
Created June 14, 2015 22:19
unit bug?????
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/
@x13machine
x13machine / awesome.html
Created June 15, 2015 02:47
awesome bug
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/
@x13machine
x13machine / non-triangle.html
Created June 15, 2015 21:16
only on triangles I geust
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/
@x13machine
x13machine / 0_0.html
Last active August 29, 2015 14:23
(0,0) bug
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/
@x13machine
x13machine / problem.html
Created June 19, 2015 19:39
math problems
<!DOCTYPE html>
<html>
<head>
<title>Hyperbolic Canvas Example</title>
<meta charset="utf-8"/>
<style>
/*
A hyperbolic-canvas div with a percentage-based size must have a parent with non-zero size.
Margin is removed for simplicity.
*/