Skip to content

Instantly share code, notes, and snippets.

View aurelianonava's full-sized avatar

Azini aurelianonava

View GitHub Profile
@aurelianonava
aurelianonava / python-basics-dot
Last active August 29, 2015 14:05
Using dot() in python
import turtle
t = turtle.Pen()
screen = t.getscreen()
# the # pound symbol is used to insert single-line comments
# draws a crcular dot at center of stage, (0,0)
t.dot()
@aurelianonava
aurelianonava / py-hideturtle
Last active August 29, 2015 14:05
Hide turtle using hideturtle() method.
import turtle
t = turtle.Pen()
screen = t.getscreen()
#Hide turtle
t.hideturtle()
# dot() method draws a circular dot at defaul location (0, 0), which is at center of screen.
t.dot()
@aurelianonava
aurelianonava / tg-01
Created August 25, 2014 19:03
Turtle Graphics -- basic moves
import turtle
t = turtle.Pen()
screen = t.getscreen()
#Hide turtle
#t.hideturtle()
# the # pound symbol is used to insert single-line comments
#dot() method
@aurelianonava
aurelianonava / tg-left-02
Created September 2, 2014 21:29
Turn turtle left 90 degrees.
import turtle
t = turtle.Pen()
screen = t.getscreen()
#Hide turtle disabled
#t.hideturtle()
# the # pound symbol is used to insert single-line comments
# draws at center of stage
@aurelianonava
aurelianonava / js-01
Last active August 29, 2015 14:06
JavaScript inside a web page
<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
</body>
</html>
@aurelianonava
aurelianonava / pjs-line-01
Last active August 29, 2015 14:06
Processing.js Basics
// draw a line from (100, 50) to (300, 175);
size(400, 400);
line(100, 50, 300, 175);
// draw a thicker, green line from (350, 200) to (100, 310);
stroke(0, 173, 0);
strokeWeight(4);
line(350, 200, 100, 310);
//http://www.khanacademy.org/cs/linex1-y1-x2-y2/827916099
@aurelianonava
aurelianonava / pjs-rect-01.pde
Last active August 29, 2015 14:06
PJS -- rect()
//stage dimensions
size(400, 400)
// draw a rectangle at (100, 50) with width 200 and height 100
rect(100, 150, 200, 100);
// draw a rounded rectangle at (150, 300) with width 100 and height 50
rect(150, 300, 100, 50, 30);
@aurelianonava
aurelianonava / fb-json-data-01
Created February 17, 2015 15:30
Lbd-app-ajs-RVL
{
"meetings": {
"-JWT5y43YFy1mGirVVS2": {
"date": 1410328158691,
"name": "Tech Deland Oct 2014"
},
"-JWT65QvjwD4TSFjDx4V": {
"date": 1410328192928,
"name": "Collide Halifax 2014"
},
@aurelianonava
aurelianonava / index.html
Last active August 29, 2015 14:17
Defining Functions With Parameters
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
</head>
<body>
This is a simple example.
<script type="text/javascript">
@aurelianonava
aurelianonava / 0_reuse_code.js
Last active August 29, 2015 14:17
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console