Skip to content

Instantly share code, notes, and snippets.

View maripo's full-sized avatar
💭
I may be slow to respond.

Maripo GODA maripo

💭
I may be slow to respond.
View GitHub Profile
@maripo
maripo / delauney_triangulation.js
Created April 21, 2013 04:56
Delauney Triangulation
/**
* Usage
* var nodes = [{x:x0,y:y0},{x:x1,y:y1},{x:x2,y:y2}.....];
* var edges = new Delauney(w, h).triangulate(nodes);
*/
var Delauney = function (width, height) {
//init
this.width = width;
this.height = height;
this.triangles = [];
@maripo
maripo / lists_of_black_holes
Last active December 16, 2015 22:20
lists of black holes
http://en.wikipedia.org/wiki/List_of_black_holes
http://heasarc.nasa.gov/docs/swift/results/transients/BlackHoles.html
http://www.johnstonsarchive.net/relativity/bhctable.html
#!/usr/bin/perl
# replace_resource_ids.pl
# It replaces resource IDs (R.string.xxx) in source files with resource string
# and write in STDOUT.
# usage: ./replace_resource_ids.pl strings.xml Hoge.java
use strict;
my $dictFile = $ARGV[0];
my $convertFile = $ARGV[1];
@maripo
maripo / marutai_curry_ramen.md
Created July 5, 2014 16:46
マルタイ棒ラーメンでカレー麺

マルタイ棒ラーメンでカレー麺

材料 (1人分)

  • 玉葱: 1/2個
  • マルタイ棒ラーメン: 1把
  • サラダオイル: 大さじ1
  • 鶏肉: てきとー
  • 生姜: てきとー
  • クミンシード: てきとー
  • コリアンダーパウダー: てきとー
@maripo
maripo / attiny10_int0.c
Created July 10, 2014 08:55
Attiny10 INT0 snippet
#include <avr/interrupt.h>
#include <avr/io.h>
ISR(INT0_vect) {
//Do Something
}
int main(void) {
EIMSK |= (1 << INT0);
PCMSK = (1 << PCINT0);
@maripo
maripo / curry_udon.md
Last active August 29, 2015 14:05
キーマカレー皿うどん
@maripo
maripo / rarejob_tomorrows_lesson.md
Last active August 29, 2015 14:05
RareJob Tomorrow's Lesson Bookmarklet
@maripo
maripo / NSDate+Comparison.h
Created September 1, 2014 08:34
NSDate+Comparison
#import <Foundation/Foundation.h>
@interface NSDate (Comparison)
- (BOOL) isBefore: (NSDate*) date;
- (BOOL) isAfter: (NSDate*) date;
@end
@maripo
maripo / japan_trees.xml
Last active February 28, 2018 05:45
日本の樹木プリセット (仮)
<?xml version="1.0"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" author="Maripo GODA and contributors" description="日本でよく見られる樹木のプリセットです" shortdescription="日本の樹木">
<chunk id="japan_trees">
<text key="operator" text="運営者"/>
<text key="ref" text="参照番号"/>
<text key="height" text="高さ(m)"/>
<text key="circumference" text="幹の外周(m)"/>
<combo key="denotation" text="特徴" values="landmark,natural_monument,avenue,urban"/>
<check key="monument" text="記念樹"/>
</chunk>
@maripo
maripo / japan_okinawa_trees.xml
Last active February 24, 2018 13:22
沖縄県の樹木
<?xml version="1.0"?>
<presets xmlns="http://josm.openstreetmap.de/tagging-preset-1.0" author="Maripo GODA and contributors" description="日本でよく見られる樹木のプリセットです" shortdescription="日本の樹木">
<chunk id="japan_trees">
<text key="operator" text="運営者"/>
<text key="ref" text="参照番号"/>
<text key="height" text="高さ(m)"/>
<text key="circumference" text="幹の外周(m)"/>
<combo key="denotation" text="特徴" values="landmark,natural_monument,avenue,urban"/>
<check key="monument" text="記念樹"/>
</chunk>