Skip to content

Instantly share code, notes, and snippets.

View jelmerdemaat's full-sized avatar

Jelmer jelmerdemaat

View GitHub Profile
@jelmerdemaat
jelmerdemaat / SassMeister-input-HTML.html
Created January 29, 2014 19:42
Generated by SassMeister.com.
<time>29<sup>th</sup> of January</time>
<p>Without Compass is significantly faster.</p>
@jelmerdemaat
jelmerdemaat / .bashrc
Last active August 29, 2015 14:03
Useful Terminal aliases
# Move around quicker
alias ..="cd .."
# Show pretty file list using `list`
alias list="ls --color=always -s -h -g --sort=extension"
# Useful application shortcuts
alias chrome="google-chrome"
Here I stand head in hand
Turn my face to the wall
If she's gone I can't go on
Feeling two-foot small
Everywhere people stare
Each and every day
I can see them laugh at me
And I hear them say
@jelmerdemaat
jelmerdemaat / bookmarklet.htm
Last active August 29, 2015 14:05
A simple bookmarklet to test the current page in Google PageSpeed.
<a href="javascript:(function(){window.open('//developers.google.com/speed/pagespeed/insights/?url='+window.location);})()">
Check page in Google PageSpeed
</a>
# Block the WordPress include-only files.
# Source: http://codex.wordpress.org/Hardening_WordPress#Securing_wp-includes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^wp-admin/includes/ - [F,L]
RewriteRule !^wp-includes/ - [S=3]
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
@jelmerdemaat
jelmerdemaat / .gitignore
Last active August 29, 2015 14:06
Basic .gitignore rules for node/sass project
# Exclude build folders
dist/
build/
app/
# Exclude node modules
node_modules/
# Exclude sass cache files
.sass-cache/
@jelmerdemaat
jelmerdemaat / sftp-config.json
Created September 23, 2014 14:09
Additional sftp-config ignore regexes gulp + sass project
"/node_modules/",
"/.sass-cache/",
"\\.sassc",
"\\.scssc",
"\\.log"
@jelmerdemaat
jelmerdemaat / gist:3806746
Created September 30, 2012 13:35
HTML: Small HTML5 starter template
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>A title</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
<header>
@jelmerdemaat
jelmerdemaat / dabblet.css
Created October 6, 2012 20:30
How to do a continuous animation
/**
* How to do a continuous animation
*/
div{
width: 300px;
height: 300px;
background: yellow;
animation-duration: 4s;
@jelmerdemaat
jelmerdemaat / dabblet.css
Created October 6, 2012 20:33
FLOATS, WHY U NO WORK?
/**
* FLOATS, WHY U NO WORK?
*/
div{
float:left;
width: 33.3333%
}
div:last-child{
float:right;