Skip to content

Instantly share code, notes, and snippets.

View basilkhan05's full-sized avatar
🏂
Learning new tricks

Basil Khan basilkhan05

🏂
Learning new tricks
View GitHub Profile
@basilkhan05
basilkhan05 / sb-2-bundles-itemized-packing-slip.liquid
Last active August 29, 2024 18:43
Itemized bundles packing slip for Simple Bundles 2.0 (Shopify app)
<div class="wrapper">
<div class="header">
<div class="shop-title">
<p class="to-uppercase">
{{ shop.name }}
</p>
</div>
<div class="order-title">
<p class="text-align-right">
Order {{ order.name }}
@basilkhan05
basilkhan05 / metabase-setup.md
Created October 27, 2022 18:48 — forked from r0lodex/metabase-setup.md
Metabase Setup

Installing and Setting Up Metabase with Postgres

This guide is written for installation of Metabase on Ubuntu 18.04. Instead of using H2 as the application database, we will be using Postgres. You can opt to use MySQL as well. Please follow the steps below:

  • Update and install Java with proper configuration
sudo apt-get update
@basilkhan05
basilkhan05 / vidyard-event-jump-to-video.html
Created September 12, 2018 14:57
Vidyard Event code snippet to jump to specific chapter in the player
<script type="text/javascript">
function jumpToVideo(chapter_index) {
API.closeCta({ disablePlay: true });
API.playChapter({ chapter_index: chapter_index });
}
</script>
<style type="text/css">
.vidyard-cta-holder {
background-color: white;
}
@basilkhan05
basilkhan05 / vy-progress-events.html
Created July 24, 2018 17:55
Vidyard Progress Events Example
<!-- Include scripts below Vidyard embed code (in this order) -->
<!-- Vidyard Api -->
<script src="//play.vidyard.com/v0/api.js"></script>
<!-- Vidyard Progress Events -->
<script type='text/javascript' src="//play.vidyard.com/v1/progress-events.js"></script>
<!-- Include custom scripts after all integration scripts -->
<script type='text/javascript'>
VidyardProgressEvents(function(result) {
var video_attributes = result.player.metadata.chapters_attributes[result.chapter].video_attributes
s.linkTrackVars = "eVar32,eVar33,eVar34,prop16,events";