A Pen by Steve Halford on CodePen.
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
Check files inside this gist |
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
<section class="container"> | |
<h1 class="title"> | |
<span>Hi, I am </span> | |
<span>Ishantha</span> | |
<span>Udara</span> | |
</h1> | |
<h2 class="title"> | |
<span>Thank You</span> | |
<span>for</span> |
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="container"> | |
<svg viewBox="0 0 1500 300"> | |
<symbol id="s-text"> | |
<text text-anchor="middle" x="50%" y="80%">ishantha udara</text> | |
</symbol> | |
<g class = "g-ants"> | |
<use xlink:href="#s-text" class="text-copy"></use> | |
<use xlink:href="#s-text" class="text-copy"></use> | |
<use xlink:href="#s-text" class="text-copy"></use> |
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
- const text = 'Hello' | |
.stage | |
.wrapper | |
.slash | |
.sides | |
.side | |
.side | |
.side | |
.side |
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
To determine the number of "likes," change the first line where j < 9 to whatever number you're aiming for. Very helpful when following a hashtag or after searching for a particular term. | |
for(var j = 1; j < 9; j++) { | |
for (const d of document.querySelectorAll('div[data-testid="like"]')) { | |
d.scrollIntoView(true); | |
d.click() | |
}} | |
If you are trying to 'unlike' instead of 'like' just change line 2: |
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 custom sorting options (asc/desc) | |
*/ | |
add_filter( 'woocommerce_get_catalog_ordering_args', 'custom_woocommerce_get_catalog_ordering_args' ); | |
function custom_woocommerce_get_catalog_ordering_args( $args ) { | |
$orderby_value = isset( $_GET['orderby'] ) ? wc_clean( $_GET['orderby'] ) : apply_filters( 'woocommerce_default_catalog_orderby', get_option( 'woocommerce_default_catalog_orderby' ) ); | |
if ( 'random_list' == $orderby_value ) { | |
$args['orderby'] = 'rand'; | |
$args['order'] = ''; | |
$args['meta_key'] = ''; |
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
<p> | |
We accept: | |
</p> | |
<div class="payment-methods"> | |
<img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/stockie/mastercard.svg" alt=""> | |
<img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/stockie/visa.svg" alt=""> | |
<img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/stockie/paypal.svg" alt=""> | |
<img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/stockie/amazon.svg" alt=""> | |
<img src="https://colabrio.ams3.cdn.digitaloceanspaces.com/stockie/jcb.svg" alt=""> | |
</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
I agree that autoclosing brackets can be tricky, but not that it should be removed entirely. | |
Here's how you can set it in frontend config with the current code: | |
# Run this in Python once, it should take effect permanently | |
from notebook.services.config import ConfigManager | |
c = ConfigManager() | |
c.update('notebook', {"CodeCell": {"cm_config": {"autoCloseBrackets": False}}}) | |
To restore the default, do the same with None in place of 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
References: https://gist.github.com/noelboss/3fe13927025b89757f8fb12e9066f2fa | |
More info: https://www.digitalocean.com/community/tutorials/how-to-use-git-hooks-to-automate-development-and-deployment-tasks | |
https://www.youtube.com/watch?v=6mYtJu0E47U | |
[misc commands deluser newuser] | |
The following steps is for Developers to push their code from their local machine, to their server with git, and let git auto | |
pull the update to your remote folder. How it works: | |
- From your local machine, you do your normal coding. When done, you push your new code to git | |
- Git then updates your local machine, and push it to your server's git | |
- Git on your server gets the new update, and push it to your server's working folder |
NewerOlder