A Pen by Tiffany Brown on CodePen.
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
<?php | |
/* | |
* Designed to be used on the command line. | |
* php genpass.php [arg1] [arg2] ... | |
* Accepts up to three parameters: | |
* --length or -l = length of the password | |
* --specialchars or -s = whether to include punctuation in generating the password | |
* --unique or -u = whether to prevent repeated characters in a string | |
* | |
*/ |
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
# BEGIN WordPress | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^/$ /content/ [L] | |
RewriteRule ^(.*)$ /content/$1 [L] | |
</IfModule> | |
# END WordPress |
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
/* | |
CSSOM View[1] initially defined addListener() and removeListener() methods for the | |
MediaQueryList interface (the object type returned by matchMedia()). Later, the | |
spec changed and now MediaQueryList uses addEventListener/removeEventListener | |
and MediaQueryList is really a change event in disguise. | |
Chrome and Opera have made this change. Other browsers are still working on it. | |
This code snippet makes it possible to use addEventListener/removeEventListener | |
in (almost) every browser (the usual caveats about browser support apply). |
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
// See current support chart http://caniuse.com/#feat=multicolumn | |
/* | |
Column mixins by Tiffany Brown (@webinista / webinista.com) | |
Public domain licensed, because, really who couldn't come up with this on their own? | |
It's not required, but I'd appreciate you letting me know if you found these useful :-). | |
*/ | |
@mixin column-count($value) { | |
-moz-column-count: $value; |
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
<h1>Using <code>input[type=range]</code> to create toggles</h1> | |
<p> | |
<input type="range" value="0" min="0" max="1" step="1"> | |
</p> |
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
:focus::-webkit-input-placeholder{ | |
color: transparent; | |
} | |
:focus::-moz-placeholder { | |
color: transparent; | |
} | |
:focus:-ms-input-placeholder { | |
color: transparent; |
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 has3d(){ | |
var el = document.createElement('p'), t, has3d, | |
transforms = { | |
'WebkitTransform':'-webkit-transform', | |
'OTransform':'-o-transform', | |
'MSTransform':'-ms-transform', | |
'MozTransform':'-moz-transform', | |
'transform':'transform' | |
}; |
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> | |
<html lang="en-us"> | |
<head> | |
<meta charset="UTF-8"> | |
<title><datalist in actino></title> | |
<link rel="stylesheet" href="s.css" media="screen"> | |
<style media="screen"> | |
p{ | |
font: bold 100% / 1.5 sans-serif; | |
} |