Skip to content

Instantly share code, notes, and snippets.


I Am Kio IAmKio

View GitHub Profile
IAmKio / say.xml
Last active Apr 7, 2016
View say.xml
<?xml version="1.0" encoding="UTF-8"?><Response><Say>Hello, thanks for contacting Surfdome.</Say><Say>For information on your order, please type in your order number, followed by the pound key.</Say><Gather action="" timeout="10" method="POST" numDigits="9"></Gather><Say>Sorry, your order does not exist</Say></Response>
IAmKio / Countries from Wikipedia, CSV
Created Apr 10, 2014
List of all countries from Wikipedia (April 2014), comma separated
View Countries from Wikipedia, CSV
Afghanistan,Albania,Algeria,Andorra,Angola,Antigua and Barbuda,Argentina,Armenia,Australia,Ashmore and Cartier Islands,Australian Antarctic Territory,Christmas Island,Cocos (Keeling) Islands,Coral Sea Islands Territory,Heard Island and McDonald Islands,Norfolk Island,Austria,Azerbaijan,Bahamas, The,Bahrain,Bangladesh,Barbados,Belarus,Belgium,Belize,Benin,Bhutan,Bolivia,Bosnia and Herzegovina,Federation of Bosnia and Herzegovina,Republika Srpska,Botswana,Brazil,Brunei,Bulgaria,Burkina Faso,Burma,Burundi,Cambodia,Cameroon,Canada,Cape Verde,Central African Republic,Chad,Chile,China,Hong Kong,Macau,Colombia,Comoros,Congo, Democratic Republic of the,Congo, Republic of the,Costa Rica,Croatia,Cuba,Cyprus,Czech Republic,Denmark,Faroe Islands,Greenland,Djibouti,Dominica,Dominican Republic,East Timor,Ecuador,Egypt,El Salvador,Equatorial Guinea,Eritrea,Estonia,Ethiopia,Fiji,Finland,Åland,France,Clipperton Island,French Polynesia,New Caledonia,Saint Barthélemy,Saint Martin,Saint Pierre and Miquelon,Wallis and Futuna,Fren
IAmKio / Wikipedia Programming Languages List (April 2014)
Last active Aug 29, 2015
List of programming languages from Wikipedia (April 2014)
View Wikipedia Programming Languages List (April 2014)
A# (Axiom)
A-0 System
IAmKio / Wordpress_automatic_install
Created Jun 12, 2013
Wordpress Automatic Plugin Install
View Wordpress_automatic_install
Wordpress will only prompt you for your FTP connection information while trying to install plugins or a wordpress update if it cannot write to /wp-content directly. Otherwise, if your web server has write access to the necessary files, it will take care of the updates and installation automatically. This method does not require you to have FTP/SFTP or SSH access, but it does require your to have specific file permissions set up on your webserver.
It will try various methods in order, and fall back on FTP if Direct and SSH methods are unavailable.
Wordpress will try to write a temporary file to your /wp-content directory. If this succeeds, it compares the ownership of the file with it's own uid, and if there is a match it will allow you to use the 'direct' method of installing plugins, themes, or updates.
Now, if for some reason you do not want to rely on the automatic check for which filesystem method to use, you can define a
IAmKio / Android_transparent_layout
Created Jun 11, 2013
Android: Transparent Layouts
View Android_transparent_layout
Add the following style In your res/values/styles.xml file (if you don’t have one, create it.) Here’s a complete file:
<?xml version="1.0" encoding="utf-8"?>
<style name="Theme.Transparent" parent="android:Theme">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">true</item>
View AndroidDialog
Dialog d = new AlertDialog.Builder(Buddies.this,AlertDialog.THEME_HOLO_LIGHT)
.setTitle("Create New")
.setNegativeButton("Cancel", null)
.setItems(new String[]{"Document", "SpreadSheet","",""}, new DialogInterface.OnClickListener(){
public void onClick(DialogInterface dlg, int position)
if ( position == 0 )