I hereby claim:
- I am isma44 on github.
- I am morije (https://keybase.io/morije) on keybase.
- I have a public key ASDI8Ed5qY0I0nbNiiKdsy_n0neRdUb5lVLv9U9DsGixMAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#pragma mark - Embed Video | |
- (UIWebView *)embedVideoYoutubeWithURL:(NSString *)urlString andFrame:(CGRect)frame { | |
NSString *videoID = [self extractYoutubeVideoID:urlString]; | |
NSString *embedHTML = @"\ | |
<html><head>\ | |
<style type=\"text/css\">\ | |
body {\ | |
background-color: transparent;\ |
// for Mac | |
// module.paths.push('/usr/local/lib/node_modules'); | |
var Theta = require('ricoh-theta'); | |
var theta = new Theta(); | |
theta.connect('192.168.1.5'); | |
// capture | |
theta.on('connect', function(){ |
#define LEDPORT PORTD | |
#define LEDBIT PD6 | |
#define LEDDDR DDRD | |
#include <avr/io.h> | |
int main (void) | |
{ | |
LEDDDR |= (1 << LEDBIT); // set LED pin as an output | |
TCCR1B |= ((1 << CS10) | (1 << CS11)); // configure timer prescaling |
// super awesome Arduino-like pin macros save you from having to remember bitmasks | |
// code from Matthew T. Pandina's Demystifying the TLC5940 tutorial: | |
// URL: https://sites.google.com/site/artcfox/demystifying-the-tlc5940 | |
#define setOutput(ddr, pin) ((ddr) |= (1<< (pin))) | |
#define setLow(port, pin) ((port) &= ~(1 << (pin))) | |
#define setHigh(port, pin) ((port) |= (1 << (pin))) | |
#define outputState(port, pin) ((port) & (1 << (pin))) | |
#define pulse(port, pin) do { \ | |
setHigh((port), (pin)); \ |