Skip to content

Instantly share code, notes, and snippets.

View reinier's full-sized avatar
🔭
remote

Reinier Ladan reinier

🔭
remote
View GitHub Profile
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@reinier
reinier / dateTranslate.rb
Created February 24, 2019 20:11
Translate date plugin for Jekyll. Use as `{{ post.date | dutchDate }}`
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
<!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;
}
@reinier
reinier / wp-theme-development.md
Last active March 24, 2017 20:08
How I develop Wordpress themes

How I develop Wordpress themes

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:

WP-dev-box

@reinier
reinier / HalbeZijlstraMentaliteit.md
Created October 28, 2016 07:33
Uitleg over de HalbeZijlstraMentaliteit
@mixin mq($size) {
/* Desktop */
@if $size == "max" {
@media (min-width: 1200px) {
@content;
}
/* Landscape tablet and desktop small */
} @else if $size == "large" {
@reinier
reinier / set_responsive_class.js
Last active December 16, 2015 16:49
Set data attributes on body for responsive prototyping
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");
{
"require": {
"silex/silex": "1.0.*@dev"
}
}
@reinier
reinier / composer.json
Created February 6, 2013 16:11
Things to get controllers in a class
{
"require": {
"silex/silex": "1.0.*@dev"
}
}
@reinier
reinier / test.haml
Last active December 11, 2015 00:39
Tried some Markdown within Haml through CodeKit, because the latest update says "Markdown syntax is now fully supported in Haml files". But this doesn't work. Anyone knows how Markdown is supported in Haml through CodeKit?
!!! 5
%html{ :xmlns => "http://www.w3.org/1999/xhtml", :lang => "en", "xml:lang" => "en"}
%head
%title Sample Haml
%body
#example_header
:markdown
This is [Haml](http://en.wikipedia.org/wiki/Haml) with [Markdown](http://daringfireball.net/projects/markdown/)