Skip to content

Instantly share code, notes, and snippets.

@hephaestus9
hephaestus9 / depth_sensor.ino
Last active July 27, 2018 12:40
Depth Sensor Code - modified j.brian
/*
created August 2011
by SMStrauch and with help of robtillaart and ulrichard. Thanks!
Manufacturer: www.intersema.ch
Source: http://www.meas-spec.com/downloads/Using_SPI_Protocol_with_Pressure_Sensor_Modules.pdf
Source: http://forum.arduino.cc/index.php?topic=67188.0
Datasheet: http://media.digikey.com/pdf/Data%20Sheets/Measurement%20Specialties%20PDFs/MS5541-CM.pdf
Modified 2-10-2015 J.Brian
@hephaestus9
hephaestus9 / 000-default.conf
Last active September 6, 2024 19:38
/etc/apache2/sites-available/000-default.conf
#**REMEMBER TO SAVE A BACK-UP OF THE ORIGINAL 000-default.conf!!!
<VirtualHost *:80>
# The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
@hephaestus9
hephaestus9 / ironworks.wsgi
Created March 22, 2015 15:00
/var/www/Ironworks/ironworks.wsgi
#!/usr/bin/python
import sys
import logging
logging.basicConfig(stream=sys.stderr)
sys.path.insert(0,"/var/www/Ironworks/")
from Ironworks import app as application
application.secret_key = 'This is my secret - get your own'
@hephaestus9
hephaestus9 / Beep.asm
Last active December 5, 2015 20:15
RTTTL Player in ASM
; CIS-261
; Here is a song to past in d=4,o=5,b=250:e,8p,8f,8g,8p,1c6,8p.,d,8p,8e,1f,p.,g,8p,8a,8b,8p,1f6,p,a,8p,8b,2c6,2d6,2e6,e,8p,8f,8g,8p,1c6,p,d6,8p,8e6,1f.6,g,8p,8g,e.6,8p,d6,8p,8g,e.6,8p,d6,8p,8g,f.6,8p,e6,8p,8d6,2c6,q
; 'Indiana Jones'
; Some code taken from Lab M09 demo program: make_beeps.asm
; Lab M09, http://www.c-jump.com/bcc/c261c/MLabs/M09arrays/lecture.html Data Arrays and Windows API Calls
;
; Reference http://www.benchmark-companies.com/electronics/elt265/handouts/wam_ch8.pdf
; Reference https://github.com/ponty/arduino-rtttl-player/blob/master/rtttl/rtttl.h