Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/python
# -*- coding: utf-8 -*-
import subprocess
__all__ = ["transform"]
__version__ = '0.3'
__author__ = 'Christoph Burgmer <cburgmer@ira.uka.de>'
__url__ = 'https://github.com/cburgmer/upsidedown'
@abhishekkr
abhishekkr / README.md
Last active January 22, 2016 19:26
ArchLinux Bootstrap Script [non-UEFI]

Using it

Check for Internet connectivity, get that working.

Then run "pre_arch_chroot.sh" with manual UEFI mods if required. This will ask some confirmations, give it.

And obviously these scripts have my name for 'username', so run following command on both scripts before using.

sed -i 's/abhishekkr/$YOUR_USER_NAME/g' post_arch_chroot.sh
@electronut
electronut / analogplot.py
Created June 7, 2013 15:34
Plot real-time analog data (single value) read from serial port using Python Matplotlib.
################################################################################
# showdata.py
#
# Display analog data from Arduino using Python (matplotlib)
#
# electronut.in
#
################################################################################
import sys, serial
@electronut
electronut / showdata.py
Created May 24, 2013 07:44
Display analog data from Arduino using Python (matplotlib)
################################################################################
# showdata.py
#
# Display analog data from Arduino using Python (matplotlib)
#
# electronut.in
#
################################################################################
import sys, serial
@soyunkope
soyunkope / pyduinoSKNRBX.py
Created June 26, 2012 20:54
Skinner Box for the Arduino Uno
#!/usr/bin/python
import sys
import serial
import time
import datetime
'''''
tiene que llamarse con 3 arg: arturito, experimento, nRata
Hay que hacer que mande por serial el expe a realizar
1 train()
@MercuryRising
MercuryRising / arduinoDataWriter.py
Created June 24, 2012 01:31
Python Data Logger from Arduino
import serial
import time
import datetime
UNO = '/dev/ttyACM0'
ser = serial.Serial(UNO, 115200)
repeatTime = 1000 # milliseconds
def writeData(value):
@moritzh
moritzh / gist:2937136
Created June 15, 2012 15:45
Script to read RunKeeper.sqlite files and convert the data to .gpx files.
# Simple HowTo: Grab the Application PhoneView or something else to gather the "RunKeeper.sqlite" from your iPhone's RunKeeper Application Directory.
# Put it in the same directory as the "to_gpx.rb" script. simply run the to_gpx.rb script using
# ruby to_gpx.rb
# you should now have a collection of gpx files, numbered according to the internal trip_ids used by runkeeper. you can upload these gpx files to runkeeper.
# Requirements:
# - 'sqlite3-ruby'
require 'date'
@yagihiro
yagihiro / CircularBuffer.h
Created February 18, 2009 09:50
circular buffer library for Arduino (C++)
/*
CircularBuffer.h - circular buffer library for Arduino.
Copyright (c) 2009 Hiroki Yagita.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to