Skip to content

Instantly share code, notes, and snippets.

Working from home

Ramon van Belzen Ramoonus

Working from home
View GitHub Profile
View iso3317.php
$countries = array(
'AF' => 'Afghanistan',
'AX' => 'Åland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
Ramoonus / single-code.php
Created Jul 29, 2012
Genesis Code Template
View single-code.php
remove_action( 'genesis_before_post_content', 'genesis_post_info' );
remove_action( 'genesis_after_post_content', 'genesis_post_meta' );
remove_action( 'genesis_after_post', 'genesis_do_author_box_single' );
Ramoonus / gist:2508635
Created Apr 27, 2012 — forked from deckerweb/gist:2503953
WPML Plugin: Conditional Switching Languages - helper code
View gist:2508635
* WPML: Conditional Switching Languages
* @author David Decker - DECKERWEB
* @link
* @global mixed $sitepress
Ramoonus / functions.php
Created Feb 11, 2012 — forked from GaryJones/functions.php
Add widget area before primary menu items in Genesis.
View functions.php
* Adds a widget area before primary menu items.
* @author Bill Erickson
* @author Gary Jones
* @link
* @param string $menu Existing menu items markup.
* @param array $args Menu arguments.
Ramoonus / template-stock-report.php
Created Dec 7, 2011 — forked from mikejolley/template-stock-report.php
WooCommerce - Stock Report. A template page snippet to (if you are logged in as admin) output a list of products/stock (which you are managing stock for) ready for printing.
View template-stock-report.php
Template Name: Stock Report :)
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.');
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Ramoonus / parse-word-footnotes.php
Created Aug 21, 2011
Function which uses regular expression to parse Microsoft Word footnotes into WordPress's Simple Footnotes format
View parse-word-footnotes.php
* Function which uses regular expression to parse Microsoft Word footnotes
* into WordPress's Simple Footnotes format
* @param string $content post content from filter hook
* @returns string post content with parsed footnotes
* @link
function bb_parse_footnotes( $content ) {
global $post;
Ramoonus / gist:0adf9633ae261e621493
Created Aug 17, 2014
WordPress Gallery Post Format
View gist:0adf9633ae261e621493
function ramoonus_gallery_post_format() {
add_theme_support( 'post-formats', array( 'gallery' ) );
add_action( 'after_setup_theme', 'ramoonus_gallery_post_format' );
Ramoonus / 0_reuse_code.js
Created Jun 13, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
Ramoonus /
Created Jun 13, 2014 — forked from jookyboi/
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.


  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage