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 | |
// DISABLE YOAST's AUTOMATIC PINGING OF XML SITEMAP | |
add_filter('wpseo_allow_xml_sitemap_ping', '__return_false'); | |
?> |
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
AK, Alaska | |
AL, Alabama | |
AR, Arkansas | |
AS, American Samoa | |
AZ, Arizona | |
CA, California | |
CO, Colorado | |
CT, Connecticut | |
DC, District of Columbia | |
DE, Delaware |
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
Show hidden characters
// UPDATED VERSION | |
{ | |
"filename_filter": "(/|\\\\|^)(?!_)(\\w+)\\.(css|js|sass|less|scss)$", | |
"build_on_save": 1 | |
} | |
// DEFAULT (for reference, in case you need it back) | |
{ | |
"filename_filter": "\\.(css|js|sass|less|scss)$", | |
"build_on_save": 1 |
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
// REQUIRED: Include "jQuery Query Parser" plugin here or before this point: | |
// https://github.com/mattsnider/jquery-plugin-query-parser | |
$(document).ready(function(){ | |
// BOOTSTRAP 3.0 - Open YouTube Video Dynamicaly in Modal Window | |
// Modal Window for dynamically opening videos | |
$('a[href^="http://www.youtube.com"]').on('click', function(e){ | |
// Store the query string variables and values | |
// Uses "jQuery Query Parser" plugin, to allow for various URL formats (could have extra parameters) |
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
// Add to application in appDelegate.m to log all font names as you would use them in CSS | |
for (NSString* family in [UIFont familyNames]) | |
{ | |
NSLog(@"%@", family); | |
for (NSString* name in [UIFont fontNamesForFamilyName: family]) | |
{ | |
NSLog(@" %@", name); | |
} | |
} |
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
private int _jointHealth; | |
public int startingJointHealth = 2; | |
// The setter here helps by making sure our health never goes below zero. | |
private int JointHealth { | |
get { return _jointHealth; } | |
set { _jointHealth = Mathf.Max(value, 0); } | |
} | |
void Reset(){ | |
JointHealth = startingJointHealth; | |
} |
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
void OnDrawGizmos (){ | |
// In Editor | |
if (!Application.isPlaying){ | |
// Draw custom gizmo | |
Gizmos.DrawIcon(transform.position, "spawn_gizmo.png", true); | |
// Draw yellow box at size of character, for easier placement in level | |
Gizmos.color = Color.yellow; | |
Gizmos.DrawWireCube(transform.position, new Vector3(0.8f, 2.0f, 0.8f)); | |
} | |
} |
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
[Header("Movement and Speeds")] | |
[Tooltip("Player speeds, etc")] | |
public Movement movement; | |
[Tooltip("Determines maximum jog over time until timeToMaxJog (1.0 is max on curve)")] | |
public AnimationCurve rampToFullJog = new AnimationCurve(new Keyframe(0,0.1f),new Keyframe(1,1)); | |
[Tooltip("Time in seconds before maximum jog speed is reached")] | |
public float timeToMaxJog = 2.0f; |
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
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="AK">Alaska</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="AL">Alabama</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="AR">Arkansas</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="AZ">Arizona</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="CA">California</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="CO">Colorado</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="CT">Connecticut</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="DC">District Of Columbia</label></div> | |
<div class="checkbox"><label><input name="regionStates[]" type="checkbox" value="DE">Delaware</label></div> | |
<div class="checkbox"><label><input nam |