Skip to content

Instantly share code, notes, and snippets.

View shenningsgard's full-sized avatar
🎯
Focusing

Steve Henningsgard shenningsgard

🎯
Focusing
View GitHub Profile
@shenningsgard
shenningsgard / src_WalkerGame.html
Created November 30, 2015 04:07
A simple multithreaded Java Applet game: Four players, four threads; who will visit all of the squares first?!
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<applet code="com/example/walker/WalkerGame.class" width="400" height="400"></applet>
</body>
</html>
@shenningsgard
shenningsgard / gist:90b48d2dd4ba7ca1323f
Created April 10, 2015 00:22
My first experiment with the Paper.js library. Draw stuff, hit the space bar, and have fun!
<html>
<head>
<title>Steve Henningsgard's Projects</title>
<style type="text/css">body{background-color: #040404}</style>
<!--<script src="http://reset5.googlecode.com/hg/reset.min.css"></script>-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="../js/libraries/paper.js"></script>
<script type="text/javascript">
var rotate = false;
@shenningsgard
shenningsgard / scsuftp_app.js
Created April 10, 2015 00:22
Every St. Cloud State student has her/his own web space, which is sadly under-utilized. I decided to create a page that allowed them to log in and edit this page, right in the browser!
$(document).ready(function($, ace) {
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
editor.setOptions({
enableBasicAutocompletion: true,
@shenningsgard
shenningsgard / coderecorder2_app.js
Created April 10, 2015 00:16
My second attempt to record/playback text entry within an Ace editor and getUserMedia().
$(document).ready(function(){
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
editor.setOptions({
enableBasicAutocompletion: true,
@shenningsgard
shenningsgard / coderecorder_app.js
Created April 10, 2015 00:16
My first attempt to record/playback text entry within an Ace editor.
$(document).ready(function(){
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
editor.setOptions({
enableBasicAutocompletion: true,
@shenningsgard
shenningsgard / angrychopsticks_app.js
Created April 9, 2015 23:28
A processing language playground, using processing.js to parse and run native Processing code in the browser.
var defaultCode = "float delta = 0.075 * random(1);\n"+
"int numBoxes = 250;\n"+
"float c = 0 + random(1);\n\n"+
"void setup() {\n\n"+
"\tsize(800,400,P3D);\n\n"+
"}\n\n"+
"void update() {\n"+
"\tc += 0.01 * delta;\n"+
"}\n\n"+
"void draw() {\n\n"+
@shenningsgard
shenningsgard / coderenderer_app.js
Created April 1, 2015 19:00
The beginnings of a page that allows two users to connect and share code.
/**
* Created by shenningsgard on 4/1/15.
*/
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
@shenningsgard
shenningsgard / coderecorder_app.js
Created March 29, 2015 13:09
Simple code recorder/playback for the Ace code editor.
$(document).ready(function(){
ace.config.set('basePath', '../js/lib/ace');
var editor = ace.edit("editor");
editor.$blockScrolling = Infinity;
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/html");
editor.setOptions({
enableBasicAutocompletion: true,