Skip to content

Instantly share code, notes, and snippets.

View psynaptic's full-sized avatar

Richard Burford psynaptic

View GitHub Profile
@psynaptic
psynaptic / gist:5195094
Created March 19, 2013 10:31
User stylesheet for turning Wikipedia into a single-column, content-only UI (similar to Readability but without stripping content styles).
div#content {
margin-left: 0;
background: white;
z-index: 1;
position: relative;
}
html,
body {
font-size: 1.2em;
switch (PHP_OS) {
case 'Darwin':
$size = shell_exec('stat -f %z ' . escapeshellarg($filepath));
break;
case 'Linux':
$size = shell_exec('stat -c%s ' . escapeshellarg($filepath));
break;
}
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "images"
javascripts_dir = "scripts"
output_style = :expanded
line_comments = false
add_import_path "../ladybug/sass"
[color.interactive]
prompt = yellow
test
another line
div#content {
margin-left: 0;
background: white;
z-index: 1;
position: relative;
}
html,
body {
font-size: 1.2em;
}
<section id="clients">
<h1>Clients</h1>
<ul class="clients-list">
<li>Client</li>
<li>Client</li>
<li>Client</li>
<li>Client</li>
<li>Client</li>
</ul>
</section>
<style>
.clients {
li {
width: 4.5em;
margin: 0 .5em .5em 0;
padding: 0;
line-height: 1em;
list-style: none;
background-color: #ccc;
}
set -o vi
bindkey -v '\e[A' history-beginning-search-backward-end
bindkey -v '\e[B' history-beginning-search-forward-end
bindkey -v '\e.' insert-last-word
bindkey -v '^R' history-incremental-pattern-search-backward
bindkey -v '^S' history-incremental-pattern-search-forward
bindkey '^W' backward-kill-word
bindkey '^H' backward-delete-char
bindkey '^U' backward-kill-line
bindkey '^?' backward-delete-char
@psynaptic
psynaptic / breadcrump.twig
Created October 7, 2012 17:53 — forked from mortendk/breadcrump.twig
twig breadcrumbs
<nav class="breadcrumb" role="navigation">
<h2 class="element-invisible">{{ 'You are here'|t }}</h2>
<ol>
{% for item in breadcrumb %}
{% if loop.first %}
<li>{{ item }} » </li>
{% elseif loop.last %}
<li>{{ item }}</li>
{% else %}
<li>{{ item }} » </li>