Skip to content

Instantly share code, notes, and snippets.

View Uepsilon's full-sized avatar
👾
pןɹoʍ oןןǝɥ

Max Uepsilon

👾
pןɹoʍ oןןǝɥ
  • Cologne - Germany
View GitHub Profile
@Uepsilon
Uepsilon / example_spec.rb
Created April 22, 2013 22:21
How can you set "skip_request" to false for the dynamic its
context "with valid params" do
before(:each, :skip_request => false) { post :create, user: attributes_for(:user) }
it "should increase Usercount by 1", skip_request: true do
expect {
post :create, user: attributes_for(:user)
}.to change(User, :count).by(1)
end
it { should redirect_to(:admin_users) }
@Uepsilon
Uepsilon / led.py
Created June 27, 2013 11:42
Blinking LEDs on IO-Pins
import time
import RPi.GPIO as GPIO
try:
# Set Mode to BCM
GPIO.setmode(GPIO.BOARD)
# Define output LEDs
GPIO.setup(11, GPIO.OUT, initial=GPIO.LOW)
GPIO.setup(13, GPIO.OUT, initial=GPIO.LOW)

Keybase proof

I hereby claim:

  • I am uepsilon on github.
  • I am uepsilon (https://keybase.io/uepsilon) on keybase.
  • I have a public key whose fingerprint is ADCF D78D 4B15 C5F6 B334 5491 EA87 B749 056E F4EE

To claim this, I am signing this object: