Als iemand zeurt over verandering zonder de voordelen van de betere toekomst te erkennen is een typisch voorbeeld van HalbeZijlstraMentaliteit. De oplossing die de HalbeZijlstraMentalist vaak aanhaalt is "het is beter als de verandering wordt uitgesmeerd over zo'n 8 jaar tijd".
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"global": { | |
"check_for_updates_on_startup": true, | |
"show_in_menu_bar": true, | |
"show_profile_name_in_menu_bar": false | |
}, | |
"profiles": [ | |
{ | |
"complex_modifications": { | |
"parameters": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
module DutchDates | |
MONTHS = {"01" => "januari", "02" => "februari", "03" => "maart", | |
"04" => "april", "05" => "mei", "06" => "juni", | |
"07" => "juli", "08" => "augustus", "09" => "september", | |
"10" => "oktober", "11" => "november", "12" => "december"} | |
# http://man7.org/linux/man-pages/man3/strftime.3.html | |
def dutchDate(date) | |
day = time(date).strftime("%e") # leading zero is replaced by a space |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>*|MC:SUBJECT|*</title> | |
<style type="text/css"> | |
body{ | |
font-size:18px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Functions for handy stuff | |
# Create a new directory and enter it. | |
# Example: `mkd new-dir` | |
function mkd() { | |
mkdir -p "$@" && cd "$@" | |
} | |
# Init a git repository and commit everything inside. | |
# Example: `initcommit` |
This is my process for developing themes for Wordpress at the moment. I've come to this process because I want to deliver a clean theme while using the power of Gulp for Sass parsing and code/image optimization.
Vagrant for running Wordpress
I don't like to flood my computer with all kinds of tools for different kinds of languages all the time. PHP is one of them that I don't want to think about. Vagrant is a great solution to this. Everything you need for your Wordpress (Like PHP, MySQL etc.) you can get in a Vagrant machine.
With the help of PuPHPet I've made this Vagrant setup for my Wordpress development:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install [homebrew](http://brew.sh) | |
# > ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
# | |
# Run this file: | |
# > brew bundle Brewfile | |
# | |
# To install sublime-text-3 for example: | |
# > brew tap caskroom/versions | |
# | |
# At the end, start Alfred, close it and run: |
All (well, most of it) the apps & tools I installed on my Mac from clean install until now
Install Homebrew (check website for latest install code)
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@mixin mq($size) { | |
/* Desktop */ | |
@if $size == "max" { | |
@media (min-width: 1200px) { | |
@content; | |
} | |
/* Landscape tablet and desktop small */ | |
} @else if $size == "large" { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function set_responsive_class(viewportwidth){ | |
/* Small phones */ | |
if (viewportwidth > 480) { | |
$("body").attr("data-viewport-bigger-than-mobile", "true"); | |
} | |
/* Big phones */ | |
if (viewportwidth > 767) { | |
$("body").attr("data-viewport-bigger-than-mobilelarge", "true"); |
NewerOlder