About
I build companies. blog@e-huned.com
outdated: resume + portfolio
less outdated: linked in
readings
What I do
Creative Commons Terms of Service and Privacy Policy
Respekts to Automattic and Wordpress. Here they are:
- Automattic’s Creative Commons Sharealike Privacy Policy
- Wordpress’ Creative Commons Sharealike Terms of Service
How to calculate a simple moving average in Javascript
And use it like this:
>> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(2) [1, 1.5, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5, 9.5] >> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(3) [1, 1.5, 2, 3, 4, 5, 6, 7, 8, 9] >> [1,2,3,4,5,6,7,8,9,10].simple_moving_average(4) [1, 1.5, 2, 2.5, 3.5, 4.5, 5.5, 6.5, 7.5, 8.5]
I wonder if this is buggy/wrong. It seems right, though.
Download all your flickr photos with this ruby code. Bye flickr.
This is my very last use of flickr’s API. Use this script to download all your flickr photos + metadata (as provided by flickr.photos.getInfo).
It’s pretty rough around the edges but that’s okay because it’s a single-use chunk of code. You need a local mongodb server running. and your api key and auth token from flickr.
Do you want to migrate all your memories from flickr to picasa (or mobileme, or wherever)? Ask me how.
font-size: 72px
I feel like 72px is underrated. You’ve probably never seen it. So I made a sample for you to admire. Pretty, right?
p.s. – hi david :)
omg
Frequency of occurrence of some internet-style abbreviations in a chat log.