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
<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
// See current support chart http://caniuse.com/#search=flexbox | |
/* | |
Flexbox mixins | |
Public Domain. | |
Latest syntax only. | |
*/ | |
@mixin display-flex { | |
display: -webkit-flex; |
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 will create a proxy server in whatever your availability zone your VPC is in. For me, that's us-east-1b
. For you, that may be something different. Steps 10+ should more or less work regardless of your provider since those steps cover the setup and configuration of TinyProxy.
- Click the Launch Instance button.
- Choose Ubuntu Server 14.04 LTS (HVM), SSD Volume Type. This isn't strictly necessary. If you choose another OS, check its documentation for how to install new packages.
- On the Choose an Instance Type screen, select t2.micro. It's Free Tier eligible.
- Click the Next: ... buttons until you reach the Configure Security Group screen.
- You may wish to reduce the amount of storage on the Add Storage screen. This is optional.
- You may wish to add a tag on the Tag Instance screen. This is also optional.
- On the Configure Security Group screen:
- Select Create a new security group.
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 | |
global $alpha_chunks; | |
# Initialize array | |
$alpha_chunks = array(); | |
function chunkNames(&$value, $key, $letter) { | |
global $alpha_chunks; |
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
# 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
<?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 | |
* | |
*/ |