Skip to content

Instantly share code, notes, and snippets.

View pbroschwitz's full-sized avatar

Peter Broschwitz pbroschwitz

View GitHub Profile
@pbroschwitz
pbroschwitz / gist:721821
Created November 30, 2010 15:22
wp-add_filter-example.php
/**
* Test lowercase
*/
function tolower_filter($text) {
return strtolower($text);
}
add_filter('the_content', 'tolower_filter');
/**
* Test more
@pbroschwitz
pbroschwitz / dabblet.css
Created January 4, 2012 17:48 — forked from LeaVerou/dabblet.css
Lined paper that follows the text
/**
* Lined paper that follows the text
* Support: Chrome, FF 3.6+, Saf 5.1+, Opera 11.50+, IE10
*/
/* Just decorative */
padding: 20px;
/* The font. Try changing font-size and see how the lines
@pbroschwitz
pbroschwitz / dabblet.css
Created January 5, 2012 00:49 — forked from LeaVerou/dabblet.css
box-shadow vs drop-shadow
/**
* box-shadow vs drop-shadow
* Webkit-only at the moment (Chrome Canary or Webkit nightlies)
*/
div {
position: relative;
width: 150px;
padding: 20px;
border: 5px dotted;
@pbroschwitz
pbroschwitz / .gitignore_cakephp
Created January 9, 2012 23:59 — forked from kogakure/.gitignore
.gitignore file collection
#
# Cake
#
tmp/*
app/tmp/*
!empty
@pbroschwitz
pbroschwitz / dabblet.css
Created February 15, 2012 17:31 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@pbroschwitz
pbroschwitz / dabblet.css
Created March 16, 2012 23:15 — forked from chriscoyier/dabblet.css
Ratings Stars
/*
Ratings Stars
(with as little code as possible)
*/
.rating {
unicode-bidi: bidi-override;
direction: rtl;
text-align: center;
}
.rating > span {
@pbroschwitz
pbroschwitz / dabblet.css
Created March 20, 2012 16:28 — forked from JoelBesada/dabblet.css
CSS States
/* CSS States */
body {
background: url(http://dabblet.com/img/noise.png);
background-color: #F5F2F0;
font-family: Georgia, serif;
font-size: 18px;
line-height: 1.6em;
text-shadow: 0 2px 0 white;
color: #222;
}
@pbroschwitz
pbroschwitz / addFbAppToTab.html
Created March 27, 2012 09:43
Facebook Application to Tab
<html>
<head>
<title>Add Facebook Application to Tab</title>
</head>
<body>
<form action="https://www.facebook.com/dialog/pagetab" method="get">
<p>Fill your application details and press Submit, a dialog will appear to choose which page to add the app to.</p>
<label for="app_id" title="You can find your APP_ID at https://developers.facebook.com/apps/">App ID</label>
<input id="app_id" name="app_id" size="18" type="text" />
@pbroschwitz
pbroschwitz / hack.sh
Created March 31, 2012 09:58 — forked from erikh/hack.sh
OSX For Hackers
#!/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
#
/* scss */
#nav {
li a {
color: maroon;
body.admin & { border-bottom: dotted 1px maroon; } // <-- Awesome-sauce right there
&:hover {
color: purple;
}