Skip to content

Instantly share code, notes, and snippets.

@jmorenoamor
jmorenoamor / java_properties_example.java
Created June 7, 2012 15:36
Properties file reading and writing example with Java
package com.morenoamor.tutorials;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;
/**
* Properties file reading and writing example
@underdoeg
underdoeg / readSMS.py
Created October 4, 2011 18:02
retreive sms via python, serial connection and AT commands
import serial
import time
from messaging.sms import SmsDeliver
ser=serial.Serial('/dev/ttyACM0', baudrate=9600, timeout=.1, rtscts=0)
def sendCommand(com):
ser.write(com+"\r\n")
time.sleep(2)
ret = []