Some days, it's nice to be reminded that I actually make some pretty cool things https://www.instagram.com/p/BtooDodhNlU/?utm_source=ig_tumblr_share&igshid=1swijdfcwty3k
taylor price
h

@theartofmadeline
tumblr dot com
Game of Thrones Daily
AnasAbdin
ojovivo
Misplaced Lens Cap

Origami Around
Keni
Sweet Seals For You, Always
Alisa U Zemlji Chuda

Kiana Khansmith
Not today Justin
TVSTRANGERTHINGS
noise dept.
Sade Olutola

❣ Chile in a Photography ❣
Jules of Nature
Lint Roller? I Barely Know Her

seen from United States

seen from Kuwait

seen from Malaysia
seen from China
seen from Japan

seen from Malaysia

seen from Ireland

seen from Malaysia

seen from Canada
seen from Netherlands

seen from United States

seen from Netherlands
seen from Belgium
seen from United States
seen from Germany

seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
@errrord
Some days, it's nice to be reminded that I actually make some pretty cool things https://www.instagram.com/p/BtooDodhNlU/?utm_source=ig_tumblr_share&igshid=1swijdfcwty3k
Code Golf challenge - pilot
Okay, here we go. I’ll try this out, as a few of you said you’d be up for it. I’ll use this to play with the format and to gauge your engagement.
Code Golf challenge v0: Your goal, if you choose to accept it, is to create a program which generates the first n terms of the ‘look and say’ sequence. Your program will accept an integer input, and should output n number of terms.
Test cases:
In->Out
0->1
1->11
2->21
3->1211
4->111221
5->312211
6->13112221
7->1113213211
8->31131211131221
9->13211311123113112211
10->11131221133112132113212221
The rules: You can use any language you wish. As per the challenge, the shortest solution, for each language, in number of bytes/characters, wins.
I’ll leave this one open for a bit, so don’t worry about deadlines. I’ll warn before I close submissions for this.
Good luck!
after even further tweaks, this is down by 6 characters to just 109
for(i=process.argv[2],o='1';i--;){for(c=n=s=j='';h=o[j++];){h==n?c++:(s+=c+n,n=h,c=1)}o=s+c+n}console.log(o)
I've learnt new, horrible things about javascript in the process
Code Golf challenge - pilot
Okay, here we go. I’ll try this out, as a few of you said you’d be up for it. I’ll use this to play with the format and to gauge your engagement.
Code Golf challenge v0: Your goal, if you choose to accept it, is to create a program which generates the first n terms of the ‘look and say’ sequence. Your program will accept an integer input, and should output n number of terms.
Test cases:
In->Out
0->1
1->11
2->21
3->1211
4->111221
5->312211
6->13112221
7->1113213211
8->31131211131221
9->13211311123113112211
10->11131221133112132113212221
The rules: You can use any language you wish. As per the challenge, the shortest solution, for each language, in number of bytes/characters, wins.
I’ll leave this one open for a bit, so don’t worry about deadlines. I’ll warn before I close submissions for this.
Good luck!
My original solution clocked in at 164 chars of javascript
l=(n)=>n<=0?[1]:s(l(n-1)) s=(q)=>{var v,o=[],c=0 q.forEach((n)=>n==v?c++:(v&&o.push(c,v),v=n,c=1)) return o.concat([c,v])} console.log(l(process.argv[2]).join(""))
After seeing the solution that vorbisx gave, I used a couple of learnt tricks to get my solution down further to 136 chars.
l=(n)=>n<=0?'1':s(l(n-1)) s=(q)=>{v=o=c='' for(i=0;n=q[i];i++){n==v?c++:(o+=c+v,v=n,c=1)} return o+c+v} console.log(l(process.argv[2]))
Ultimately though, extending (minimising?) their solution a bit more and forgoing the spiffy lambda functions I was able to get down to just 115 chars with this ugly one liner
for(n='1',i=0;i<process.argv[2];i++){for(c=r=s='',j=0;h=n[j];j++){h==c?r++:(s+=r+c,c=h,r=1)}n=s+r+c}console.log(n)
runs as a script on node8
~/src/codegolf/looksay# node looksay.js 0 1 ~/src/codegolf/looksay# node looksay.js 3 1211 ~/src/codegolf/looksay# node looksay.js 6 13112221 ~/src/codegolf/looksay# node looksay.js 8 31131211131221 ~/src/codegolf/looksay# wc -m looksay.js 115 looksay3.js
Looking forward to more of these
Mining rich gif seams in search of stuff in readiness for tonight's Hackney Algorave https://www.instagram.com/p/BnEQbmrD66E/?utm_source=ig_tumblr_share&igshid=nr495yu84mzi
Ready for the algorave
Create a processing sketch, export to a gif, load into Improviz, animate as a texture. That's Christmas sorted. #livecoding #improviz #algorave #processing
Improviz now has 100% now Algorave #livecoding #improviz #algorave
#livecoding #multimedia #improviz
This is going to be a lot of fun #livecoding #multimedia #improviz
Now this is getting somewhere! Animated GIFs loaded as textures and live codable. #livecoding #multimedia #improviz
Valley of rocks on the Exmoor coast
Five Days of Pure Data - Infinite Scrolling
Five Days of Pure Data – Infinite Scrolling
In the years that I’ve been creating things in Pure Data I have amassed quite a collection of unfinished and messy patches. Over the next few days I’ll be releasing a few of these patches and techniques that I implement when programming in Pure Data.
Infinite Scrolling
For a performance at ChipFest 10 in 2014I wanted to recreate the look of a scrolling video game but within Pure Data. Sure, I…
View On WordPress
Coronation Crack at High Rocks #jammin
Algorave > Field day