Skip to content

Instantly share code, notes, and snippets.

View stoleru's full-sized avatar

Andrei Stoleru stoleru

View GitHub Profile
environment = process.env.NODE_ENV || "development";
var settings = {
development: {
public: {},
private: {}
},
staging: {
public: {},
private: {}
@stoleru
stoleru / hexagon.js
Last active August 29, 2015 14:26 — forked from Breefield/hexagon.js
Drawing a Hexagon with Paper.js
// Create a Paper.js Path to draw a line into it:
var hexagon = new Path();
// Color our path black
hexagon.strokeColor = 'black';
// How many points do we want our object to have
var points = 6;
// How large should it be
var radius = 60;
// 0 to 2PI is a circle, so divide that by the number of points