Skip to content

Instantly share code, notes, and snippets.

View Ramoonus's full-sized avatar
🏠
Working from home

Ramon van Belzen Ramoonus

🏠
Working from home
View GitHub Profile
@Ramoonus
Ramoonus / parse-word-footnotes.php
Created August 21, 2011 13:24
Function which uses regular expression to parse Microsoft Word footnotes into WordPress's Simple Footnotes format
/**
* 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 http://ben.balter.com/2011/03/20/regular-expression-to-parse-word-style-footnotes/
*/
function bb_parse_footnotes( $content ) {
global $post;
@Ramoonus
Ramoonus / template-stock-report.php
Created December 7, 2011 13:55 — 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.
<?php
/*
Template Name: Stock Report :)
*/
if (!is_user_logged_in() || !current_user_can('manage_options')) wp_die('This page is private.');
?>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@Ramoonus
Ramoonus / functions.php
Created February 11, 2012 13:41 — forked from GaryJones/functions.php
Add widget area before primary menu items in Genesis.
<?php
/**
* Adds a widget area before primary menu items.
*
* @author Bill Erickson
* @author Gary Jones
* @link https://gist.github.com/gists/1799174
*
* @param string $menu Existing menu items markup.
* @param array $args Menu arguments.
@Ramoonus
Ramoonus / gist:2508635
Created April 27, 2012 11:57 — forked from deckerweb/gist:2503953
WPML Plugin: Conditional Switching Languages - helper code
<?php
/**
* WPML: Conditional Switching Languages
*
* @author David Decker - DECKERWEB
* @link http://twitter.com/deckerweb
*
* @global mixed $sitepress
*/
@Ramoonus
Ramoonus / single-code.php
Created July 29, 2012 12:29
Genesis Code Template
<?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' );
genesis();
<?php
$countries = array(
'AF' => 'Afghanistan',
'AX' => 'Åland Islands',
'AL' => 'Albania',
'DZ' => 'Algeria',
'AS' => 'American Samoa',
'AD' => 'Andorra',
'AO' => 'Angola',
### Keybase proof
I hereby claim:
* I am ramoonus on github.
* I am ramoonus (https://keybase.io/ramoonus) on keybase.
* I have a public key whose fingerprint is 4494 EF7C D611 922C 0E17 A0C9 1D85 1257 E720 CF44
To claim this, I am signing this object:
@Ramoonus
Ramoonus / 0_reuse_code.js
Created June 13, 2014 15:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@Ramoonus
Ramoonus / javascript_resources.md
Created June 13, 2014 15:41 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • 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
@Ramoonus
Ramoonus / css_resources.md
Created June 13, 2014 15:41 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides