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
<?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 **/ |
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
/****************** | |
// 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' ), |
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
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 |
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 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; |
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
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){ |
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
/* | |
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 |
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
void setup(){ | |
Serial.begin(9600); | |
} | |
void loop(){ | |
Serial.println("test"); | |
} |
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
/* | |
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 |
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
/* | |
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], |
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
void setup() { | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
Serial.println("Can it be true?! A serial monitor indeed!"); | |
delay(10); | |
} |