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
// http://www.arduinoecia.com.br/2014/09/sensor-gy-80-acelerometro-bussola-barometro.html | |
// Read this for I2C wiring - https://www.arduino.cc/en/Reference/Wire | |
// -------------------------------------- | |
// i2c_scanner | |
// | |
// Version 1 | |
// This program (or code that looks like it) | |
// can be found in many places. | |
// For example on the Arduino.cc forum. | |
// The original author is not know. |
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
// https://www.bananarobotics.com/shop/How-to-use-the-HG7881-%28L9110%29-Dual-Channel-Motor-Driver-Module | |
/* | |
HG7881_Motor_Driver_Example - Arduino sketch | |
This example shows how to drive a motor with using HG7881 (L9110) Dual | |
Channel Motor Driver Module. For simplicity, this example shows how to | |
drive a single motor. Both channels work the same way. | |
This example is meant to illustrate how to operate the motor driver | |
and is not intended to be elegant, efficient or useful. |
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 <LGPS.h> | |
gpsSentenceInfoStruct info; | |
char buff[256]; | |
char gmaps_buff[50]; | |
static unsigned char getComma(unsigned char num,const char *str) | |
{ | |
unsigned char i,j = 0; | |
int len=strlen(str); |
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
/** | |
* There is a pull request, but not merged, https://github.com/jaredhanson/passport-http-oauth/pull/10 | |
* I think | |
* ,path = req.originalUrl || req.url || ''; | |
* may solve the problem. whatever. | |
*/ | |
function originalUrlHack(req, res, next) { | |
if (typeof (req.originalUrl) != 'undefined' && req.url != req.originalUrl) | |
req.url = req.originalUrl; | |
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
/* | |
* function: kernel_3a_stats | |
* input: image2d_t as read only | |
* output: XCamGridStat, stats results | |
*/ | |
typedef struct | |
{ | |
unsigned int avg_y; |
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
// Gaussian filter of image | |
__kernel void gaussian_filter(__read_only image2d_t srcImg, | |
__write_only image2d_t dstImg, | |
sampler_t sampler, | |
int width, int height) | |
{ | |
// Gaussian Kernel is: | |
// 1 2 1 |
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
/* | |
* libjingle | |
* Copyright 2012, Google Inc. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright notice, | |
* this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright notice, |
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
// | |
// Created by sukinull on 2/14/14. | |
// Copyright (c) 2014 sukinull. All rights reserved. | |
// | |
// With libuv | |
// | |
// based on nopoll_w_cb.c - https://gist.github.com/sukinull/9328010#file-nopoll_w_cb-c | |
// and integrated with libuv | |
// |
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
// | |
// Created by sukinull on 2/14/14. | |
// Copyright (c) 2014 sukinull. All rights reserved. | |
// | |
// based on nopoll_pure.c - https://gist.github.com/sukinull/9327937#file-nopoll_pure-c | |
// add callback function for receive | |
// | |
#include <stdio.h> | |
#include <nopoll.h> |
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
// | |
// Created by sukinull on 2/14/14. | |
// Copyright (c) 2014 sukinull. All rights reserved. | |
// | |
// Simplest websocks example using nopoll - http://www.aspl.es/nopoll/ | |
// remark nopoll_conn_set_sock_block (session, nopoll_false); in nopoll_conn_sock_connect under OS X | |
// use nopoll_conn_set_sock_block to set sock non-block after connect | |
// | |
#include <stdio.h> |
NewerOlder