Skip to content

Instantly share code, notes, and snippets.


Robert C Edwards robertcedwards

View GitHub Profile
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 / gist:fcec06dc0904a438c6a8
Created Nov 3, 2014
onmouseover html5 video play, mouseout pause
View gist:fcec06dc0904a438c6a8
<div style="text-align:center" onmouseover="Play()" onmouseout="Pause()">
<video id="video1" width="480">
<source src="" type="video/mp4" />
<source src="" type="video/ogg" />
Your browser does not support HTML5 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 / steam.ini
Created Apr 7, 2016
Steam Controller ini config file for Assetto Corsa
View steam.ini
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
View Coffee-varieties.json
"Region(s)":"Mount Meru in Tanzania, and Papua New Guinea",
"Comments":"either a Typica variety or a French Mission.",
"Variety":"Bergendal, Sidikalang",
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);