Skip to content

Instantly share code, notes, and snippets.

@hansspiess
hansspiess / Skewed full width menu with scss.markdown
Created June 25, 2015 15:33
Skewed full width menu with scss
@hansspiess
hansspiess / setup-wordpress-with-sage.bash
Last active August 29, 2015 14:16
These commands come in handy when setting up new wp installs with the successor of roots, https://roots.io/sage/.
# download & unzip latest, to be executed in /sites folder
wget http://wordpress.org/latest.tar.gz && tar xfz latest.tar.gz && rm latest.tar.gz
# move to theme directory
cd wordpress/wp-content/themes/
# clone sage theme: https://roots.io/sage/
git clone https://github.com/roots/sage.git theme-name
# delete standard themes
@hansspiess
hansspiess / 01 eloquentjavascript.net
Last active August 29, 2015 14:16
Collecting my solutions for a great tutorial...
Every chapter of eloquentjavascript.net has some exercises, which i keep here for reference.
@hansspiess
hansspiess / index.html
Created July 2, 2014 22:52
Multiple google maps with centered marker in foundation reveal modals on one page
<!DOCTYPE html>
<html>
<head>
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/normalize.min.css" rel="stylesheet" type="text/css" />
<link href="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/css/foundation.min.css" rel="stylesheet" type="text/css" />
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/vendor/jquery.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/foundation/5.0.3/js/foundation.min.js"></script>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDEbRv070GUYNDHSrK8FzNPakJKl3wBmeg&amp;sensor=TRUE"></script>
<meta charset="utf-8">
<title>JS Bin</title>

Enhance Joomla 2.5 Pagination with Font Awesome Icons

The Implamantation of the Html in Joomla 2.5 is described in this gist.

A Pen by Hans Spieß. License.

@hansspiess
hansspiess / de-DE.override.ini
Last active November 20, 2018 07:01
Implement Icon Font with Joomla 2.5 pagination.php
;to be placed in ROOT/language/overrides/
JLIB_HTML_START="<i class=\"fa fa-fast-backward\"></i>"
JPREV="<i class=\"fa fa-backward\"></i>"
JNEXT="<i class=\"fa fa-forward\"></i>"
JLIB_HTML_END="<i class=\"fa fa-fast-forward\"></i>"
@hansspiess
hansspiess / index.html
Last active August 29, 2015 13:59
A Pen by Hans Spieß.
<div class="coindesk js-coindesk">
<p class="coindesk__price">
€ <span class="js-eur-value"></span>
</p>
<p>
Zuletzt aktualisiert am <span class="js-last-updated"></span>
</p>
<p class="small">Powered by <a href="/price/">CoinDesk</a></p>
</div>
@hansspiess
hansspiess / functions.php
Created October 4, 2013 10:13
Wordpress: Add Post Count with specific Age to Category Links
<?php
/* other function.php code goes here... */
function my_custom_walker( $args ) {
return array_merge( $args, array( 'walker' => new My_Custom_Walker() ) );
}
add_filter( 'wp_nav_menu_args', 'my_custom_walker' );