Skip to content

Instantly share code, notes, and snippets.

#___Resources
#_Game Maker Programming - Wikibooks, open books for an open world - https://en.wikibooks.org/
https://en.wikibooks.org/wiki/Game_Maker_Programming
#_Game Maker Programming/Intro - Wikibooks, open books for an open world - https://en.wikibooks.org/
https://en.wikibooks.org/wiki/Game_Maker_Programming/Intro
#_Game Maker Programming/Creating a room - Wikibooks, open books for an open world - https://en.wikibooks.org/
https://en.wikibooks.org/wiki/Game_Maker_Programming/Creating_a_room
@erspark2002
erspark2002 / quiz_review_bookmarklet.html
Created June 8, 2018 00:02
Federation University Quiz Review
<html>
<body>
<a href="javascript:(function(e,s){e.src=s;e.onload=function(){jQuery.noConflict();console.log('jQuery injected'); jQuery('.qn_buttons').hide(); jQuery('.answer :checked').each(function(){jQuery(this).prop('checked',''); }); jQuery('.feedback').each(function(){jQuery(this).css('position','absolute'); }); function showAnswer(){jQuery('.answer .correct img,.answer .incorrect img, .feedback').show(); jQuery('.answer .correct, .answer .incorrect').each(function(){jQuery(this).css('background-color', 'yellow'); }); }; function hideAnswer(){jQuery('.answer .correct img,.answer .incorrect img, .feedback').hide(); jQuery('.answer .correct, .answer .incorrect').each(function(){jQuery(this).css('background-color', 'inherit'); }); }; jQuery('.answer').on('mouseover', function(){showAnswer(); }); jQuery('.answer').on('mouseout', function(){hideAnswer(); }); hideAnswer(); };document.head.appendChild(e);})(document.createElement('script'),'//code.jquery.com/jquery-latest.min.js')">Quiz Review</a>
</bo
@erspark2002
erspark2002 / arduino-joystick-servo.ino
Last active March 18, 2017 18:57
Arduino - Joystick controlling 2 Servos using the X-Axis and Y-Axis
#include <Servo.h>
/*
Wiring Guides
Servos
http://www.instructables.com/id/Arduino-Servo-Motors/?ALLSTEPS
Check the Rotation of each servo in degrees. Search for your model number on servodatabase.com
eg. http://www.servodatabase.com/servo/futaba/s3003
0-60 degrees
@erspark2002
erspark2002 / todo_app_ver4.html
Last active November 20, 2022 15:02
Simple React Todo Application using CDN resources for babel/ES6 - VERSION 4 - Using Redux instead of internal state.
<!DOCTYPE html>
<!--
NOTES:
multiple components
no refs
uses Redux instead of internal state
-->
<html>
<head>
<meta charset="utf-8">
@erspark2002
erspark2002 / todo_app_ver3.html
Last active August 30, 2016 03:28
Simple React Todo Application using CDN resources for babel/ES6 - VERSION 3 - Using state instead of <input ref={}>
<!DOCTYPE html>
<!--
NOTES:
multiple components
no refs
uses state
The <input/> has it's ref removed, and 'value' and 'onChange' properties added.
The value is ALWAYS the value of this.state.description.
this.state.description is initialised to an empty string in the TodoItem's constructor using this.state = {...}
@erspark2002
erspark2002 / todo_app_ver2.html
Last active August 30, 2016 03:28
Simple React Todo Application using CDN resources for babel/ES6 - VERSION 2 - Multiple Components
<!DOCTYPE html>
<!--
NOTES:
multiple components
uses refs
no state
-->
<html>
<head>
<meta charset="utf-8">
@erspark2002
erspark2002 / todo_app_ver1.html
Last active August 30, 2016 03:29
Simple React Todo Application using CDN resources for babel/ES6 - VERSION 1 - Single Component
<!DOCTYPE html>
<!--
NOTES:
single component
usees refs
no state
-->
<html>
<head>
<meta charset="utf-8">