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
// Arduino Sprinkler | |
// Version: 0.4 (beta) | |
// Updated: 03 Oct 2011 | |
#include <LiquidCrystal.h> | |
#include <EEPROM.h> | |
// SWITCHES | |
// Pin 1 (Learn/Auto) |
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
/** | |
* related blogpost at http://sidekick.windforwings.com/2012/04/memcache-vs-database-for-simple-selects.html | |
*/ | |
#include <mysql.h> | |
#include <stdio.h> | |
#include <string.h> | |
int main(int argc, char **argv) { | |
MYSQL *conn; |
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 <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <pthread.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
/** | |
* related blogpost at: http://sidekick.windforwings.com/2012/05/inter-thread-communication-socketpairs.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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Oct 1 10:28:26 2012 | |
Companion merge script for Android "My Archives" application. | |
App: https://play.google.com/store/apps/details?id=com.meeteoric.myarchives&hl=en | |
Instructions: http://sidekick.windforwings.com/2012/10/python-script-to-merge-my-archives-call.html | |
@author: tan |
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
# Sample to be used along with: | |
# Mashape otpgen API at https://www.mashape.com/tanmaykm/otpgen | |
# Related blog post at http://sidekick.windforwings.com/2012/11/a-one-time-password-service.html | |
import time, hashlib | |
from Otpgen import Otpgen | |
MY_MASHAPE_PUB_KEY = '__REPLACE_WITH_YOUR_MASHAPE_PUBLIC_KEY__' | |
MY_MASHAPE_PRIV_KEY = '__REPLACE_WITH_YOUR_MASHAPE_PRIVATE_KEY__' | |
MY_OTPGEN_SECRET = "secret1" |
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
/* | |
* motion_detect.cpp | |
* To accompany instructions at: | |
* http://sidekick.windforwings.com/2012/12/opencv-motion-detection-based-action.html | |
* | |
* Created on: Dec 02, 2012 | |
* Author: tan | |
* | |
*/ | |
#include <iostream> |
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
/* | |
* hough_impl.cpp | |
* | |
* Created on: Dec 11, 2012 | |
* Author: tan | |
* | |
* Related blog post at: | |
* http://sidekick.windforwings.com/2012/12/implementing-hough-transform.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
/* | |
* cv_utils.cpp | |
* | |
* Created on: Dec 7, 2012 | |
* Author: tan | |
* Related blog post at: | |
* http://sidekick.windforwings.com/2012/12/opencv-separating-items-on-store-shelves.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
/* | |
* remap_circle.cpp | |
* | |
* Created on: Dec 28, 2012 | |
* Author: tan | |
* Related blog post at: | |
* http://sidekick.windforwings.com/2012/12/opencv-fun-with-remap.html | |
*/ | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc/imgproc.hpp> |
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
# A Julia program to generate Julia set images. | |
# Images are written on to stdout in PGM format. | |
# Args: | |
# image size (pixels. width and height are equal to this. default 200) | |
# value of complex parameter real part (default 0) | |
# value of complex parameter imaginary part (default 0.65) | |
# Accompanying post at: http://sidekick.windforwings.com/2013/02/julia-sets-using-julia.html | |
w,h = 200 | |
c = 0 + 0.65im |
OlderNewer