UI Hacker - Code for Fun

A collection of handy code snippets in the languages that I use on a daily basis.

October 26, 2014

JavaScript: Use two.js to prepare svg shapes for a PIXI.js Sprite

›
When creating PIXI.js Sprites from vector SVG shapes, you may want to scale up the SVG before turning it into a bitmap sprite, in order to ...

JavaScript: Automatically scroll to the end of an infinitely-scrolling page

›
Simply paste this code into your browser console: var scrollInterval = setInterval(function(){window.scrollTo(0,-999999999999)},500) When ...
May 8, 2014

Return to the beginning of an array with a ternary operator

›
Often times when iterating and looping over the contents of an array, I want to set the current index to zero if it's reached the last e...
1 comment:
August 16, 2013

iOS: Force audio output to speakers while headphones are plugged in

›
After much searching through Apple documentation and scarce examples of what I wanted to do, I came up with the following code. A client wan...
2 comments:
July 7, 2013

Inspiration: Yoichiro Kawaguchi

›
If you get into any of the many facets of creative coding or graphical programming, you inevitably run into the history of the demoscene . I...
›
Home
View web version

About Me

View my complete profile
Powered by Blogger.