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
// To compile (using VC): | |
// cl main.c /link gdi32.lib user32.lib kernel32.lib | |
#include <tchar.h> | |
#include <math.h> | |
#include <windows.h> | |
TCHAR *szWindowClass =_T("Window Class Name"); | |
#define PI 3.14159265 |
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
<html> | |
<head> | |
<title>My first processing.js sample</title> | |
<script type="text/javascript" src="processing.js"></script> | |
</head> | |
<body> | |
<h1>Sample: Dragging the ball</h1> | |
<script type="application/processing" src="test.processing"></script><canvas></canvas> | |
<br/> | |
Useless:) |
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
<html> | |
<head> | |
<title>Comparison of random and noise in processing.js</title> | |
<script type="text/javascript" src="processing.js"></script> | |
</head> | |
<body> | |
<h1>random (upper) and noise (lower)</h1> | |
<script type="application/processing" src="test.processing"></script><canvas></canvas> | |
<br/> | |
Useless:) |
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
<html> | |
<head> | |
<title>An illustration of a proof of Pythagorean theorem using Processing.js</title> | |
<script type="text/javascript" src="processing.js"></script> | |
</head> | |
<body> | |
<h1>An illustration of a proof of Pythagorean theorem using Processing.js</h1> | |
Drag the point C:<br/> | |
<script type="application/processing" src="pythagorean.processing"></script><canvas></canvas> | |
<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
/* -*- mode: java; indent-tabs-mode; nil -*- */ | |
/* | |
* Inspired by the great book "Processing: Creative Coding and Computational Art" by Ira Greenberg. | |
*/ | |
int canvasWidth = 500; | |
int canvasHeight = 500; | |
int graphWidth = canvasWidth - 40; | |
int graphHeight = 200; |
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
/* -*- mode: java; indent-tabs-mode; nil -*- */ | |
int canvasWidth = 500; | |
int canvasHeight = 500; | |
ControlPoint[] controlPoints; | |
CheckBox chkShowControlPoints; | |
Setaria setaria; | |
void setup() { |
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
/* Example generation of a PE file targeted for Windows CE/MIPS. */ | |
/* To build w/ MSVC: cl pegen.c */ | |
/* To generate a PE: pegen <arbitrary_number> <output_file_name.exe> */ | |
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
typedef uint32_t inst_t; |
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
/* Example generation of a PE file targeted for Windows CE/MIPS. (getchar() -> MessageBoxW()) */ | |
/* To build w/ MSVC: cl pegen.c */ | |
/* To generate a PE: pegen <arbitrary_number> <output_file_name.exe> */ | |
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
typedef uint32_t inst_t; |
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
/* Example generation of a PE file targeted for Windows CE/MIPS. (getchar() -> MessageBoxW() -> putchar()) */ | |
/* To build w/ MSVC: cl pegen.c */ | |
/* To generate a PE: pegen <arbitrary_number> <output_file_name.exe> */ | |
#include <windows.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
typedef uint32_t inst_t; |
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
/* -*- mode: c; coding: utf-8-dos; indent-tabs-mode: nil; c-basic-offset: 4 */ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <stddef.h> | |
#include <limits.h> | |
#include <arpa/inet.h> | |
#pragma pack(1) |
OlderNewer