Skip to content

Instantly share code, notes, and snippets.

@TheConnMan
TheConnMan / FrontendDevelopment.md
Last active August 29, 2015 14:18
A few notes about Frontend Dev best practices (from my experience)

Frontend Development

Discipline

  • HTML, CSS, and JS are all very free-form
  • Many different ways to do many different things

Keep Everything Clean

@TheConnMan
TheConnMan / CompareDefinitions.js
Last active August 29, 2015 14:03
Game Engine Post
// Old
// Define a data object for each circle
var nodes = d3.range(size).map(function() {
return {
radius: 8 + Math.floor(Math.random() * 10),
x: Math.random() * w * .8 + w * .1,
y: Math.random() * h * .8 + h * .1,
v: speed,
r: Math.random() * 2 * Math.PI
};
@TheConnMan
TheConnMan / ParseDis.csv
Created June 10, 2014 01:11
Some Python to parse out those pesky characters
Stuff Moar Stuff So Much -Stuff
St-uff Moar Stuff So Much| Stuff
Stuff Moar |Stuff So Much Stuff
St|uff Mo-ar Stuff So -Much Stuff
Stuff Moar Stu|ff So Much Stuff
St-uff Moar Stuf-f So Much |S-tuff
Stuff Moar -Stuf-f So- Much Stuff
St|uf-f Moar Stuf|f So Much Stuff
Stuff |Moar -Stuff So- Much |Stuff
Stuff Moar S|tuff So Muc|h Stuff