Skip to content

Instantly share code, notes, and snippets.

View gabonator's full-sized avatar
👨‍🏭
at work

Gabriel Valky gabonator

👨‍🏭
at work
View GitHub Profile
@gabonator
gabonator / updater_server.php
Created April 24, 2014 16:32
IP9100/Yoics frame grabber/uploader running on router wl500g premium (linux)
<?
$post = file_get_contents('php://input');
if ( strlen($post) > 10 )
{
file_put_contents("cam", $post);
die();
}
if ( $_SERVER["QUERY_STRING"] == "" )
{
?>
@gabonator
gabonator / build.bat
Created July 22, 2014 13:42
Microsoft Visual Studio - commandline build
@echo off
set VC=%VS80COMNTOOLS%\..\..\VC
call "%VC%\vcvarsall.bat"
set path=%VC%\bin\;%VC%\..\Common7\IDE\
set include=%VC%\include\;%VC%\PlatformSDK\Include\
set lib=%VC%\PlatformSDK\Lib\;%VC%\lib\
@gabonator
gabonator / ApplicationSDK.cpp
Created April 27, 2015 09:59
Hopper test pre Auru
class CJsFunctions
{
struct TTimer
{
INT nShots;
CString strCall;
INT lLast;
INT lInterval;
DWORD dwId;
};
@gabonator
gabonator / dirlist.txt
Created May 7, 2015 09:21
Imagemagick scaling scripts (VBS)
attrib *.*
A GuiOverlay\traffic2\10loading(1).png
H GuiOverlay\traffic2\10loading(1).png.mftc
H GuiOverlay\traffic2\10loading(1).png.size
A GuiOverlay\traffic2\10loading(2).png
H GuiOverlay\traffic2\10loading(2).png.mftc
H GuiOverlay\traffic2\10loading(2).png.size
A GuiOverlay\traffic2\10loading(3).png
H GuiOverlay\traffic2\10loading(3).png.mftc
@gabonator
gabonator / index.html
Created May 22, 2015 11:44
Sygic aura gps emulator
<html>
<head>
<title>Night rider</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html { height: 100%; width:100%}
body { width:100%; height: 100%; margin: 0; padding: 0 }
#map-canvas { width:100%; height: 100%; z-index:2}
#map-canvas-small {
position:absolute; width:300px; height:300px; right:100px; top:100px; z-index:5;
@gabonator
gabonator / tfttouch.ino
Created September 5, 2015 16:12
Itead studio 2.4 TFT Touch shield for arduino (Arduino Uno)
#include <arduino.h>
// Itead studio 2.4 TFT Touch shield for arduino (Arduino Uno)
// http://wiki.iteadstudio.com/2.4_TFT_LCD_Touch_shield
class CCalibration
{
// Carlos E. Vidales
// http://www.embedded.com/design/system-integration/4023968/How-To-Calibrate-Touch-Screens
// input range 0..1024
@gabonator
gabonator / spipe.cpp
Created April 26, 2012 13:13
Socket connector - double server
// spipe.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include <signal.h>
BOOL m_bRunning = FALSE;
class CNetwork {
public:
@gabonator
gabonator / Tables.cpp
Created April 26, 2012 13:16
Layout tables
#include <pch.h>
#include "Tables.h"
#define foreach(decl) for ( decl = m_pListFirst; pElement; pElement = pElement->m_pNext )
/*virtual*/
void CTableWnd::GetClientRect( LPRECT prcRect )
{
_ASSERT(prcRect);
CRect *pRect = (CRect*) prcRect;
@gabonator
gabonator / TimeZonesDlg.cpp
Created April 26, 2012 13:53
Timezones export
// TimeZonesDlg.cpp : implementation file
//
#include "stdafx.h"
#include "TimeZonesMFC.h"
#include "TimeZoneDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
@gabonator
gabonator / ft.cpp
Created May 3, 2012 14:05
discrete Fourier transform
// fourier.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <math.h>
#include <iostream>
using namespace std;
//#include <windows.h>
typedef float FLOAT;