Skip to content

Instantly share code, notes, and snippets.


Robert C Edwards robertcedwards

View GitHub Profile
View widget.js
let widget = await createWidget()
if (config.runsInWidget) {
} else {
View gist:9b5214f489a57dff8e4765c12ff8eab0
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 / buy.scss
Last active Jul 31, 2019
Fix for column layout on online retailer and map issue
View buy.scss
.col-sm-4 {
@include span-columns(3);
@include media($device) {
@include span-columns(6);
text-align: center;
.map {
@include span-columns(8);
robertcedwards / gist:d0148673f329df35ae052e55f1ac10ec
Created Jul 30, 2019
Fix for column layout http://localhost/how-to-buy/#online-retailers
View gist:d0148673f329df35ae052e55f1ac10ec
<div class="row shoplinks">
<div class="col-md-6">
<a target="_blank" href="">
<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>
<div class="col-md-6">
View gist:0c98521ecc52f0f4ccbe0cde8c8b520f
$('').imagesLoaded(function() {
itemSelector: 'div',
gutter: 10
robertcedwards / scrollfix2.js
Created Jun 27, 2019
Another method for onpage load
View scrollfix2.js
var shiftWindow = function() { scrollBy(0, -50) };
if (location.hash) shiftWindow();
window.addEventListener("hashchange", shiftWindow);
robertcedwards / scrollfix.js
Created Jun 27, 2019
On hashchange scrollby
View scrollfix.js
window.addEventListener("hashchange", function() { scrollBy(0, -50) })
View gist:9d5b73f94628c49ed22e37c34feee589
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);
robertcedwards / gist:18df09bae7e5210a7fe7a262afbf1c57
Last active Mar 10, 2019
Handbrake control with mapping for range
View gist:18df09bae7e5210a7fe7a262afbf1c57
void setup() {
pinMode(0, INPUT_PULLUP);
void loop() {
int val = analogRead(0); //read pot value
val = map(val, 625, 220, 0, 1024);//map range to normal pot range
val = constrain(val, 0, 1024);//then constrain for noise reduction
View gist:faf5aa33319266f619d8c3925154a632
"event": "Wyzecam",
"properties": {
"distinct_id": "4101",
"token": "TOKEN HERE",
"location": "Backyard"