- Open Automator
- Create a new document
- Select Quick Action
- Set “Service receives selected” to
files or folders
inany application
- Add a
Run Shell Script
action- your default shell should already be selected, otherwise use
/bin/zsh
for macOS 10.15 (”Catalina”) or later - older versions of macOS use
/bin/bash
- your default shell should already be selected, otherwise use
- if you're using something else, you probably know what to do 😉
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
@mixin scrimGradient($startColor: $color-black, $direction: 'to bottom') { | |
$scrimCoordinates: (0: 1, | |
19: 0.738, | |
34: 0.541, | |
47: 0.382, | |
56.5: 0.278, | |
65: 0.194, | |
73: 0.126, | |
80.2: 0.075, |
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
.widget{ | |
// Links widget | |
&_links{ | |
ul{ | |
} | |
li{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Google Fonts Preview</title> | |
<style> | |
#preview { | |
margin: 0 auto; | |
text-align: center; | |
width: 80%; | |
} |
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 | |
/////////////////////////////// | |
// HOW TO SANITIZE RADIO BOX // | |
/////////////////////////////// | |
function theme_slug_customizer($wp_customize) { | |
//your section | |
$wp_customize->add_section( | |
'theme_slug_customizer_your_section', | |
array( | |
'title' => esc_html__('Your Section', 'theme_slug'), |
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
/** | |
* Checking if an image exist in your image folder | |
*/ | |
let loadImage = function(variable){ | |
var image = new Image(); | |
var url_image = './ImageFolder/' + variable + '.jpg'; | |
image.src = url_image; | |
if (image.width == 0) { | |
return `<img src='./ImageFolder/defaultImage.jpg'>`; | |
} else { |
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
{ | |
"AED": "United Arab Emirates Dirham", | |
"AFN": "Afghan Afghani", | |
"ALL": "Albanian Lek", | |
"AMD": "Armenian Dram", | |
"ANG": "Netherlands Antillean Guilder", | |
"AOA": "Angolan Kwanza", | |
"ARS": "Argentine Peso", | |
"AUD": "Australian Dollar", | |
"AWG": "Aruban Florin", |
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
/*Contact form 7 remove span*/ | |
add_filter('wpcf7_form_elements', function($content) { | |
$content = preg_replace('/<(span).*?class="\s*(?:.*\s)?wpcf7-form-control-wrap(?:\s[^"]+)?\s*"[^\>]*>(.*)<\/\1>/i', '\2', $content); | |
$content = str_replace('<br />', '', $content); | |
return $content; | |
}); |
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
<!doctype html> | |
<html><head><script src="app.js"></script></head><body></body></html> |
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
// Create an image | |
const image = new Image(); // or document.createElement('img' ); | |
// Create texture | |
var texture = new THREE.Texture(image); | |
// On image load, update texture | |
image.onload = () => { texture.needsUpdate = true }; | |
// Set image source | |
image.src = 'data:image/png;base64,XXXXX'; |
NewerOlder