Skip to content

Instantly share code, notes, and snippets.

View pbroschwitz's full-sized avatar

Peter Broschwitz pbroschwitz

View GitHub Profile
@pbroschwitz
pbroschwitz / dabblet.css
Created June 20, 2014 14:52 — forked from LeaVerou/dabblet.css
Test for rebeccapurple, honoring Eric Meyer’s Daughter, Rebecca.
/**
* Test for rebeccapurple, honoring Eric Meyer’s Daughter, Rebecca.
* Currently works in WebKit nightlies, other implementations soon to follow.
*/
background: red;
background: rebeccapurple;
display: flex;

Local SSL websites on Mac OSX

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on Mac OSX Yosemite.


Configuring Apache

@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;
}