Skip to content

Instantly share code, notes, and snippets.

View mm-git's full-sized avatar
🏠
Working

Motoyasu Meguro mm-git

🏠
Working
View GitHub Profile
@mm-git
mm-git / StaticMap.js
Created May 22, 2013 03:02
This add a static map function to jQuery as a plug-in. Poly-line is available. The canvas is needed on your browser. Usage : $("<div>").css({width:200,height:200}).staticMap(point, lines, zoom); point and lines(array) are google.maps.LatLng object.
(function($){
var TILE_SIZE = 256;
var TILE_URL = "http://tile.openstreetmap.org/";
$.fn.staticMap = function(point, lines, zoom){
return this.each(function(i){
var _this = this;
var width = $(this).width();
var height = $(this).height();
@mm-git
mm-git / git-redmine
Created February 8, 2014 13:00
Git subcommand to access red mine by using Ruby ActiveResource class
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# git redmine
# - show all issue list
#
# git redmine n
# - show issue #n
#
# git redmine issue n status_id
@mm-git
mm-git / maptile.ipynb
Last active August 31, 2016 00:54
経度、緯度からタイル番号を求める
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mm-git
mm-git / style.json
Created November 20, 2018 15:17
This is a definition of google style map. Only intersection name is shown in Japan.
[
{
"featureType": "administrative",
"stylers": [
{
"visibility": "off"
}
]
},
{