View the [source of this content](http://github.github.com/github-flavored-markdown/sample_content.html).
| <!DOCTYPE html> | |
| <html lang="en-US"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="robots" content="noodp, noydir" /> | |
| <link rel="dns-prefetch" href="//cdnjs.cloudflare.com"> | |
| <link rel="canonical" href="http://mysite.com/" /> | |
| <link rel="stylesheet" href="http://mysite.com/style.css" type="text/css" /> |
Without wasting much time, Let us get started!
Follow these simple instructions:
-
Step 1: Login into your WHM panel and using
easyapacheenableMemcache -
Step 2: SSH into your server and fire this command
yum install memcached.x86_64 php-pecl-memcache.x86_64
| #!/usr/bin/env bash | |
| # Generate a pseudo UUID | |
| uuid() | |
| { | |
| local N B C='89ab' | |
| for (( N=0; N < 16; ++N )) | |
| do | |
| B=$(( $RANDOM%256 )) |
| /* external links | |
| a.external | |
| background: url('../images/external_link.png') no-repeat right 0px |
Pure SASS-adaption of Lea Verou's contrast-ratio javascript. Can be useful when eg. generating colored buttons from a single supplied color as you can then check which out of a couple of text colors would give the best contrast.
This script currently lacks the support for alpha-transparency that Lea supports in her script though.
In addition to the color-contrast adaption there's also some math methods that were needed to be able to calculate the exponent of a number and especially so when the exponent is a decimal number. A 2.4 exponent is used to calculate the luminance of a color and calculating such a thing is not something that SASS supports out of the box and not something I found a good pure-SASS script for calculating and I much prefer pure-SASS over ruby extensions. The math methods might perhaps be unecessary though if you're running Compass or similar as they may provide compatible math methods themselves.
Normal usage: `color: pick_best_color(#f00
| <?php | |
| add_filter( 'get_user_option_admin_color', function( $color_scheme ) { | |
| global $_wp_admin_css_colors; | |
| if ( ! isset( $_wp_admin_css_colors[ $color_scheme ] ) ) { | |
| $color_scheme = 'ectoplasm'; | |
| } |
Internal Bash functions, useful when writing loadable builtins
- Find an environment variable
- Set an environment variable to a string value
- Set an environment variable to a string value if it's not already set
- Check if an environment variable is set
- Check if an environment variable is an array
- Get an environment variable that's an array
- Unset an environment variable
- Create an array
| // -------------------------------------------------------------------------------------- | |
| // A More Modern Scale for Web Typography | |
| // Based on this article: http://typecast.com/blog/a-more-modern-scale-for-web-typography | |
| // -------------------------------------------------------------------------------------- | |
| $body-font-size: 1em !default; | |
| // Adjusts body typography to be default | |
| // for each browser. | |
| @mixin reset-body-font-size($font-size: 100%, $size-adjustment: 0.5) { |
| // ---- | |
| // Sass (v3.3.0.rc.2) | |
| // Compass (v1.0.0.alpha.17) | |
| // ---- | |
| // | |
| // map-fetch($map, $keys) | |
| // | |
| // An easy way to fetch a deep value in a multi-level map. Works much like | |
| // map-get() except that you pass multiple keys as the second parameter to |