Skip to content

Instantly share code, notes, and snippets.

View frederikpetersen's full-sized avatar

Frederik Petersen frederikpetersen

View GitHub Profile
/**
* Combine and minify all js files in a folder and its subfolders into one minified file.
* Syntax: node combine-minify.js [Source Folder] [Output File]
* Example: node combine-minify.js src dist/app.min.js
*
* Dependencies: UglifyJS | https://github.com/mishoo/UglifyJS2 | npm install uglify-js
*
* Notes:
* - Will only include files that ends with .js
* - All paths are relative
@frederikpetersen
frederikpetersen / Button.java
Created June 2, 2016 10:30
Simple button class for Processing
class Button
{
private int x, y, width, height;
private PFont font;
private String label;
private int fontSize;
private int delay = 0, framesPassed = 0;
public Button(int x, int y, int width, int height, String label, int fontSize)