Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ramon van Belzen Ramoonus

🏠
Working from home
View GitHub Profile
View gist:11188585
### 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 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
Ramoonus / javascript_resources.md
Created Jun 13, 2014 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.
View javascript_resources.md

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 Jun 13, 2014 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.
View css_resources.md

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

@Ramoonus
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
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 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 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
<?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 Feb 11, 2012 — forked from GaryJones/functions.php
Add widget area before primary menu items in Genesis.
View functions.php
<?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 Apr 27, 2012 — forked from deckerweb/gist:2503953
WPML Plugin: Conditional Switching Languages - helper code
View gist:2508635
<?php
/**
* WPML: Conditional Switching Languages
*
* @author David Decker - DECKERWEB
* @link http://twitter.com/deckerweb
*
* @global mixed $sitepress
*/
@Ramoonus
Ramoonus / single-code.php
Created Jul 29, 2012
Genesis Code Template
View single-code.php
<?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();