Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / index.html
Created December 16, 2016 08:12
JS Bin // source http://jsbin.com/sibahocizo
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
body {
width:90%;
}
@teammixture
teammixture / layout.liquid
Created November 20, 2013 19:51
Example adding a class dynamically to a body tag based on the url in http://mixture.io
<!doctype html>
<html lang="en">
<head>
<title>{% block title %}Example{% endblock %}</title>
</head>
<body class="{{ mixture.url | slugify }}">
{% block content %}{% endblock %}
</body>
</html>
@richardtape
richardtape / functions.php
Created September 13, 2012 11:01
WordPress Sidebars for MrQwest
//In your functions.php (or wherever)
register_sidebar(
array(
'id' => 'primary',
'name' => __( 'Primary', 'your_theme' ),
'description' => __( 'The primary sidebar used on pages and posts. By default on the Right Hand Side', 'your_theme' ),
'before_widget' => '<div id="%1$s" class="widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h4 class="widget-title"><span class="title">',
'after_title' => '</span></h4>'
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt