Skip to content

Instantly share code, notes, and snippets.

View PuddingNL's full-sized avatar

Jeroen Bijl PuddingNL

View GitHub Profile
@PuddingNL
PuddingNL / addWidget.php
Last active April 21, 2022 14:19 — forked from tiffyzsmile/addWidget.php
WordPress: Snippets
How to add a widget area to your theme.
<div id="sidebar">
<ul>
<?php if (!function_exists('dynamic_sidebar') || !dynamic_sidebar()) : ?>
<li><!-- stuff shown here in case no widgets active --></li>
<?php endif; ?>
</ul>
</div>
@PuddingNL
PuddingNL / hack.sh
Last active April 21, 2022 14:19 — forked from erikh/hack.sh
MAC: Terminal hacks
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@PuddingNL
PuddingNL / index.html
Created November 14, 2012 20:42
[HTML] Starter Template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<!-- Stylesheets -->
<link rel="stylesheet" type="text/css" href="style/reset.css">
<link rel="stylesheet" type="text/css" href="style/style.css" media="screen">
<!-- JavaScript -->
@PuddingNL
PuddingNL / default_html5
Created November 15, 2012 14:52 — forked from AvanKempen/default_html5
[HTML] HTML5 Starter Template
<!DOCTYPE html>
<html lang=en>
<head>
<title></title>
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="css/style.css" />
<!--[if IE]>
<link rel="stylesheet" href="css/ie.css" type="text/css" media="screen, projection" />
@PuddingNL
PuddingNL / [CSS] Normalize.css
Last active April 21, 2022 14:19
[CSS] Normalize
/*! normalize.css v2.1.3 | MIT License | git.io/normalize */
/* ==========================================================================
HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined in IE 8/9.
*/
@PuddingNL
PuddingNL / [CSS] InfoBoxes.css
Last active April 21, 2022 14:19
[CSS] Info boxes
.info, .success, .warning, .error, .validation {
border: 1px solid;
margin: 10px 0px;
padding:15px 10px 15px 50px;
background-repeat: no-repeat;
background-position: 10px center;
}
.info {
color: #00529B;
background-color: #BDE5F8;
@PuddingNL
PuddingNL / _mixins
Last active April 21, 2022 14:19
[SASS] Mixins
/*
* Author: David Walsh
* Source: http://css-tricks.com/redesigning-with-sass/
*/
@mixin vendorize($property, $value) {
-webkit-#{$property}: $value;
-moz-#{$property}: $value;
-ms-#{$property}: $value;
-o-#{$property}: $value;
@PuddingNL
PuddingNL / gist:f309a3727abdba852359
Created February 18, 2015 15:25
CodeSniffer Bookmarker
javascript:(function() {var _p='http://squizlabs.github.com/HTML_CodeSniffer/build/';var _i=function(s,cb) {var sc=document.createElement('script');sc.onload = function() {sc.onload = null;sc.onreadystatechange = null;cb.call(this);};sc.onreadystatechange = function(){if(/^(complete|loaded)$/.test(this.readyState) === true){sc.onreadystatechange = null;sc.onload();}};sc.src=s;if (document.head) {document.head.appendChild(sc);} else {document.getElementsByTagName('head')[0].appendChild(sc);}}; var options={path:_p};_i(_p+'HTMLCS.js',function(){HTMLCSAuditor.run('WCAG2AA',null,options);});})();
@PuddingNL
PuddingNL / [CSS] Structural CSS
Created March 27, 2015 10:00
[CSS] Structural CSS
/**
* Author: <AUTHOR>
* Name: <FILENAME>
* Description: <DESCRIPTION>
*
* ============================================
*
* CONTENT:
* --------------------------------------------
* CH01 - Resets
@PuddingNL
PuddingNL / [SASS] String Replace
Created June 7, 2016 07:22
String replace in sass
/**
* Replace `$search` with `$replace` in `$string`
* @author Hugo Giraudel
* @param {String} $string - Initial string
* @param {String} $search - Substring to replace
* @param {String} $replace ('') - New value
* @return {String} - Updated string
*/
@function str-replace($string, $search, $replace: '') {