Skip to content

Instantly share code, notes, and snippets.

View rrgarciach's full-sized avatar

Ruy R. Garcia rrgarciach

View GitHub Profile
@markdrake
markdrake / datepicker_angular2.js
Created February 1, 2016 18:29
How to set/get values from a date picker in jquery using angular 2
/// <reference path="../../../../typings/jquery/jquery.d.ts" />
// TODO: Create date picker directive
declare var jQuery: JQueryStatic;
export class Main implements OnInit {
public date: any;
constructor() {
this.date = '2016-04-29';
}
@mattgorecki
mattgorecki / RaspberryPi-RFID
Created July 26, 2013 01:34
Python script to read RFID card from serial RFID reader attached to a Raspberry Pi. Also has a Exit button. The card swipe releases the maglock on the door.
#!/usr/bin/python2
import serial
import re, sys, signal, os, time, datetime
import RPi.GPIO as GPIO
BITRATE = 9600
GPIO.setmode(GPIO.BOARD)
GPIO.setup(7, GPIO.OUT)
GPIO.setup(3, GPIO.IN, pull_up_down=GPIO.PUD_UP)