EDIT: this is an old post and a lof the information in this document is outdated.
Git is a popular free and open source distributed version control system.
I am new to Unity, but as a long time git user, I wanted to use git for my
#! /usr/bin/env python3 | |
""" | |
Setup ngrok for local development with WordPress when used with wp-env. Follows instructions from | |
https://ngrok.com/docs/using-ngrok-with/wordpress/ | |
Notes | |
----- |
/** | |
* Scroll to first invalid field | |
* WPCF7 on validation error event | |
*/ | |
document.addEventListener( 'wpcf7invalid', function( event ) { | |
setTimeout( function() { | |
$('html').stop().animate({ | |
scrollTop: $('.wpcf7-not-valid').eq(0).offset().top - 140, | |
}, 500, 'swing'); | |
}, 100); |
<?php | |
/** | |
* Change the Japanese subdirectory language code from ja to jp | |
* | |
* @param array $language_codes_map | |
* | |
* @return array | |
*/ | |
function akos_resch_wpml_subdirectory_language_code_ja_to_jp( $language_codes_map ) { |
/* | |
This .scss loop will create "margin helpers" and "padding helpers" for use in your web projects. | |
It will generate several classes such as: | |
.m-r-10 which gives margin-right 10 pixels. | |
.m-r-15 gives MARGIN to the RIGHT 15 pixels. | |
.m-t-15 gives MARGIN to the TOP 15 pixels and so on. | |
.p-b-5 gives PADDING to the BOTTOM of 5 pixels | |
.p-l-40 gives PADDING to the LEFT of 40 pixels |
EDIT: this is an old post and a lof the information in this document is outdated.
Git is a popular free and open source distributed version control system.
I am new to Unity, but as a long time git user, I wanted to use git for my
This is a simplified example of Smarter Link Underlines built for Sass rather than Stylus. Original code example by Adam Schwartz of eager.io.
View a live example on Codepen
<?php | |
/** | |
* Customise WordPress Vimeo oEmbed | |
* https://developer.vimeo.com/apis/oembed | |
*/ | |
function my_oembed_fetch_url( $provider, $url, $args ) { | |
if ( strpos( $provider, 'vimeo.com' ) !== false) { |
Ctrl+A
and Ctrl+C
)alt+click
on the mask icon/thumbnail)# Assuming an Ubuntu Docker image | |
$ docker run -it <image> /bin/bash |
<?php | |
/* this goes into your functions.php file: */ | |
function notld_link( $notld ) { | |
$notld = get_permalink(); | |
return str_replace( home_url(), "", $notld ); | |
} | |
// copy/paste code below where you want the url to appear: | |
?> |