Skip to content

Instantly share code, notes, and snippets.

View hugs's full-sized avatar
🤖
Making robots

Jason Huggins hugs

🤖
Making robots
View GitHub Profile
@hugs
hugs / LICENSE.txt
Last active May 10, 2022 09:48
The most ridiculously awesome way to sleep synchronously in Node.js
http://creativecommons.org/publicdomain/zero/1.0/
CC0 1.0 Universal (CC0 1.0)
Public Domain Dedication
To the extent possible under law, Jason Huggins has waived all copyright and related or neighboring rights to sleep-example.js and sleep-server.js.
This work is published from: United States.
#!/usr/bin/ruby
# Make sure you have these gems installed
require 'rubygems'
require 'thread'
require 'csv'
require 'twitter'
require 'marky_markov'
# Create a new Twitter account that you'd like to have your auto-tweets posted to
@hugs
hugs / terminator-vision.py
Created August 13, 2013 22:39
OpenCV to find the bird in Angry Birds
#!/opt/local/bin/python2.7
import cv
import subprocess
import time
# Template to find
template_file = cv.CaptureFromFile('redbird.png')
template = cv.QueryFrame(template_file)
@hugs
hugs / tapster-appium-calibration.txt
Last active July 17, 2018 23:00
Use Tapster with Appium
----
UPDATE: 5 September 2016: These instructions no longer work with the latest version of Appium. :(
If you would like assistance, please email hello@tapster.io.
----
Pre-req:
a) Git clone the "robots" project from appium
https://github.com/appium/robots
@hugs
hugs / total_time.py
Last active July 9, 2016 03:15
Add a list of time durations.
# From: http://stackoverflow.com/questions/2780897/python-sum-up-time/2780968#2780968
timeList = [
'9:47:25',
'06:12:23',
'02:57:38',
'02:40:11',
'00:59:48',
'00:59:48',
'00:59:48',
@hugs
hugs / bitbeam.scad
Last active December 15, 2015 09:59
// Description: "LEGO Technic-compatible gridbeam"
// Project home: http://bitbeam.org
// Each bitbeam is 8mm inches wide.
// Center of each hole is 8mm apart from each other
// Holes are 5.0 mm in diameter.
// Mini
beam_width = 4;
hole_diameter = 2.2;
@hugs
hugs / hugs-3mm_pt35-nzl_pt25-lyr.ini
Created February 13, 2013 23:35
My custom settings for Slic3r: 3mm filament, .35 mm nozzle, .25 mm layer, and slower speeds based on speed suggestions from: http://richrap.blogspot.com/2012/01/slic3r-is-nicer-part-2-filament-and.html
# generated by Slic3r 0.9.7 on Sun Feb 10 12:17:13 2013
acceleration = 0
bed_size = 190,200
bed_temperature = 0
bottom_solid_layers = 3
bridge_fan_speed = 100
bridge_flow_ratio = 1
bridge_speed = 60
brim_width = 0
complete_objects = 0
@hugs
hugs / appium-sauce-demo.rb
Created January 31, 2013 23:46
A ruby appium test in the cloud with Sauce.
#!/usr/bin/env ruby
require 'rubygems'
require 'selenium-webdriver'
caps = Selenium::WebDriver::Remote::Capabilities.iphone
caps.platform = "Mac 10.8"
caps.version = "6.0"
caps[:name] = "Testing Everest with Appium on Sauce"
caps[:app] = "http://localhost:8080/Everest.zip"
@hugs
hugs / appium-roadmap-wishlist.md
Created December 17, 2012 19:35
Appium Roadmap Wishlist

Appium Roadmap

  • Raw JavaScript execution (execute_script) support when interacting with UIWebViews. Re-using the WebKit debugging protocol. This is the biggest technical road-block to using Appium heavily for testing classic mobile web (browser-based) applications.

  • Android support

  • Tutorial videos (YouTube, Vimeo), and a step-by-step tutorial doc

@hugs
hugs / orbison.txt
Created December 14, 2012 22:26
Orbison - The Arduino build monitor
For a fun starter project with Arduino, turn it into a software build monitor with some tri-color LEDs [1] and a cheap lighting fixture [2]. Bonus points for making it flash the name of the person who broke the build in Morse code. :-)
Demo: http://youtu.be/S6hqTkz915E
Source: http://code.google.com/p/orbison/
Cool story: http://blip.tv/chipy-chicago-python-user-group/episode-1781944
[1]: RGB Endor Star - http://www.ledsupply.com/07007-prgb0-0.php
[2]: Portfolio White Ceiling - http://goo.gl/Btjk4