Skip to content

Instantly share code, notes, and snippets.

View IAmKio's full-sized avatar
😈
LIKE MAH STATUS

I Am Kio IAmKio

😈
LIKE MAH STATUS
  • Digital Industria Ltd
  • London
  • X @kiog
View GitHub Profile
@IAmKio
IAmKio / Wikipedia Programming Languages List (April 2014)
Last active August 29, 2015 13:58
List of programming languages from Wikipedia (April 2014)
A# .NET
A# (Axiom)
A-0 System
A+
A++
ABAP
ABC
ABC ALGOL
ABLE
ABSET
@IAmKio
IAmKio / AndroidDialog
Created June 11, 2013 12:43
Android Dialog
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(){
@Override
public void onClick(DialogInterface dlg, int position)
{
if ( position == 0 )
{
}
@IAmKio
IAmKio / Android_transparent_layout
Created June 11, 2013 12:47
Android: Transparent Layouts
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"?>
<resources>
<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>
@IAmKio
IAmKio / Wordpress_automatic_install
Created June 12, 2013 10:33
Wordpress Automatic Plugin 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.
http://core.trac.wordpress.org/browser/tags/3.1/wp-admin/includes/file.php#L866
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
IAmKio / say.xml
Last active April 7, 2016 15:36
twilioxml
<?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="https://taf522husd.execute-api.us-east-1.amazonaws.com/production/twiml-find-order" timeout="10" method="POST" numDigits="9"></Gather><Say>Sorry, your order does not exist</Say></Response>
@IAmKio
IAmKio / Countries from Wikipedia, CSV
Created April 10, 2014 09:51
List of all countries from Wikipedia (April 2014), comma separated
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
IAmKio / arbitrary-string-to-mnemonic.js
Created February 14, 2024 08:50
Arbitrary string to Mnemonic Phrase
/**
* Copyright 2024 Kieran Goodary <kieran@digitalindustria.com>
*
* Permission is hereby granted, free of charge, to any
* person obtaining a copy of this software and associated
* documentation files (the “Software”), to deal in the
* Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute,
* sublicense, and/or sell copies of the Software, and to permit
* persons to whom the Software is furnished to do so, subject