Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
var myHeaders = new Headers();
var ETagHeaders = new Headers();
myHeaders.append("x-api-key", "INSERT API KEY");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
@robertcedwards
robertcedwards / kazm-embed.html
Created November 10, 2022 16:30
Embedded Kazm Form for Ambire Sign-up
<object data="https://kazm.xyz/invite/118b9d35-0def-4de5-8ec8-fadb82650c04"
width="450"
height="550"
type="text/html">
Alternative Content
</object>
let widget = await createWidget()
if (config.runsInWidget) {
Script.setWidget(widget)
} else {
widget.presentMedium()
}
Script.complete()
Madrone Mountain is 100% compliant with the General Data Protection Regulation (GDPR) .To learn more about how we collect, keep, and process your private information in compliance with GDPR, please view our privacy policy. This policy was last updated today.
@robertcedwards
robertcedwards / buy.scss
Last active July 31, 2019 14:55
Fix for column layout on online retailer and map issue
.col-sm-4 {
@include span-columns(3);
@include media($device) {
@include span-columns(6);
text-align: center;
}
}
.map {
@include span-columns(8);
@robertcedwards
robertcedwards / gist:d0148673f329df35ae052e55f1ac10ec
Created July 30, 2019 16:21
Fix for column layout http://localhost/how-to-buy/#online-retailers
<div class="row shoplinks">
<div class="col-md-6">
<a target="_blank" href="http://www.ylighting.com/brand/Modern-Fan-Co/_/N-1sbf4">
<img src="http://localhost/wp-content/uploads/2019/06/Ylighting_Logo.gif" alt="Modern Fan at YLighting" scale="0">
<p>&gt;&gt; Shop YLighting</p>
</a>
</div>
<div class="col-md-6">
@robertcedwards
robertcedwards / gist:0c98521ecc52f0f4ccbe0cde8c8b520f
Created July 30, 2019 04:13
Correct order for load and layout
jQuery(document).ready(function($){
$('section.loading').fadeOut('fast');
$('section.gallery').imagesLoaded(function() {
$('.gallery').packery({
itemSelector: 'div',
gutter: 10
});
$('section.gallery').addClass('loaded');
});
@robertcedwards
robertcedwards / scrollfix2.js
Created June 27, 2019 18:25
Another method for onpage load
var shiftWindow = function() { scrollBy(0, -50) };
if (location.hash) shiftWindow();
window.addEventListener("hashchange", shiftWindow);
@robertcedwards
robertcedwards / scrollfix.js
Created June 27, 2019 18:25
On hashchange scrollby
window.addEventListener("hashchange", function() { scrollBy(0, -50) })
@robertcedwards
robertcedwards / gist:9d5b73f94628c49ed22e37c34feee589
Last active March 27, 2019 18:49
Handbrake and sequential shifter
/*
Handbrake with ampping and contrain
Check your range with serial monitor and set your numbers below
*/
void setup() {
pinMode(11, INPUT_PULLUP);
pinMode(12, INPUT_PULLUP);
}