Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍🏭
at work

Gabriel Valky gabonator

👨‍🏭
at work
View GitHub Profile
@gabonator
gabonator / updater_server.php
Created Apr 24, 2014
IP9100/Yoics frame grabber/uploader running on router wl500g premium (linux)
View updater_server.php
<?
$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 Jul 22, 2014
Microsoft Visual Studio - commandline build
View build.bat
@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\
View ApplicationSDK.cpp
class CJsFunctions
{
struct TTimer
{
INT nShots;
CString strCall;
INT lLast;
INT lInterval;
DWORD dwId;
};
@gabonator
gabonator / dirlist.txt
Created May 7, 2015
Imagemagick scaling scripts (VBS)
View dirlist.txt
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
Sygic aura gps emulator
View index.html
<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 Sep 5, 2015
Itead studio 2.4 TFT Touch shield for arduino (Arduino Uno)
View tfttouch.ino
#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 Apr 26, 2012
Socket connector - double server
View spipe.cpp
// spipe.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include <signal.h>
BOOL m_bRunning = FALSE;
class CNetwork {
public:
View Tables.cpp
#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;
View TimeZonesDlg.cpp
// 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
discrete Fourier transform
View ft.cpp
// 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;
You can’t perform that action at this time.