Skip to content

Instantly share code, notes, and snippets.

@rehmatworks
rehmatworks / itunes-category-list.json
Last active November 20, 2020 16:41
I needed the up-to-date list of iTunes categories (as of 2017) for a project but didn't find the list as a JSON anywhere. Here I'm sharing the latest categories list that I extracted from iTunes official page. I hope this helps someone.
{
"1": {
"name": "Arts",
"sub": [
"Design",
"Fashion & Beauty",
"Food",
"Literature",
"Performing Arts",
"Visual Arts"
@mgibbs189
mgibbs189 / functions.php
Created September 1, 2016 11:36
FacetWP - trick FacetWP into supporting multiple data sources
<?php
// we have 3 facets: my_autcomplete, my_autocomplete_2, my_autocomplete_3
// trick FacetWP into using _2 and _3's values for the first facet
function my_facetwp_index_row( $params, $class ) {
$name = $params['facet_name'];
if ( 'my_autocomplete_2' == $name || 'my_autocomplete_3' == $name ) {
$params['facet_name'] = 'my_autocomplete';
}
return $params;
@michaeluno
michaeluno / admin-page-framework-ajax-fields.php
Created July 26, 2016 18:01
Demonstrates how form fields can be updated using Ajax with Admin Page Framework.
<?php
/**
* Plugin Name: Admin Page Framework Demo - Ajax FIelds
* Plugin URI: http://en.michaeluno.jp/admin-page-framework
* Description: Demonstrates how fields can be updated with Ajax.
* Author: Michael Uno
* Author URI: http://michaeluno.jp
* Version: 1.0.0
* Requirements: PHP 5.2.4 or above, WordPress 3.4 or above. Admin Page Framework 3.0.0 or above
*/
@eteubert
eteubert / feeds_unique.txt
Created July 12, 2013 18:10
List of Podcast RSS Feeds, extracted via iTunes API
This file has been truncated, but you can view the full file.
<http://sailortalk.podOmatic.com/rss2.xml>
HTTP://www.knient.com/CAL/CAL-Podcast/CAL-Podcast.xml
Http://feeds.feedburner.com/fridgeandhbomb
Http://feeds.feedburner.com/wfodicks
Http://ravenc-taouf.podomatic.com/rss2.xml
Http://www.calvaryonline.org/podcasts/podcast.xml
Http://www.changkhui.com/XML/teemateepai.xml
httP://dtfreunde.podcaster.de/Deutsches_Theater.rss
http://-myantioch.sermon.tv/rss/main
http://004.podOmatic.com/rss2.xml
@claudiosanches
claudiosanches / theme-options-functions.php
Created December 1, 2012 21:16
WordPress - Theme Settings Framework
<?php
// Esse é o arquivo com a base das funções.
// Tente não alterar ele.
/**
* Theme Options Functions
*/
/**
* Load options scripts
@DHS
DHS / PHP Countries Array
Created November 4, 2011 18:51
PHP array of all country names
<?php
$countries = array("Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", "Angola", "Anguilla", "Antarctica", "Antigua and Barbuda", "Argentina", "Armenia", "Aruba", "Australia", "Austria", "Azerbaijan", "Bahamas", "Bahrain", "Bangladesh", "Barbados", "Belarus", "Belgium", "Belize", "Benin", "Bermuda", "Bhutan", "Bolivia", "Bosnia and Herzegowina", "Botswana", "Bouvet Island", "Brazil", "British Indian Ocean Territory", "Brunei Darussalam", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Cape Verde", "Cayman Islands", "Central African Republic", "Chad", "Chile", "China", "Christmas Island", "Cocos (Keeling) Islands", "Colombia", "Comoros", "Congo", "Congo, the Democratic Republic of the", "Cook Islands", "Costa Rica", "Cote d'Ivoire", "Croatia (Hrvatska)", "Cuba", "Cyprus", "Czech Republic", "Denmark", "Djibouti", "Dominica", "Dominican Republic", "East Timor", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Estonia", "Ethiopia", "Falkland Island