-
get Google Maps API key as per https://www.advancedcustomfields.com/resources/google-map/ and add to top of hooks.php -
setup integration of Contact Form 7 with recaptcha, see https://contactform7.com/recaptcha/
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 class="title">Hover over the cards</h1> | |
<div id="app" class="container"> | |
<card data-image="https://images.unsplash.com/photo-1479660656269-197ebb83b540?dpr=2&auto=compress,format&fit=crop&w=1199&h=798&q=80&cs=tinysrgb&crop="> | |
<h1 slot="header">Canyons</h1> | |
<p slot="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</p> | |
</card> | |
<card data-image="https://images.unsplash.com/photo-1479659929431-4342107adfc1?dpr=2&auto=compress,format&fit=crop&w=1199&h=799&q=80&cs=tinysrgb&crop="> | |
<h1 slot="header">Beaches</h1> | |
<p slot="content">Lorem ipsum dolor sit amet, consectetur adipisicing elit.</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
# ============================================================================= | |
# An Entity in the world. | |
# ============================================================================= | |
Entity = -> | |
@x = 0 | |
@speed = 2 | |
# units/s | |
@position_buffer = [] | |
return |
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
using BeardedManStudios.Forge.Networking.Generated; | |
using KinematicCharacterController; | |
using UnityEngine; | |
public class PlayerCapsule : PlayerCapsuleBehavior | |
{ | |
public float speed = 10f; | |
public KinematicCharacterMotor motor; | |
public PlayerCapsuleController controller; | |
public KinematicCharacterMotorState state; |
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
### Keybase proof | |
I hereby claim: | |
* I am youdaman on github. | |
* I am youdaman (https://keybase.io/youdaman) on keybase. | |
* I have a public key ASDGYBqFNDWV8e2jq4TYXdnB4ziSqE4NMN7ZZ22PW0R0xwo | |
To claim this, I am signing this object: |
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
console.log("testing") |
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
UPDATE wp_options SET option_value = replace(option_value, 'old', 'new') WHERE option_name = 'home' OR option_name = 'siteurl'; | |
UPDATE wp_posts SET guid = replace(guid, 'old','new'); | |
UPDATE wp_posts SET post_content = replace(post_content, 'old', 'new'); |
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_action( 'admin_footer-post-new.php', 'html5_validation' ); | |
add_action( 'admin_footer-post.php', 'html5_validation' ); | |
function html5_validation() { ?> | |
<script type="text/javascript"> | |
jQuery('#title').attr('required',true); | |
jQuery('#save-post').add('#publish').on('click', function(){ | |
if (jQuery(':invalid').length) { | |
var invalid = jQuery(':invalid').first(); | |
var label = jQuery('label[for=' + jQuery(invalid).attr('id') + ']'); | |
var div = jQuery(label).parents('div:eq(0)'); |
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
class Batman.CouchStorage extends Batman.RestStorage | |
Batman.URI.queryFromParams = (data) -> | |
object = JSON.parse(data) | |
for property of object | |
data = JSON.stringify(object[property]) | |
return data | |
@PostBodyContentType = 'application/json' | |
serializeAsForm: false | |