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
/** | |
* librgba.p/inc | |
* | |
* @file A file which contains some functions for managing RGBA colours. | |
* @author blewert <http://forum.sa-mp.com/member.php?u=19757> | |
* | |
*/ | |
//Pseudo-OO | |
#define LIB_NAME librgba. |
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
breed [ trees tree ] | |
trees-own [ age ] | |
to setup | |
clear-all | |
ask patches [ set pcolor brown ] | |
set-default-shape trees "tree" | |
if behaviour = "naive" [ naive-behaviour ] |
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
public void drawLine(GL gl, int x1, int y1, int x2, int y2) | |
{ | |
//y = mx + c | |
//m = (change in y)/(change in x) | |
double dy = (y2 - y1); | |
double dx = (x2 - x1); | |
//Stop divide by zero | |
if(dx == 0) |
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
//package test; | |
import java.io.File; | |
import javax.media.opengl.*; | |
import javax.media.opengl.glu.*; | |
/** | |
* For our purposes only two of the GLEventListeners matter. Those would be | |
* init() and display(). | |
*/ | |
public class SimpleEventListener implements GLEventListener |
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
>>> 99999999999999999999999999999999999999999999999999999999999999999999 * 5 | |
499999999999999999999999999999999999999999999999999999999999999999995L | |
>>> 99999999999999999999999999999999999999999999999999999999999999999999 * 99999 | |
99999999999999999999999999999999999999999999999999 | |
99999999999999999999999999999999999999999999999999999989999999999999000000000000 | |
0000000000000000000000000000000000000000001L | |
>>> 99999999999999999999999999999999999999999999999999999999999999999999 * 99999 | |
99999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
99999999999999999999999999999999999999999999999999999999999999999999999999999999 | |
99999999999999 |
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
var p = { | |
x: 186, | |
y: 120, | |
w: 6 | |
}; | |
var triad = { | |
first: { | |
x: 292, |
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
% report.tex | |
% -- | |
% Mud Dog Creative (Software Hut, Group #1) | |
% See revision history for authors | |
% | |
% We want this to be an article | |
\documentclass[pdftex,a4paper,10pt]{article} | |
% Outline the packages to be used |
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
for i in range(0, 9999): | |
for j in range(0, 2): | |
print(" " * int(sin(((10*j) - i)*0.07) * 50 + 80)) + "#"; | |
print(" " * int(cos(((10*j) - i)*0.07) * 50 + 80)) + "#"; |
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
var triad = { | |
first : { | |
x : 100, | |
y : 225 | |
}, | |
second : { | |
x : 150, | |
y : 140 | |
}, | |
third : { |
OlderNewer