Skip to content

Instantly share code, notes, and snippets.

/* PARTICLE CODE */
// This #include statement was automatically added by the Particle IDE.
#include <rgb-controls.h>
using namespace RGBControls;
Color red = Color(255, 0, 0);
Color green = Color(0, 255, 0);
Color blue = Color(0, 0, 255);
Led led(D0, D1, D2, false);
@jkuip
jkuip / iot.txt
Created February 14, 2017 11:58
Data Visualization using Particle, Firebase and P5js: https://www.youtube.com/watch?v=puBpA1LmGCs
///////////////////////////////////
// PARTICLE / WIRING CODE //
///////////////////////////////////
int photoResistor = A0;
int power = A5;
int lightValue;
void setup() {
pinMode(photoResistor,INPUT);
@jkuip
jkuip / poll.php
Created October 20, 2015 19:50
Simple poll - exercise
<!DOCTYPE html>
<html>
<head>
<title>Simple Poll</title>
<style type="text/css">
.outer {
width: 300px;
height: 10px;
border: 1px solid #000;
background-color: #fff;
@jkuip
jkuip / calculator.php
Created September 18, 2015 15:18
Simple PHP calculator
<!DOCTYPE html>
<html>
<head>
<title>Calculator</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
@jkuip
jkuip / countdown.php
Created September 18, 2015 15:18
Simple PHP countdown
<!DOCTYPE html>
<html>
<head>
<title>Countdown</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.4.1/css/bootstrap-datepicker.min.css" rel="stylesheet">
@jkuip
jkuip / email.php
Created September 18, 2015 15:17
Simple PHP email
<!DOCTYPE html>
<html>
<head>
<title>Email</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
@jkuip
jkuip / question.php
Created September 18, 2015 15:16
Simple PHP question
<!DOCTYPE html>
<html>
<head>
<title>Question</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
@jkuip
jkuip / greeting.php
Created September 18, 2015 15:15
Simple PHP greeting
<!DOCTYPE html>
<html>
<head>
<title>Greeting</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
//
// MyCustomView.m
// square3
//
// Created by John Kuiphoff on 2/23/09.
// Copyright 2009 __MyCompanyName__. All rights reserved.
//
#import "MyCustomView.h"