Skip to content

Instantly share code, notes, and snippets.

@mdzhang
mdzhang / currencies.json
Last active November 16, 2016 06:54
Currency information by currency code
{
"AED": {
"countries": [
"UNITED ARAB EMIRATES (THE)"
],
"decimal_mark": ".",
"decimals": 2,
"exponent": "2",
"iso_code": "AED",
"iso_numeric": "784",
@nyoron
nyoron / gist:363423
Created April 12, 2010 10:12
Some sample code for a horizontal paged UIScrollView with a gap between each image, like Photos.app (which looks nicer when paging).
/*
Some sample code for a horizontal paged UIScrollView with a gap between each image (which looks nicer). Note - not using contentInset, we want each page to fill the iPhone screen and the gap only to be visible when scrolling (like Photos.app).
Taking the iPhone status bar into account - our viewport is 320x460
Our UIScrollView is therefore set in Interface Builder to 340x460 with a -10 X offset (so it's larger than the viewport but still centred)
Then we do the following...
*/
// Our image filenames