Skip to content

Instantly share code, notes, and snippets.

View baturin's full-sized avatar

Alexey Baturin baturin

  • Novosibirsk, Russia
View GitHub Profile
@baturin
baturin / gist:4eda907d3b7dbc9d02c8
Created February 1, 2015 18:50
osm wikovoyage poi
--- /tmp/eB8iAd_AmenityType.java 2015-02-02 00:49:26.055866038 +0600
+++ OsmAnd-java/src/net/osmand/data/AmenityType.java 2015-01-15 22:40:04.441862245 +0600
@@ -46,10 +46,11 @@
public static AmenityType NATURAL = reg("natural", "natural"); // [TAG] natural places, peaks, caves, trees,... //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType LANDUSE = reg("landuse", "landuse"); // [TAG] landuse //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType MILITARY = reg("military", "military"); // [TAG] military //$NON-NLS-1$ //$NON-NLS-2$
public static AmenityType OSMWIKI = reg("osmwiki", "osmwiki"); //$NON-NLS-1$
+ public static AmenityType WIKIVOYAGE = reg("wikivoyage", "wikivoyage"); //$NON-NLS-1$
public static AmenityType USER_DEFINED = reg("user_defined", "user_defined"); //$NON-NLS-1$
@baturin
baturin / gist:1683632
Created January 26, 2012 16:27
PHP script to look for a better location of 3G modem
<?php
$fcmd = fopen('/dev/ttyUSB0', 'w');
$fp = fopen('/dev/ttyUSB0', 'r');
if ($fp === false || $fcmd === false) {
throw new Exception("Failed to open modem device");
}
$levels = array();
@baturin
baturin / debugger.py
Created November 4, 2011 12:57
VIM DBGp client fixed for remote debugging
# -*- c--oding: ko_KR.UTF-8 -*-
# remote PHP debugger : remote debugger interface to DBGp protocol
#
# Copyright (c) 2003-2006 ActiveState Software Inc.
#
# The MIT License
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
@baturin
baturin / screenrc
Created January 1, 2011 21:56
screenrc
startup_message off
defscrollback 4096
# turn sending of screen messages to hardstatus off
hardstatus off
hardstatus alwayslastline "%{= kW}%-w%{=b bW}%n %t%{-}%+w %= %c:%s"
bce on
# set these terminals up to be 'optimal' instead of vt100
termcapinfo xterm*|linux*|rxvt*|Eterm* OP
@baturin
baturin / gist:742252
Created December 15, 2010 16:59
git-rating
<?php
require_once('php-github-api/lib/phpGitHubApi.php');
$github = new phpGitHubApi();
$repositories = array(
array('jquery', 'jquery'), array('madrobby', 'scriptaculous'),
array('jashkenas', 'coffee-script'), array('yui', 'yui3'),
array('sstephenson', 'prototype'), array('mootools', 'mootools-core')
@baturin
baturin / gist:742247
Created December 15, 2010 16:56
git-repo-cohesion
<?php
require_once('php-github-api/lib/phpGitHubApi.php');
$github = new phpGitHubApi();
$repositories = array(
array('jquery', 'jquery'),
array('madrobby', 'scriptaculous'),
array('jashkenas', 'coffee-script'),