Skip to content

Instantly share code, notes, and snippets.

@moklick
moklick / normalize.css
Created August 15, 2014 10:30
Mini CSS Reset
* {
margin: 0;
padding: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*:after, *:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
@moklick
moklick / SVG-Dom-Visualization.markdown
Created February 14, 2014 16:22
A Pen by moklick.

SVG Dom Visualization

This visualization represents the DOM of twitter. The great library d3js.org helps me to visualize the data in form of a tree layout. You can hover the nodes to check the type of tag. I added the python script I wrote, to produce the json

A Pen by moklick on CodePen.

License.

@moklick
moklick / Money-Over-Everything.markdown
Created February 14, 2014 16:21
A Pen by moklick.

Money Over Everything

Move the mouse to let them follow their desire! (paper.js experiment)

A Pen by moklick on CodePen.

License.

Responsive Codepen Glitch

Minimal responsive glitch effect with the codepen logo.

A Pen by moklick on CodePen.

License.

@moklick
moklick / ...-is-watching-you.markdown
Created January 28, 2014 15:52
A Pen by moklick.
@moklick
moklick / CCTV-Everywhere.markdown
Created January 28, 2014 01:22
A Pen by moklick.

CCTV Everywhere

Cookies? Oldschool!! I use CCTV cams to track my users! Watch your step, they are everywhere.

A Pen by moklick on CodePen.

License.

@moklick
moklick / german number formats
Created October 14, 2013 13:34
functions to enforce german number formats
// from 1337 to 1.337
function formatNumber(number){
return (parseFloat(number) / 1000).toFixed(3).toString();
}
// from 12.123 to 12,123
function replacePoint(number) {
return number.toString().replace('.', ',');
}
@moklick
moklick / fusionhelper.js
Created October 10, 2013 13:12
Litte Fusiontable-Query Helper
var FusionHelper = {
query: function(params) {
var base = 'https://www.googleapis.com/fusiontables/v1/query?',
url = base + $.param({
sql: params.sql,
key: '***'
});
$.ajax({
url: url,
type: 'POST',
@moklick
moklick / website2synth.js
Last active December 15, 2015 20:00
website2synth.js creates a super lightweight synthesizer of a website (webkit only :/ ) Use this JS stuff as a bookmark to start the synthesizer. Press an element on the page to play. Enjoy.
javascript: (
function() {
var elms = document.getElementsByTagName('*');
var b = document.body;
var box = document.createElement('div');
box.id = "element-chooser-container";
var buttonContainer = document.createElement('div');
buttonContainer.id = "sound-change-button-bar";