Skip to content

Instantly share code, notes, and snippets.

<!-- This works: -->
<div class="cardset">
<div class="card"></div>
<div class="card"></div>
</div>
<style>
.card {
lost-column: 1/2;
}
@stefthoen
stefthoen / .htaccess
Created August 18, 2014 13:43
HTTPS redirect on Webfaction
Options +FollowSymLinks
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
@stefthoen
stefthoen / composer.json
Created August 18, 2014 07:13
Voorbeeld composer.json
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "http://roots.io/wordpress-stack/",
"authors": [
{
"name": "Scott Walkinshaw",
"email": "[email protected]",

Normal mode

  • ^W + ^= Make split windows equal size.
  • @: Repeat the last Ex command.
  • gv Select last visual select.
  • = Auto-indent.
  • =G Auto-indent to the end of the file.
  • =i} Auto-indent inside de bracket.
  • s Deletes the character and enters Insert mode.
  • f Searches for character in line. ; searches for next instance, , searches for previous instance.
  • * Searches for all occurrences of word that's under the cursor.
@stefthoen
stefthoen / pp.yml
Last active August 29, 2015 14:03
Tmuxinator yml for WordPress website
# ~/.tmuxinator/pp.yml
name: pp
root: ~/Sites/paprikapatterns/web/app/themes/paprikapatterns/
windows:
- theme:
layout: 15b0,204x46,0,0[204x40,0,0,0,204x5,0,41{102x5,0,41,3,50x5,103,41,4,50x5,154,41,6}]
panes:
# TODO:
# - Maximize and restore a pane with Up-arrow and Down-arrow
# - Fix probleem met lijnregels als je kopieert uit Vim
# Set new leader
unbind C-b
set -g prefix C-a
# Set index of window and pane
set -g base-index 1
// Breakpoints
%breakpoint-half {
@media only screen and ($media-type: $media-tablet-portrait) { @include grid(24, .5); }
}
%breakpoint-one-third {
@media only screen and ($media-type: $media-tablet-portrait) { @include grid(16, .5); }
}
var gulp = require("gulp");
var gulpLoadPlugins = require("gulp-load-plugins");
var plugins = gulpLoadPlugins();
var browserSync = require("browser-sync");
// Set paths for tasks
var paths = {
scss: ['_/scss/*.scss', '_/scss/**/*.scss'],
js: ['_/js-src/*.js'],
svg: ['_/img-src/icons/*'],

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

/*
* TODO:
* Banner
* Grunt icon
*/
var gulp = require('gulp'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
sass = require('gulp-ruby-sass'),