Skip to content

Instantly share code, notes, and snippets.

View masaakif's full-sized avatar

fujiwara-masaaki masaakif

View GitHub Profile
//Gorua
CmdUtils.CreateCommand({
name: "gorua",
takes: {"Gorua": noun_arb_text},
preview: function(pblock) {
pblock
pblock.innerHTML = "<small>d:削除<br>g:うおっ、なんかすげえ所に迷い込んじまったぞ、ゴルァ!<br>ns:なんだってー小<br>nb:なんだってー大</small>"
},
execute: function(arg) {
doc = CmdUtils.getDocumentInsecure();
@masaakif
masaakif / amazon_chuo_ward_library.user.js
Created December 16, 2008 06:45
Amazon Chuo Ward Library Linky
// ==UserScript==
// @name Amazon Chuo Ward Library Linky
// @namespace http://gist.github.com/36358
// @description Chuo Ward Library Lookup from Amazon book listings.
// @include http://*.amazon.*
// ==/UserScript==
// Version 20090105
var DEBUG=true;
自分のところのショートカットなど、いろいろな設定
[Firefox]
Ctrl+J : Launch Ubiquity
Ctrl+D : Delicious bookmark
Ctrl+B : Open Delicious sidebar
Ctrl+Shift+N : Open FoxAge2ch sidebar
[Craftlaunch]
" vim:set ts=8 sts=2 sw=2 tw=0:
"
" Last Change: 18-Dec-2008.
" Maintainer: masaakif
" source $VIM/masaakif_rc
set guifont=MS_Gothic:h9:cSHIFTJIS
map "s :set guifont=BDF_M+:h7.5:cSHIFTJIS<CR>
// ==UserScript==
// @name Dokusyo meter
// @namespace http://gist.github.com/37725
// @description Link to Dokusyo meter
// @include http://*.amazon.*
// ==/UserScript==
// Version 20070301
var DEBUG=true;
@masaakif
masaakif / add_favicon_for_2chbbsreader.user.js
Created January 6, 2009 07:29
add_favicon_for_2chbbsreader.user.js
// ==UserScript==
// @name Add favicon for bbs2chreader
// @namespace http://gist.github.com/43714
// @include http://127.0.0.1:8823/thread/http*
// ==/UserScript==
var AddFavicon = {
execute: function() {
var header = document.evaluate("//head/link", document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
if (header) {
int value = 0;
void setup() {
size(800, 800);
randomSeed(0);
noLoop();
}
void draw() {
float cX = mouseX;
@masaakif
masaakif / Processing - Draw Square
Created January 13, 2009 03:17
Processing - Draw Square
int MAX = 500;
RectDrawer[] rd;
void setup() {
rd = new RectDrawer[MAX];
size(800, 800, P3D);
noStroke();
randomSeed(0);
frameRate(30);
for (int i = 0; i < MAX; i++) {
@masaakif
masaakif / Processin_Draw_Square_Debug.java
Created January 14, 2009 05:25
Processing - Draw Square - Debug
int MAX = 500;
int idx = 0;
RectDrawer[] rd;
int prevMouseX, prevMouseY;
color cl1 = color(255,0,0);
void setup() {
rd = new RectDrawer[MAX];
size(500, 500);
noStroke();
@masaakif
masaakif / startproce55ing.vim
Last active February 27, 2018 16:13
Launch Processing from vim, give file opening in the current window to Processing.
"==============================================================================
"startproce55ing.vim : Launch Processing from vim, give file opening in the current window to Processing.
"==============================================================================
"$VIMRUNTIMEPATH/plugin/startproce55ing.vim
"==============================================================================
" Last Change:
" Written by: masaakif
"==============================================================================
" StartProce55ingでPDEファイルを起動する
"