Skip to content

Instantly share code, notes, and snippets.

@vilcsak
vilcsak / CountriesWithPhoneCodes.plist
Created October 28, 2015 19:46
List of countries including phone dialing country codes (eg. +1 for USA, +44 for UK etc)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>code</key>
<string>AF</string>
<key>phone_code</key>
<string>93</string>
<key>name</key>
@vilcsak
vilcsak / Countries.plist
Last active August 30, 2023 18:44
List of country names and country codes in plist format
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>code</key>
<string>AF</string>
<key>name</key>
<string>Afghanistan</string>
</dict>
@vilcsak
vilcsak / iphone-screenshot
Created February 2, 2012 22:38
Automate capturing screenshots of the iPhone simulator
#!/bin/sh
# A) Run ./iphone-screenshot
# B) Type in the screenshot filename
# C) Click on the iPhone simulator
OUTPUTDIR=~/Desktop
TEMPFILE=iphone_screenshot_temp.png
echo "output filename:\c"