Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Robert C Edwards robertcedwards

🎯
Focusing
View GitHub Profile
@robertcedwards
robertcedwards / Move.cs
Last active Jan 19, 2021
Movement Script in C# for Unity
View Move.cs
private float speed = 2.0f;
public GameObject character;
void Update () {
if (Input.GetKey(KeyCode.RightArrow)){
transform.position += Vector3.right * speed * Time.deltaTime;
}
if (Input.GetKey(KeyCode.LeftArrow)){
transform.position += Vector3.left* speed * Time.deltaTime;
@robertcedwards
robertcedwards / gist:fcec06dc0904a438c6a8
Created Nov 3, 2014
onmouseover html5 video play, mouseout pause
View gist:fcec06dc0904a438c6a8
<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>
View grbl-steps.txt
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)
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
robertcedwards / steam.ini
Created Apr 7, 2016
Steam Controller ini config file for Assetto Corsa
View steam.ini
[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 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
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="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">
View gist:0c98521ecc52f0f4ccbe0cde8c8b520f
jQuery(document).ready(function($){
$('section.loading').fadeOut('fast');
$('section.gallery').imagesLoaded(function() {
$('.gallery').packery({
itemSelector: 'div',
gutter: 10
});
$('section.gallery').addClass('loaded');
});
View Coffee-varieties.json
[
{
"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 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);