Skip to content

Instantly share code, notes, and snippets.

View FredrikL's full-sized avatar
👽

Fredrik Leijon FredrikL

👽
View GitHub Profile
#include "LPD8806.h"
#include "SPI.h"
// code revision for my version of http://www.youtube.com/watch?v=IUhEINPraN8&feature=youtu.be
int aX = 0;
int aY = 1;
int aZ = 3;
int stripDataPin = 2;
@FredrikL
FredrikL / Wheels.cs
Created March 6, 2012 08:45
Motors n stuff
public class Wheels : IWheels
{
private readonly OutputPort motorOneDirection;
private readonly OutputPort motorTwoDirection;
private readonly PWM motorOneSpeed;
private readonly PWM motorTwoSpeed;
public Wheels(Cpu.Pin motorOneDirectionPin, Cpu.Pin motorOneSpeedPin,
Cpu.Pin motorTwoDirectionPin, Cpu.Pin motorTwoSpeedPin)
#!/usr/bin/env ruby
# Command line util for acquiring a one-off Twitter OAuth access token
# Based on http://blog.beefyapps.com/2010/01/simple-ruby-oauth-with-twitter/
require 'rubygems'
require 'oauth'
puts <<EOS
Set up your application at https://twitter.com/apps/ (as a 'Client' app),
@FredrikL
FredrikL / gist:1038709
Created June 21, 2011 19:47
IronRuby + C#
using System;
using Microsoft.Scripting.Hosting;
using IronRuby;
namespace IronRubyHostTest
{
public class Meh
{
public void baz()
{
[Pilgrim, ninja ratter]
Medium Armor Repairer II
Damage Control II
Armor EM Hardener II
Armor Thermic Hardener II
Heat Sink II
10MN Afterburner II
Cap Recharger II
Cap Recharger II
[Punisher, Tournament v3]
Centii C-Type Adaptive Nano Plating
Imperial Navy Energized Adaptive Nano Membrane
Gyrostabilizer II
400mm Reinforced Rolled Tungsten Plates I
1MN Afterburner II
Stasis Webifier II
200mm AutoCannon II, Republic Fleet EMP S