View gist:7a46977de60bcb922d49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int diameter = 10; | |
void setup(){ | |
size(200,200); | |
smooth(); | |
background (200,200,200); | |
frameRate(20); | |
} | |
void draw(){ |
View gist:111339ae481585fbb6f2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import gab.opencv.*; | |
import processing.video.*; | |
import java.awt.*; | |
Capture video; | |
OpenCV opencv; | |
void setup() { | |
size(640, 480); | |
video = new Capture(this, 640/2, 480/2); |
View Roger version 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo myServo; // maakt het servo object zodat we die kunnen besturen | |
int servoPin = 9; // de pin waar de servo op is aangesloten | |
int pos = 90; // maakt een variabele om de positie van de servo op te slaan | |
long randNumber; | |
boolean scared = false; | |
#define trigPin 13 | |
#define echoPin 12 |
View Roger v1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo myServo; // maakt het servo object zodat we die kunnen besturen | |
int servoPin = 9; // de pin waar de servo op is aangesloten | |
int pos = 90; // maakt een variabele om de positie van de servo op te slaan | |
long randNumber; | |
boolean scared = false; | |
#define trigPin 13 | |
#define echoPin 12 |
View gist:0a7c4806d772367d5fd1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
Servo myServo; // maakt het servo object zodat we die kunnen besturen | |
int servoPin = 9; // de pin waar de servo op is aangesloten | |
int pos = 90; // maakt een variabele om de positie van de servo op te slaan | |
long randNumber; | |
boolean scared = false; | |
#define trigPin 13 | |
#define echoPin 12 |
View gist:11e77b654e9b4e6d242f
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Servo.h> | |
// fotocel | |
float photocellPinL = 0; // the cell and 10K pulldown are connected to a0 | |
float photocellPinR = 1; // the cell and 10K pulldown are connected to a0q | |
float photocellReadingL; // fotocell reading LINKS | |
float photocellReadingR; // fotocell reading RECHTS | |
Servo myServo; // Servo Object | |
int servoPin = 9; // ServoPin Nummer |
View geolocation githook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#http://iharder.sourceforge.net/current/macosx/locateme/ | |
#copy paste this into the .git/hooks/prepare-commit-msg file | |
#install locateme into your project directory | |
LAT=`./LocateMe -f "{LAT}"` | |
LNG=`./LocateMe -f "{LON}"` | |
URL="http://maps.googleapis.com/maps/api/geocode/json?latlng=$LAT,$LNG&sensor=false" | |
ADDRESS=`eval "curl -s \"$URL\" | grep formatted_address | head -n 1 | sed 's/\"//g' | sed 's/,//g'"` |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
View index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<title>oh my golf</title> | |
<style> | |
*, | |
*:before, | |
*:after { |
View flickr.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const router = require('express').Router() | |
// FLICKR | |
const FLICKR_API = require('../../settings/flickr.js') | |
const Flickr = require('flickr-sdk') | |
const flickr = new Flickr(FLICKR_API.key) | |
// FIREBASE | |
const admin = require('firebase-admin') | |
const serviceAccount = require('./../../settings/progressbar-cache-firebase-adminsdk.json') | |
// init firebase app |
OlderNewer