- first item
- second item
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
<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 |
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
this = unacceptable; |
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
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); | |
}); |
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
<!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" |
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
(function() { | |
function d3_class(ctor, properties) { | |
try { | |
for (var key in properties) { | |
Object.defineProperty(ctor.prototype, key, { | |
value: properties[key], | |
enumerable: false | |
}); | |
} | |
} catch (e) { |
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 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)); |
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
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): |
$ 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
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 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 = "-"; |
NewerOlder