Skip to content

Instantly share code, notes, and snippets.

View jywarren's full-sized avatar

Jeffrey Warren jywarren

View GitHub Profile
@jywarren
jywarren / ArduinoTemperatureFlashlight.ino
Created December 12, 2011 22:32 — forked from kylemcdonald/ArduinoTemperatureFlashlight.ino
Thermal Flashlight RGB LED + Melexis 90614
#include <i2cmaster.h>
#include "Wire.h"
#include "BlinkM_funcs.h"
const float lowReading = 75;
const float highReading = 110;
const int blinkm_addr = 0;
const unsigned char separatorCharacter = 255;
void setup(){
@jywarren
jywarren / autorun.sh
Last active August 29, 2015 14:22 — forked from dwblair/autorun.sh
#!/bin/sh
# configure pirateship image
sudo pirateship rename shinyeippd42
sudo pirateship adapter pirate.sh/ip "" none
sudo ifdown wlan0
sudo ifup wlan0
# install opk drivers
@jywarren
jywarren / zombie-queens.js
Last active September 15, 2015 15:42 — forked from anonymous/ant.js
An ant script saved from https://github.com/jywarren/antfarm
// set basic attributes here;
// "this" means this ant you're editing now
this.speed = 1;
this.color = 'red';
this.height = 40;
this.width = 40;
// runs every frame:
onRun = function () {
@jywarren
jywarren / followBlue.js
Last active September 15, 2015 16:54 — forked from anonymous/ant.js
An ant script saved from https://github.com/jywarren/antfarm
onRun = function() {
var redness = lookFor('blue',3);
if (redness == "N") this.direction = 0;
if (redness == "E") this.direction = 90;
if (redness == "S") this.direction = 180;
if (redness == "W") this.direction = 270;
this.direction += Math.random()*10-5;
@jywarren
jywarren / ant.js
Last active September 29, 2015 23:50 — forked from anonymous/ant.js
eating green, from https://github.com/jywarren/antfarm
onRun = function() {
ant.direction += Math.random()*10-5;
if (ant.green() > 0) {
ant.foodPlace = [ant.x, ant.y];
ant.energy += ant.green();
ant.green(0);
}
if (ant.energy <= 0) ant.die();
ant.color = "rgba(" + ant.energy + ", 50, 0, 1)";
@jywarren
jywarren / makehub
Created October 19, 2016 23:33 — forked from mrvolta/makehub
DIY Microscope
# Title
DIY Microscope
# Picture
media: http://s14.postimg.org/5d0apb39t/Photo0292.jpg
# Objective
To use a simple usb webcam as a microscope, only a few modifications are needed. Also, A Software That Control The Focus Of Specimen Using Small Servo Motor.
# Duration
4 Day
# Age Group
all
@jywarren
jywarren / feed.rss
Last active January 27, 2018 19:01 — forked from anonymous/feed.rss
test feed with some images and not others
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>Recent research notes on PublicLab.org</title>
<description>Open source environmental science research at Public Lab</description>
<link>https://publiclab.org/feed.rss</link>
<atom:link rel="self" type="application/rss+xml" href="publiclab.org"/>
<item>
<title> Can these filter packages be adapted to Raspberry Pi cameras?</title>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Hello OpenCV.js</title>
</head>
<body>
<h2>Hello OpenCV.js</h2>
<p id="status">OpenCV.js is loading...</p>
<div>
@jywarren
jywarren / topics.html
Last active August 26, 2019 16:36 — forked from gautamig54/gist:c6a1a56510d62c13b03243b2ef2c7caf
Adding topics section to the footer
<div class="footer-topics">
<h4 style="color:black; text-align:center; padding-bottom:10px;">Topics</h4>
</br></br>
<div class="row">
<div class="col-md-3">
<ul>
<h6><a href="/tag/water">Water</a></h6>
<li><a href="/tag/drinking-water">drinking-water</a></li>
<li><a href="/tag/fracking">fracking</a></li>
<li><a href="/tag/microplastics">microplastics</a></li>