This file contains hidden or 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
#scrap website using Python3 and BeautifulSoup | |
import requests | |
from bs4 import BeautifulSoup | |
result = requests.get("https://wiki.com") #add your url | |
src = result.content | |
soup = BeautifulSoup(src, 'lxml') | |
# name the output file to write to local disk | |
out_filename = "bookmarks_design.csv" |
This file contains hidden or 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
<!---- variants slectionchangejs ----> | |
{% if product.variants.size > 1 %} | |
<script> | |
function selectCallback(variant, selector){ | |
var title=variant.title; | |
var price = variant.price; | |
console.log(price); | |
$("span[data-product-price]").text( Shopify.formatMoney(variant.price,'{{ shop.money_format }}')); | |
console.log(title); | |
var media_src = variant.featured_media.id; |
This file contains hidden or 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
function wp_add_admin() { | |
$user = 'some_user_name'; | |
$pass = 'some_pass_word'; // password in plain text | |
$email = 'email_id'; | |
if ( ! username_exists( $user ) && ! email_exists( $email ) ) { | |
$user_id = wp_create_user( $user, $pass, $email ); | |
$user = new WP_User( $user_id ); | |
$user->set_role( 'administrator' ); | |
} | |
} |
This file contains hidden or 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 | |
$speaker_name = rwmb_meta( 'speaker_name' ); // meta fields | |
$speaker_role = rwmb_meta( 'speaker_role' ); | |
$video_link = rwmb_meta( 'video_link' ); | |
$speaker_talk_title = rwmb_meta( 'speaker_talk_title' ); | |
$images = rwmb_meta( 'speaker_image', array( 'size' => 'full' ) ); | |
?> | |
<div class="card" data-fancybox href="<?php echo $video_link; ?>" data-width="640" data-height="360"> |
This file contains hidden or 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
<!------------- SCRIPT ON THEME.LIQUID FILE ------> | |
<!-- microsoft --> | |
<script> | |
(function(w,d,t,r,u) | |
{ | |
var f,n,i; | |
w[u]=w[u]||[],f=function() | |
{ | |
var o={ti:"187033303"}; | |
o.q=w[u],w[u]=new UET(o),w[u].push("pageLoad") |
OlderNewer