Simple Sticky Header
A Pen by austinicomedez on CodePen.
Simple Sticky Header
A Pen by austinicomedez on CodePen.
<?php | |
/** | |
* WordPress Query Comprehensive Reference | |
* Compiled by luetkemj - luetkemj.com | |
* | |
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query | |
* Source: http://core.trac.wordpress.org/browser/tags/3.5.1/wp-includes/query.php | |
*/ | |
$args = array( |
<link rel="shortcut icon" href="/images/favicons/favicon.ico" /> | |
<link rel="apple-touch-icon" sizes="57x57" href="/images/favicons/apple-touch-icon-57x57.png"> | |
<link rel="apple-touch-icon" sizes="114x114" href="/images/favicons/apple-touch-icon-114x114.png"> | |
<link rel="apple-touch-icon" sizes="72x72" href="/images/favicons/apple-touch-icon-72x72.png"> | |
<link rel="apple-touch-icon" sizes="60x60" href="/images/favicons/apple-touch-icon-60x60.png"> | |
<link rel="apple-touch-icon" sizes="120x120" href="/images/favicons/apple-touch-icon-120x120.png"> | |
<link rel="apple-touch-icon" sizes="76x76" href="/images/favicons/apple-touch-icon-76x76.png"> | |
<link rel="apple-touch-icon" sizes="152x152" href="/images/favicons/apple-touch-icon-152x152.png"> | |
<link rel="icon" type="image/png" href="/images/favicons/favicon-196x196.png" sizes="196x196"> | |
<link rel="icon" type="image/png" href="/images/favicons/favicon-160x160.png" sizes="160x160"> |
<select> | |
<option value="AF">Afghanistan</option> | |
<option value="AX">Åland Islands</option> | |
<option value="AL">Albania</option> | |
<option value="DZ">Algeria</option> | |
<option value="AS">American Samoa</option> | |
<option value="AD">Andorra</option> | |
<option value="AO">Angola</option> | |
<option value="AI">Anguilla</option> | |
<option value="AQ">Antarctica</option> |
Here is a list of scopes to use in Sublime Text 2 snippets - | |
ActionScript: source.actionscript.2 | |
AppleScript: source.applescript | |
ASP: source.asp | |
Batch FIle: source.dosbatch | |
C#: source.cs | |
C++: source.c++ | |
Clojure: source.clojure | |
CoffeeScript: source.coffee |
<?php | |
/* | |
|------------------------------------------ | |
| Disable Auto Dual Optin Popup form | |
|------------------------------------------ | |
| | |
| disable pop-up opt-in if Page Dual Opt-in -> Disable dual opt-in pop-up is == Yes | |
| for pages only. | |
| | |
| @for hawkgroupmedia-dev |
#!/bin/bash | |
DATE=$(date "+%Y%m%d%H%M%S") | |
DBUSER=$1 | |
DBPASS=$2 | |
DBNAME=$3 | |
mysqldump -u $DBUSER --password=$DBPASS $DBNAME | gzip > /path/to/dump/$DBNAME$DATE.sql.gz |
/** | |
* conver string to hastag | |
* @param string $string string you want to convert | |
* @param boolean $with_hashtag if false, it won't return the # sign | |
* @return string Eureka! you got your #hashtag! | |
*/ | |
function stringToHashtag($string, $with_hashtag = true) | |
{ | |
$_string = str_replace(' ', '', $string); | |
$_out = preg_replace('/[^a-zA-Z]/', '', strtolower($_string)); |
$(document).ready(function(){ | |
$('.events__deck > img').each(function(){ | |
$(this).on('load', function(){ | |
var w = $(this).prop("naturalWidth"); | |
var h = $(this).prop("naturalHeight"); | |
var ex = 0.10; | |
// expand images | |
w += w * ex; | |
h += h * ex; |
# root
php artisan cache:clear
php -i | grep USER
chown -R www-data:www-data storage