Skip to content

Instantly share code, notes, and snippets.

View winniehell's full-sized avatar
🤯
I set my status

Winnie winniehell

🤯
I set my status
View GitHub Profile
@winniehell
winniehell / rules.html
Last active January 16, 2019 21:17
updated rules for onehourgamejam.com (to include Can I submit as a team?)
<h3>When?</h3><p>Every <a href='https://www.google.com/search?q=20%3A00+UTC' target='_BLANK'>Saturday at 20:00 UTC</a>. The time in your local time and a countdown-timer should be in the top of the site though.</p><h3>Where?</h3><p>Right here! <a href='https://discord.gg/J86uTu9' target='_BLANK'>Joining our Discord server</a> is however a good idea.</p><h3>Is there a theme?</h3><p>Yes! At the start of the hour, the theme is announced on the site and <a href='https://discord.gg/J86uTu9' target='_BLANK'>on Discord</a>. Themes are suggested and voted by the community on the <a href='?page=themes'>Theme Voting page</a>.</p><h3>How long do I have to finish?</h3><p>:D</p><h3>Do I have to submit within the hour?</h3><p>No. Keep working on your game until it's done, then submit.</p><h3>Can I use premade assets?</h3><p>You are free to use premade assets but it is recommended that you make at least one game from scratch. Some assets are provided on the <a href='?page=assets'>Assets page</a> but you do not have to use t
@winniehell
winniehell / unacceptable.java
Created October 27, 2016 13:35
This is getting unacceptable.
this = unacceptable;
@winniehell
winniehell / checkboxes.md
Created August 14, 2016 19:55
checkboxes
  • first item
  • second item
@winniehell
winniehell / circles.js
Last active September 2, 2016 23:15
SVG + D3.js: Jumping circles
window.addEventListener('load', function () {
console.log('Powered by d3 v' + d3.version);
var svg = d3.select('svg');
var circles = svg.selectAll('circle')[0];
circles.forEach(function (circle) {
console.log(circle);
circle.addEventListener('click', onClickCircle);
});
@winniehell
winniehell / index.html
Last active March 9, 2016 17:48
SVG: Grow and Shrink and Colors
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Grow and Shrink</title>
</head>
<body>
<svg width="100%" height="100%">
<animate id="shrink"
@winniehell
winniehell / d3.v2.js
Last active March 8, 2016 23:44 — forked from ZJONSSON/index.html
Simple transitioning slides with SVG and D3
(function() {
function d3_class(ctor, properties) {
try {
for (var key in properties) {
Object.defineProperty(ctor.prototype, key, {
value: properties[key],
enumerable: false
});
}
} catch (e) {
var jsen = require('jsen');
function validateAndOutput(schema, title, data) {
var validate = jsen(schema);
var result = validate(data);
if (result) {
console.log('Valid: ' + title + ' = ' + JSON.stringify(data));
} else {
console.log('Invalid: ' + title + ' = ' + JSON.stringify(data));
@winniehell
winniehell / find.py
Created January 5, 2015 18:38
Find all python classes within the current package
import importlib
import inspect
import pkgutil
package = importlib.import_module(__package__)
for loader, module_name, is_pkg in pkgutil.iter_modules(package.__path__):
if not is_pkg:
module = importlib.import_module(__package__+'.'+module_name)
for name, obj in inspect.getmembers(module):
if inspect.isclass(obj):
@winniehell
winniehell / setup.md
Last active August 29, 2015 14:11
Setting up Grunt + Bower + Bootstrap
$ nvm use 0.10
$ npm init
$ npm install grunt --save-dev
$ npm install grunt-contrib-cssmin --save-dev
$ npm install grunt-contrib-sass --save-dev
$ npm install grunt-contrib-uglify --save-dev
$ npm install grunt-wiredep --save-dev

# edit Gruntfile.js
@winniehell
winniehell / bad.java
Last active August 29, 2015 14:10
inline comments
public static int[] process(int[] inp, String oop) {
// initialize a new array with zeroes to use in error case <-- WRONG!
// this will be returned if the operator is not known <-- WRONG!
int[] oue = new int[] { Integer.MAX_VALUE, Integer.MAX_VALUE };
// set placeholder variable for plus operator
// this will be used to compare the input operator in the for loop below
String opp = "+";
// set placeholder variable for minus operator
// this will be used to compare the input operator in the for loop below
String opm = "-";