Skip to content

Instantly share code, notes, and snippets.

View robertcedwards's full-sized avatar
🖼️
Framing

Robert C Edwards robertcedwards

🖼️
Framing
View GitHub Profile
@robertcedwards
robertcedwards / gist:2408672
Created April 17, 2012 20:07
Facebook Like button code
<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>
@robertcedwards
robertcedwards / gist:fcec06dc0904a438c6a8
Created November 3, 2014 21:35
onmouseover html5 video play, mouseout pause
<html>
<head>
</head>
<body>
<div style="text-align:center" onmouseover="Play()" onmouseout="Pause()">
<video id="video1" width="480">
<source src="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4" type="video/mp4" />
<source src="http://clips.vorwaerts-gmbh.de/VfE_html5.ogg" type="video/ogg" />
Your browser does not support HTML5 video.
</video>
Step 8: BONUS! Math!
Here's a quick mini tutorial on finding out the value to put into your GRBL settings for the correct amount steps for translating designs into the real world accurately.
A typical stepper motor has 200 steps PER revolution. These are known as FULL steps or 1.8° per step. This setting has the most torque and is the fastest, however not the smoothest.
Most of these machines will list the kind and size of lead/ballscrew it has. On my 3020, the lead screw is 1404.
14: 14mm diameter of the screw thread (OD)
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 / steam.ini
Created April 7, 2016 15:17
Steam Controller ini config file for Assetto Corsa
[HEADER]
INPUT_METHOD=X360
[X360]
STEER_THUMB=LEFT
STEER_GAMMA=2.0
STEER_FILTER=0.7
SPEED_SENSITIVITY=0.1
STEER_DEADZONE=0.0
@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');
});
[
{
"Variety":"Arusha",
"Arabica":"Arabica",
"Region(s)":"Mount Meru in Tanzania, and Papua New Guinea",
"Comments":"either a Typica variety or a French Mission.",
"Ref":"[1]"
},
{
"Variety":"Bergendal, Sidikalang",
@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);