Skip to content

Instantly share code, notes, and snippets.

View andrecurvello's full-sized avatar

André Márcio de Lima Curvello andrecurvello

View GitHub Profile
@khwas
khwas / ILI9341
Last active November 29, 2015 22:49
QVGA over SPI Initialization, choosing left top, orientation and X, Y meaning, rectangles, lines, colors. Speed test
#include <Wire.h> // Use Wire according to arcticle https://garretlabs.wordpress.com/2014/03/18/the-dark-side-of-porting-arduino-sketches-on-intel-galileo-part-one/
int RESET_PIN = 8;
int DC_PIN = 9;
int CS_PIN = 7;
int MOSI_PIN = 2;
int MISO_PIN = 12;
int SCK_PIN = 3;
//TFT resolution 240*320
@alansaid
alansaid / tweets.py
Last active November 30, 2015 03:22
Get all tweets with a certain hashtag
from TwitterAPI import TwitterAPI
from TwitterAPI import TwitterRestPager
from natsort import versorted
import json, sys, glob, os
def main(args):
if len(args) < 2:
print "usage: python tweets.py #hashtag"
print ""
@sbleon
sbleon / CMakeLists.txt
Created October 5, 2014 02:25
Update CMakeLists.txt for picam_gpu
cmake_minimum_required(VERSION 2.8)
project( picam )
SET(COMPILE_DEFINITIONS -Werror)
find_package( OpenCV REQUIRED )
include_directories(/opt/vc/include)
include_directories(/opt/vc/include/interface/vcos)
include_directories(/opt/vc/include/interface/vcos/pthreads)
include_directories(/opt/vc/include/interface/vmcs_host/linux)
include_directories(/opt/vc/include/host_applications/linux/libs/bcm_host/include)
link_directories(/opt/vc/lib)