Skip to content

Instantly share code, notes, and snippets.

// 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); }
}
# 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
@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:

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 / 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]",
@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>
<!-- This works: -->
<div class="cardset">
<div class="card"></div>
<div class="card"></div>
</div>
<style>
.card {
lost-column: 1/2;
}
@stefthoen
stefthoen / lost-grid.html
Last active March 2, 2017 12:53
Lost Grid can't deal with columns of different sizes.
<!-- Problem is that the first div with the .half class will float to the right. Is there
some way that I can make sure that the div with the .full class will take up the whole
row and the first div with the .half class will float left? -->
<style>
.container {
lost-utility: clearfix;
}
.full {
lost-column: 1;
<?php
namespace CoenJacobs\StefExample\PostTypes;
abstract class AbstractType {
public function setup() {
// possibly some setup logic here?
}
public function register() {
@stefthoen
stefthoen / grid.scss
Created May 22, 2018 16:56
SCSS Grid
/*------------------------------------*\
#COMPONENTS-GRID
\*------------------------------------*/
.c-grid {
position: relative;
width: 100%;
display: grid;
grid-column-gap: $space-default;