Skip to content

Instantly share code, notes, and snippets.

View ashmigelski's full-sized avatar

Aleksey Shmigelski ashmigelski

  • Gurtam
  • Vilnius, Lithuania, EU
View GitHub Profile
@ashmigelski
ashmigelski / parser.py
Last active March 23, 2023 11:51
Python server for Wialon Retranslator 1.0
# -*- coding: utf-8 -*-
import binascii
import struct
def parse(fmt, binary, offset=0):
'''
Unpack the string
@ashmigelski
ashmigelski / index.js
Created October 8, 2014 22:13
Wialon + Node.js - Simple sample
var request = require('request');
var URL = 'https://hst-api.wialon.com/wialon/ajax.html?';
var SID = null;
function searchItems () {
var params = {
spec: {
itemsType: 'avl_unit',
propName: 'sys_name',
{
"url": "app_url",
"name": "app_name",
"title": "App Name",
"description": "Small description",
"author": {
"name": "your_name",
"url": "your_site"
},
"modules": [
@ashmigelski
ashmigelski / index.html
Last active December 21, 2015 20:49
jquery-flot "plothover" example
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Flot hover bug</title>
<script type='text/javascript' src='http://code.jquery.com/jquery-1.8.3.js'></script>
<script type='text/javascript' src="http://www.flotcharts.org/flot/jquery.flot.js"></script>
<style type='text/css'>
#container{ width:100%; }
#plot{ width:400px; height:300px; float:left;}