Skip to content

Instantly share code, notes, and snippets.

Marco Colli collimarco

Block or report user

Report or block collimarco

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@collimarco
collimarco / clt.js
Last active Aug 29, 2015
V8 Javascript that demonstrates the Central Limit Theorem
View clt.js
// A large number to be used as infinite
var inf = 10000;
// The number of segments in which a continuous random variable is divided
// to get an aproximation in the discrete
var nSegments = 10;
// U ~ Uniform(0, 1)
function u() {
return Math.random();
@collimarco
collimarco / Mobile Res Generator
Last active Mar 9, 2016
Mobile Res Generator
View Mobile Res Generator
These shell scripts automatically generate PNG icons and splash screens (launch images) at different sizes and resolutions given a default icon and splash screen in Inkscape SVG format.
PREREQUISITES
Make sure that you have Inkscape installed. Running the following command you should see the path to the executable:
> which inkscape
/usr/bin/inkscape
CONFIGURATION
You can specify the input icon and splash screen (and some other options) in the configuration at the top of each shell script.
You can’t perform that action at this time.