Skip to content

Instantly share code, notes, and snippets.

View asanka-code's full-sized avatar

Asanka Priyadarshana Sayakkara asanka-code

View GitHub Profile
@h4cc
h4cc / install_tl_wn722n.sh
Created July 3, 2017 08:53
Installing a TP-Link TL-WN722N V2 on Ubuntu 16.04 with Kernel 4.4
# Source: https://askubuntu.com/questions/912498/tl-wn722n-is-not-recognized
sudo apt-get install git dkms git make build-essential
cd /usr/src
sudo git clone https://github.com/lwfinger/rtl8188eu.git
sudo dkms add ./rtl8188eu
sudo dkms build 8188eu/1.0
sudo dkms install 8188eu/1.0
sudo modprobe 8188eu
@staticfloat
staticfloat / hilbert_test.py
Created February 5, 2015 01:41
A quick demonstration of calculating the Hilbert Envelope of a signal, made with love for Keyu
#!/usr/bin/env python
from numpy import *
from scipy import *
from scipy.signal import *
from pylab import *
# Generate AM-modulated sinusoid
N = 256
@electronut
electronut / Makefile
Created April 30, 2014 15:03
Makefile for programming the ATtiny85
# Makefile for programming the ATtiny85
# modified the one generated by CrossPack
DEVICE = attiny85
CLOCK = 8000000
PROGRAMMER = -c usbtiny
OBJECTS = main.o
# for ATTiny85
# see http://www.engbedded.com/fusecalc/
FUSES = -U lfuse:w:0x62:m -U hfuse:w:0xdf:m -U efuse:w:0xff:m
@UniIsland
UniIsland / SimpleHTTPServerWithUpload.py
Created August 14, 2012 04:01
Simple Python Http Server with Upload
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@maniacbug
maniacbug / rfid_decimal.pde
Created October 9, 2011 18:13
Complete example for reading the 125Khz RFID module RDM630
#include <SoftwareSerial.h>
// Pin definitions
const int rfid_irq = 0;
const int rfid_tx_pin = 6;
const int rfid_rx_pin = 7;
// For communication with RFID module
SoftwareSerial rfid(rfid_tx_pin, rfid_rx_pin);
@maniacbug
maniacbug / rfid_simple.pde
Created October 9, 2011 17:16
Simple example of reading the 125Khz RFID module RDM630
#include <SoftwareSerial.h>
// Pin definitions
const int rfid_irq = 0;
const int rfid_tx_pin = 6;
const int rfid_rx_pin = 7;
// For communication with RFID module
SoftwareSerial rfid(rfid_tx_pin, rfid_rx_pin);