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
// http://eslint.org/docs/user-guide/configuring | |
module.exports = { | |
root: true, | |
parser: 'babel-eslint', | |
parserOptions: { | |
sourceType: 'module' | |
}, | |
env: { | |
browser: true, |
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
# Directives to send expires headers and turn off 404 error logging. | |
location ~* \.(js|css|png|jpe?g|gif|ico)$ { | |
expires 24h; | |
log_not_found off; | |
try_files $uri $uri/ @production; | |
} | |
location @production { | |
resolver 8.8.8.8; | |
proxy_pass https://YOURURLHERE/$uri; |
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
# VVV Nginx Configuration | |
# oxocode | |
# - Uses proper domain.com extension for verifying | |
# third party APIs are loading / ads are being served. | |
# - Allows access to localhost via mobile | |
# - Uses xip.io for testing RWD via mobile | |
# | |
# Assumptions: These rules assume that your | |
# development site was created in 'local.domain.com' | |
# within your vagrant public root |
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
/** | |
* ga.js - analytics adapter for google analytics | |
*/ | |
var events = require('./../../events'); | |
var utils = require('./../../utils'); | |
var CONSTANTS = require('./../../constants.json'); | |
var BID_TIMEOUT = CONSTANTS.EVENTS.BID_TIMEOUT; | |
var BID_WON = CONSTANTS.EVENTS.BID_WON; |
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 | |
$players = array( | |
'1B' => array( | |
'profile_data' => array( | |
'first_name' => 'Anthony', | |
'last_name' => 'Rizzo' | |
), | |
'stats' => array( | |
'avg' => .334, | |
'hr' => 25, |
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
<img src="http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-150x150.jpg" srcset="http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-300x200.jpg 300w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-768x512.jpg 768w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-1024x682.jpg 1024w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-465x310.jpg 465w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-670x446.jpg 670w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-230x153.jpg 230w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-440x293.jpg 440w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-145x97.jpg 145w, http://yeahkc.dev/wp-content/uploads/2016/09/517fde84-e2f5-36ae-af1e-c91daaa1ebc4-350x233.jpg 350w, http://yea |
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 mysite_is_mobile() | |
{ | |
$isMobile = preg_match("#(ipod|iphone|android|opera mini|blackberry|pre/|palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine|iris|3g_t|windows ce|opera mobi|windows ce; smartphone;|windows ce; iemobile)#i", $_SERVER['HTTP_USER_AGENT'] ); | |
return $isMobile == 1 ? true : false; | |
} | |
$batcache->unique['mobile'] = mysite_is_mobile(); |
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
<form> | |
First name:<br> | |
<input type="text" name="firstname"><br> | |
Last name:<br> | |
<input type="text" name="lastname"> | |
<input type="radio" name="gender" value="male" checked> Male<br> | |
<input type="radio" name="gender" value="female"> Female<br> | |
<input type="radio" name="gender" value="other"> Other | |
<input type="submit" value="Submit"> | |
</form> |
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
if ( ( isset( $_GET['utm_medium'] ) && $_GET['utm_medium'] == 'pc' ) || ( isset( $_SESSION['utm_medium'] ) && $_SESSION['utm_medium'] == 'pc' ) { | |
$my_div = '<div class="A">THIS IS A</div>'; | |
} else { | |
$my_div = '<div class="B">THIS IS B</div>'; | |
} | |
echo $my_div; |
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
wp migrate-abacus scrape_media_content --post_type=pehub-vc-journal --chunk=7000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=5000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=10000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=15000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=20000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=25000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=30000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-buyouts --chunk=5000 --offset=35000 | |
wp migrate-abacus scrape_media_content --post_type=pehub-digital-edition --chunk=150 |
NewerOlder