Skip to content

Instantly share code, notes, and snippets.

Avatar
🤖
Making robots

Jason Huggins hugs

🤖
Making robots
View GitHub Profile
@hugs
hugs / tapster-3.coffee
Created Oct 1, 2020
Tapster 3 Assembly - It's okay to use CoffeeScript 😎
View tapster-3.coffee
# Tapster 3 Assembly
# (c) 2020 Jason R. Huggins
# It's okay to use CoffeeScript ☕
# No, really, pi is wrong
Math.TAU = Math.PI*2
arm_offset = Math.acos(69.912/70) / Math.TAU * 360
servo_height_offset = (-28.5 / 2) - 5
servo_width_offset = 44.6 / 2
@hugs
hugs / README.md
Last active Aug 14, 2020
Tapster 3 - Demo Script - Tap "Hello, World!!"
View README.md
@hugs
hugs / harry-potter-hedwigs-theme.js
Created Jun 21, 2019
Tapster Sidekick Demo - Hedwig's Theme - Garage Band app
View harry-potter-hedwigs-theme.js
notes = {
'C': [54,130],
'D': [44,130],
'E': [34,130],
'F': [24,130],
'G': [16,130],
'A': [6,130],
'B': [-3,130],
'c': [-13,130],
'd': [-23,130],
@hugs
hugs / blink.code
Last active Dec 18, 2017
Blink (aka "Arduino Hello World")
View blink.code
@hugs
hugs / 1_clown-shoe.stl
Last active Jun 27, 2017
Parametric Clown Shoe! Why? Because Clown Shoe!
View 1_clown-shoe.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View 1_fidget-spinner.stl
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View chromebook-setup.txt
sudo apt-get update
sudo apt-get upgrade
# Install needed tools
sudo apt-get install build-essential
sudo apt-get install chromium-browser
sudo apt-get install vim
sudo apt-get install curl
sudo apt-get install python
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
@hugs
hugs / 1 - makefile
Last active Apr 12, 2017
Make me a sandwich
View 1 - makefile
# Copyright (c) 2017 Make Me A Sandwich Developers
# MIT License (See LICENSE.txt)
# Inspiration: https://xkcd.com/149/
# Usage:
# $ make me a sandwich
# What? Make it yourself.
#
# $ sudo make me a sandwich
@hugs
hugs / 1 - setup.md
Last active Mar 21, 2020
Elementary OS Setup (Loki)
View 1 - setup.md

Post-installation Elementary OS Setup and Tweaks

  • System Settings -> Mouse & Touchpad -> Touchpad -> Tap to click -> (Toggle on)
  • Connect to additional WiFi access points

Apply Updates:

sudo apt-get update
sudo apt-get upgrade

Install Dev Tools:

@hugs
hugs / eval.js
Last active Dec 28, 2016
Eval.js Example
View eval.js
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// Copyright Joyent, Inc. and other Node contributors.
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to permit
// persons to whom the Software is furnished to do so, subject to the
// following conditions:
You can’t perform that action at this time.