Skip to content

Instantly share code, notes, and snippets.

View hilukasz's full-sized avatar

Łukasz Wieczorek hilukasz

View GitHub Profile
<?php
/**
* @package WordPress
* @subpackage Default_Theme
*/
/** begin Visual Hero custom post types additions **/
/** initialize things, and stuff. you know? You just have to… stop asking questions **/
/******************
// Business
******************/
function my_custom_post_business() {
$labels = array(
'name' => _x( 'business', 'post type general name' ),
'singular_name' => _x( 'business', 'post type singular name' ),
'add_new' => _x( 'Add New', 'book' ),
'add_new_item' => __( 'Add New business' ),
GNU gdb 6.3.50-20050815 (Apple version gdb-1822) (Sun Aug 5 03:00:42 UTC 2012)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".tty /dev/ttys000
[Switching to process 505 thread 0x0]
kill
quit
int time = 1000;
int[] fromRGB = { 100, 0, 255 };
int[] toRGB = { 50, 0, 0 };
void setup() {
makeTransition(fromRGB, toRGB, 1000);
}
boolean singleStep(int[] fromRGB,int[] toRGB) {
boolean keepGoing = true;
@hilukasz
hilukasz / RGB.pde
Last active December 12, 2015 02:19
void setup(){
makeTransition(fromRGB, toRGB, 1000);
//exit();
}
int time = 1000;
int[] fromRGB = { 100, 0, 255 };
int[] toRGB = { 50, 0, 0 };
void makeTransition(int[] fromRGB, int[] toRGB, int time){
/*
Smoothing
Reads repeatedly from an analog input, calculating a running average
and printing it to the computer. Keeps ten readings in an array and
continually averages them.
The circuit:
* Analog sensor (potentiometer will do) attached to analog input 0
void setup(){
Serial.begin(9600);
}
void loop(){
Serial.println("test");
}
/*
code by Łukasz Wieczorek : http://hellowoo.com
feel free to modify code, just give me some credz
and keep this message in tact
kloveyou.
*/
// TODO:
// Add "flick" physics
// Break up into classes
// make the scroll smoother
/*
code by Łukasz Wieczorek : http://hellowoo.com
feel free to modify code, just give me some credz
and keep this message in tact
kloveyou.
*/
int IRpin = 3,
rawDataz,
values[4],
void setup() {
Serial.begin(9600);
}
void loop()
{
Serial.println("Can it be true?! A serial monitor indeed!");
delay(10);
}