Skip to content

Instantly share code, notes, and snippets.

View willrax's full-sized avatar
👨‍💻

Will Raxworthy willrax

👨‍💻
View GitHub Profile
4.1 Uninstalling VCP Drivers
To remove the drivers from Mac OS X, the user must be logged on as root.
Root is a reserved username that has the privileges required to access all files.
Start a Terminal session (Go > Applications > Utilities > Terminal) and enter the following
commands at the command prompt:
cd /System/Library/Extensions
rm -r FTDIUSBSerialDriver.kext
@willrax
willrax / my_scene.rb
Last active August 29, 2015 14:01
Parallax scrolling with Sprite Kit and RubyMotion
# Video of it in action: http://cl.ly/VSIF
class MyScene < SKScene
def scroll_action(x, duration)
width = (x * 2)
move = SKAction.moveByX(-width, y: 0, duration: duration * width)
reset = SKAction.moveByX(width, y: 0, duration: 0)
SKAction.repeatActionForever(SKAction.sequence([move, reset]))
end
static CSAnimationType CSAnimationTypeBounceLeft = @"bounceLeft";
static CSAnimationType CSAnimationTypeBounceRight = @"bounceRight";
static CSAnimationType CSAnimationTypeBounceDown = @"bounceDown";
static CSAnimationType CSAnimationTypeBounceUp = @"bounceUp";
static CSAnimationType CSAnimationTypeFadeIn = @"fadeIn";
static CSAnimationType CSAnimationTypeFadeOut = @"fadeOut";
static CSAnimationType CSAnimationTypeFadeInLeft = @"fadeInLeft";
static CSAnimationType CSAnimationTypeFadeInRight = @"fadeInRight";
static CSAnimationType CSAnimationTypeFadeInDown = @"fadeInDown";
static CSAnimationType CSAnimationTypeFadeInUp = @"fadeInUp";

Keybase proof

I hereby claim:

  • I am willrax on github.
  • I am willrax (https://keybase.io/willrax) on keybase.
  • I have a public key whose fingerprint is 925E CFEB 9783 0EAA 3FF1 38B0 C864 831F EC9D 5BDA

To claim this, I am signing this object:

@willrax
willrax / app_delegate.rb
Created January 9, 2014 22:18
URL Scheme Management (RubyMotion)
class AppDelegate
def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@viewController = Foo.alloc.init
@window.rootViewController = @viewController
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
true
end
@willrax
willrax / beacon.rb
Last active December 28, 2015 22:09
Small script to provision an iBeacon on the raspberry pi.
#!/usr/bin/env ruby
require "securerandom"
uuid = SecureRandom.uuid
uuid_hex = uuid.gsub("/", "")
uuid_hex = uuid_hex.scan(/../)
uuid_hex = uuid_hex.join(" ")
major = "00 00"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.