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 = [];
--------------------------------------------------
-- createnote.applescript
-- Evernote Command Line Proxy
-- by Maripo Goda <goda.mariko[at]gmail.com>
-- Required:
-- Mac OS X + AppleScript
-- Evernote for Mac OS X
-- Usage:
-- Create a note with text
-- > osascript createnote.applescript --title='Sample Note 1' --text='Test Text'
にゃーにゃーにゃーにゃーにゃーにゃーみゃうぅぅんみゃっにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーふみゃおんみゃーんごろごろ>にゃー
にゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃおーん
みゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんにゃおーん
みゃーんみゃーんにゃおーん
にゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃおーん
みゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんみゃーんにゃおーん
みゃーんみゃーんにゃおーん
にゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃおーん
みゃーんみゃーんみゃーんにゃおーん
にゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃーにゃおーん
@maripo
maripo / split.applescript
Created March 5, 2013 15:47
"Split" method for AppleScript
on split(txt, delimiter)
set defaultDelimiter to AppleScript's text item delimiters
set AppleScript's text item delimiters to delimiter
set res to text items of txt
set AppleScript's text item delimiters to defaultDelimiter
return res
end split
@maripo
maripo / createnote.applescript
Created March 5, 2013 02:22
Evernote Local API Command Line Proxy
--------------------------------------------------
-- createnote.applescript
-- Evernote Command Line Proxy
-- by Maripo Goda <goda.mariko[at]gmail.com>
-- Required:
-- Mac OS X + AppleScript
-- Evernote for Mac OS X
-- Perl + JSON.pm
-- Usage:
-- Create a note with text
// ==UserScript==
// @name Rarejob Note Creator
// @namespace maripo.org
// @description Create evernote notes for RareJob lessons
// @include https://www.rarejob.com/login/top.php*
// @grant none
// @version 1
// ==/UserScript==
(function () {
@maripo
maripo / github_gist_logo.user.js
Created October 29, 2012 10:39
Enhance the top logo of github:gist
// ==UserScript==
// @name github_gist_logo
// @namespace maripo.org
// @description Enhance the top logo of github:gist
// @include https://gist.github.com/*
// @version 1
// ==/UserScript==
(function()
@maripo
maripo / wikipedia_language_labels.user.js
Created October 21, 2012 02:25
Enhance links to other languages on Wikipedia
// ==UserScript==
// @name Wikipedia Language Labels
// @namespace org.maripo.neta
// @description Enhance links to other languages (e.g. Change "Français" to "Étoile (Français)" on http://en.wikipedia.org/wiki/Star )
// @include http://*.wikipedia.org/wiki/*
// @grant none
// @version 1
// ==/UserScript==
@maripo
maripo / LifelogOrLaphroaig.user.js
Created August 29, 2012 12:01
LifelogOrLaphroaig (ライフログとラフロイグの空目を防止する)
// ==UserScript==
// @name LifelogOrLaphroaig
// @namespace org.maripo.neta
// @description ライフログとラフロイグの空目を防止する
// @include *
// ==/UserScript==
(function () {
var STRING_LIFELOG = 'Lifelog';
var STRING_LAPHROAIG = 'Laphroaig';
@maripo
maripo / AndroidOrArduino.user.js
Created August 29, 2012 11:55
AndroidOrArduino AndroidとArduinoの空目を防止する
// ==UserScript==
// @name AndroidOrArduino
// @namespace org.maripo.neta
// @description AndroidとArduinoの空目を防止する
// @include *
// ==/UserScript==
(function () {
var STRING_ARDUINO = 'あるどぅいーの';
var STRING_ANDROID = 'あんどろいど';