1,606 karma · joined February 4, 2011
Basic formatting
Old: '%d %d' % (1, 2)
New: '{} {}'.format(1, 2)
It should rather be `{:d} {:d}'.format(1, 2)` but even that isn't strictly equivalent (try both styles with a float or a Decimal). >>> '%d' % 3.14
'3'
>>> '%d' % 'foo'
TypeError: %d format: a number is required, not str $ http example.org | pup h1 text{} | http httpbin.org/post
[1] http://httpie.org/The design is fluid but not really responsive. What I've been playing with is remote control that worked great on mobile devices. You were able to control all of your active CloudTunes sessions from any connected browser. So you could for instance play music on your computer, and control it via your smartphone (just like the iOS Remote app from Apple can control iTunes, except this worked over the internet so you didn't need to be on the same network). It was a very crude prototype though so I didn't include it in the initial release.
Client-side model:
https://github.com/jakubroztocil/cloudtunes/blob/master/clou...
API endpoint: for local files, it could simply serve the file:
https://github.com/jakubroztocil/cloudtunes/blob/master/clou...
Plus it would also need indexing, configuration, and to introduce a new media type across the app.
[1] http://harveynick.com/blog/2013/08/10/so-i-made-an-iphone-ap...
[1] https://itunes.apple.com/us/app/google-adsense/id680739529?m...
[2] https://twitter.com/jakubroztocil/status/462173042626801664
$ brew install httpiehttps://access.redhat.com/site/documentation/en-US/Red_Hat_E...
I find even the default tab too distracting and so one of my favourite extensions is Empty New Tab Page:
https://chrome.google.com/webstore/detail/empty-new-tab-page...