Skip to content

Instantly share code, notes, and snippets.

@x31forest
x31forest / gist:c8136972d9e37432d4f8f0adc8d458da
Created November 5, 2021 01:09
Mindbody Schedule Integration Flexible class type selection via query
<script src="https://widgets.mindbodyonline.com/javascripts/healcode.js" type="text/javascript"></script>
<healcode-widget data-type="schedules" data-widget-partner="object" data-widget-id="071682686561" data-widget-version="1" ></healcode-widget>\
<script>
document.addEventListener("widget:updated", function(t) {
setTimeout(function(){
//open filter
document.getElementsByClassName("bw-header__filter-link")[0].click()
const urlParams = new URLSearchParams(window.location.search);
const classId = urlParams.get('classId');
<blockquote class="instagram-media" data-instgrm-permalink="https://www.instagram.com/reel/CUpUVdUgSwH/?utm_source=ig_embed&amp;utm_campaign=loading" data-instgrm-version="14" style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:540px; min-width:326px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"><div style="padding:16px;"> <a href="https://www.instagram.com/reel/CUpUVdUgSwH/?utm_source=ig_embed&amp;utm_campaign=loading" style=" background:#FFFFFF; line-height:0; padding:0 0; text-align:center; text-decoration:none; width:100%;" target="_blank"> <div style=" display: flex; flex-direction: row; align-items: center;"> <div style="background-color: #F4F4F4; border-radius: 50%; flex-grow: 0; height: 40px; margin-right: 14px; width: 40px;"></div> <div style="display: flex; flex-direction: column; flex-grow: 1; justify-content: center;"> <div style=" background-color: #F4F4F4; border-rad
@x31forest
x31forest / index.js
Last active September 14, 2017 15:54
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var he = require('he')
var ht = require('html-to-text')
//var text = he.decode('text&nbsp;text2')
var htext = ht.fromString('text&nbsp;text2&nbsp;<span>text3</span>')
document.getElementById('output1').textContent=htext
@x31forest
x31forest / index.html
Last active January 24, 2017 18:06
Template DSL
<p>
<dot class="dot-interpolate" data-formulas="[{'CompanyName': {formula:'TR.CommonName', arguments: ['TRI.TO'], fields:['']}}]" data-value="TR.CommonName" data-format="">
<section class="dotDisplay">
<div class="formulaName">TR.CommonName</div>
<div class="formulaRic">TRI.TO</div>
<div class="formulaButton">!</div>
</section>
</dot> is trading at
<dot class="dot-interpolate" data-formulas="[{'CF_LAST': {formula:'CF_LAST', arguments: ['TRI.TO'], fields:['']}}]" data-value="CF_LAST" data-format="$">
<section class="dotDisplay">
@x31forest
x31forest / index.html
Last active October 12, 2016 16:44
JSON to Text
<button id="generate">Generate</button>
<div id="results"></div>
@x31forest
x31forest / datapointconditional-medium-editor-extension.markdown
Created August 26, 2016 15:14
DataPointConditional Medium-Editor extension
@x31forest
x31forest / index.html
Last active August 26, 2016 15:14
medium-editor + DoT + numeral
<form>
<label for="displaySources"><span class="btn btn-primary">Select Source</span></label>
<input type=radio id="displaySources" name="group">
<label for="displayMap"><span class="btn btn-primary">Map Data</span></label>
<input type=radio id="displayMap" name="group">
<div class="displaySourcesText">
<fieldset class="form-group">
<label for="identifiers">Identifiers</label>
<input class="form-control" id="identifiers" value="GOOG.O">
</fieldset>
@x31forest
x31forest / index.html
Created August 26, 2016 15:12 — forked from anonymous/index.html
medium-editor + DoT + numeral
<form>
<label for="displaySources"><span class="btn btn-primary">Select Source</span></label>
<input type=radio id="displaySources" name="group">
<label for="displayMap"><span class="btn btn-primary">Map Data</span></label>
<input type=radio id="displayMap" name="group">
<div class="displaySourcesText">
<fieldset class="form-group">
<label for="identifiers">Identifiers</label>
<input class="form-control" id="identifiers" value="GOOG.O">
</fieldset>
@x31forest
x31forest / index.html
Created August 9, 2016 15:20 — forked from anonymous/index.html
medium-editor + DoT + numeral
<form>
<label for="displaySources"><span class="btn btn-primary">Select Source</span></label>
<input type=radio id="displaySources" name="group">
<label for="displayMap"><span class="btn btn-primary">Map Data</span></label>
<input type=radio id="displayMap" name="group">
<div class="displaySourcesText">
<fieldset class="form-group">
<label for="identifiers">Identifiers</label>
<input class="form-control" id="identifiers" value="GOOG.O">
</fieldset>