Skip to content

Instantly share code, notes, and snippets.

@crazystick
crazystick / i2c_spi_test.c
Last active October 1, 2016 17:22
wiringX Hummingboard TMP102 I2C and sparkfun 7-segment display
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
@crazystick
crazystick / page.html
Created August 11, 2012 23:28
YouTube iframe Embed and Resize to Content
<script src="page.js"></script>
...
<!-- You can set the initial size to something sensible, but it will get resized on loading -->
<iframe src="http://www.youtube.com/embed/VIDEO_ID" width="560" height="315"></iframe>
...