Skip to content

Instantly share code, notes, and snippets.

View astronasutarou's full-sized avatar

Ryou Ohsawa astronasutarou

View GitHub Profile
@astronasutarou
astronasutarou / voronoi.gp
Created February 7, 2013 06:21
ボロノイ図を陰線処理で作成する方法 on gnuplot
#!/usr/bin/gnuplot
## define cone function
cone(x,y,cx,cy) = 1 - sqrt((x-cx)**2+(y-cy)**2)
## set hidden line removal
set hidden3d
## set view
set view 0,0
@astronasutarou
astronasutarou / jibanyan_equation.matlab
Last active August 29, 2015 14:09 — forked from Akiyah/jibanyan_equation
jibanyan_equation を Octave で
jibanyan_equation = @(x,y) ...
min(max(max(min(1-(x/108).^2-(y/94).^2, y), ...
min(1-((abs(x)-119)/103).^2-((y-56)/86).^2, ...
1-((abs(x)-15)/77).^2-((y-119)/100).^2)), ...
max(1-((abs(x)-42)/66).^2-(y/55).^2, ...
min(min(55+y,51-abs(x)),-y))),3.*abs(y-100)-2.*(x-75)) ...
.* min(min(max(max(min(1-(x/106).^2-(y/92).^2,y), ...
min(min(1-((abs(x)-119)/101).^2-((y-56)/84).^2, ...
((abs(x)-99)/40).^2+((y-54)/86).^2-1),92-abs(x))), ...
1-((abs(x)-42)/64).^2-(y/53).^2),min(min(((abs(x)-52)/26).^2 ...
@astronasutarou
astronasutarou / loadMathJaX2ADS.user.js
Last active August 2, 2016 05:06
NASA ADS の abstract にて自動的に MathJax をインポートする GreaseMonkey スクリプト
// ==UserScript==
// @name ADS+MathJax
// @namespace http://xr0038.net
// @description automatically load MathJax in SAO/NASA ADS
// @include http://adsabs.harvard.edu/abs/*
// @version 1.1
// @grant none
// ==/UserScript==
(function(URL){
@astronasutarou
astronasutarou / pixiv_search_imas.txt
Last active November 8, 2015 09:35 — forked from anonymous/pixiv_search_imas.txt
2015.11.08 アイドルマスターシンデレラガールズ Pixiv 検索数調査結果
## 2015.11.08
# アイドルマスターシンデレラガールズ Pixiv 検索数調査結果
# カラムの内容は以下の通り
# 1. 名前
# 2. 年齢
# 3-4. 身長, 体重
# 5-7. スリーサイズ
# 8. 名前 での検索 hit 数
# 9. 名前+R-18 での検索 hit 数
# 10. 名前+R-18G での検索 hit 数
@astronasutarou
astronasutarou / jump2.adsabs.harvard.edu.user.js
Last active May 17, 2016 12:08
任意の SAO/NASA ADS に自動でジャンプするためのユーザスクリプト
// ==UserScript==
// @name jump2adsabs
// @namespace http://xr0038.net
// @description Authomatically jump to another SAO/NASA ADS
// @include http://adsabs.harvard.edu/*
// @include http://cdsads.u-strasbg.fr/*
// @include http://ukads.nottingham.ac.uk/*
// @include http://esoads.eso.org/*
// @include http://ads.ari.uni-heidelberg.de/*
// @include http://ads.inasan.ru/*
@astronasutarou
astronasutarou / add.link.adsbeta.user.js
Created May 19, 2016 11:32
ui.adsabs.harvard.edu のアブストラクトページで bibcode に古い SAO/NASA ADS (adsabs.harvard.edu) へのリンクを追加するユーザスクリプト
@astronasutarou
astronasutarou / conkyrc
Last active April 3, 2017 00:05
.conkyrc template for LinuxMint
# .conkyrc: the original version created by fabsh <[email protected]>
# v. 1.0
# Use Xft?
use_xft yes
xftfont M+ 1p:Light:size=16
xftalpha 1.0
text_buffer_size 2048
# Update interval in seconds
@astronasutarou
astronasutarou / mozc-dictionary-tool.desktop
Created March 30, 2017 02:10
create /usr/share/applications/mozc-dictionary-tool.desktop to add a shortcut to mozc-dictionary tool (LinuxMint 18.1)
[Desktop Entry]
Name=Mozc Dictionary Tool
ENcoding=UTF-8
Exec=/usr/lib/mozc/mozc_tool --mode=dictionary_tool
Icon=/usr/share/icons/mozc/ime_product_icon_opensource-32.png
Type=Application
Terminal=false
Comment=Launch Mozc Dictionary Tool
StartupNotify=true
Categories=Settings;
@astronasutarou
astronasutarou / banana.svg
Last active September 15, 2017 14:00
original image created by @niewals (see https://twitter.com/niewals/status/869526811020939264/ )
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@astronasutarou
astronasutarou / amazon.url.cleaner.user.js
Last active January 9, 2023 21:39
amazon.co.jp の url から余分なものを取り去って綺麗にする
// ==UserScript==
// @name Amazon URL Cleaner
// @namespace http://xr0038.net
// @description Clean Amazon item URL
// @include http://www.amazon.co.jp*/dp/*
// @include https://www.amazon.co.jp*/dp/*
// @include http://www.amazon.co.jp*/gp/*
// @include https://www.amazon.co.jp*/gp/*
// @run-at document-start
// @version 1.2