Skip to content

Instantly share code, notes, and snippets.

View masaakif's full-sized avatar

fujiwara-masaaki masaakif

View GitHub Profile
@masaakif
masaakif / 自由落下.java
Created January 19, 2009 08:13
自由落下 1
import processing.core.*;
public class JiyuuRakka extends PApplet{
Ball b1;
public void setup(){
size(200, 200);
b1 = new Ball(random(width), random(0,20));
b1.setHeight(height);
}
import processing.core.*;
public class JiyuuRakka extends PApplet{
final int MAX = 100;
int idx = 0;
Ball[] balls;
static final long serialVersionUID = 100;
float startx, starty
, endx, endy;
boolean isDragged = false;
@masaakif
masaakif / openin2chbbsreader.user.js
Last active February 27, 2018 16:10
Open 2ch in 2chbbsreader
// ==UserScript==
// @name Open 2ch in 2chbbsreader
// @namespace http://swdyh.yu.to/
// @description loading next page and inserting into current page.
// @include http://www.google.co.jp/search*
// ==/UserScript==
//
// auther: masaakif
// version: 0.0.1 2009-01-14T09:52:07+09:00
//
/* For Youtube demo, Please see below.
http://jp.youtube.com/watch?v=8vXg_EUqFY0
*/
import processing.core.*;
import JMyron.*;
import MyObjects.Ball;
import ProcessingUtils.ColorUtil;
public class PopBall extends PApplet{
JMyron m;
/* Autopagerize JSON data for cuffsncollars.co.uk */
/* cuffsncollars.co.uk */
{
url: '^http://www\.cuffsncollars\.co\.uk/.+',
nextLink: '//td[@class="body"]/a[contains(self::*, "Next")]',
pageElement: '//td[@background="/site_images/search_bg.gif"]/..',
exampleUrl: 'http://www.cuffsncollars.co.uk/novelty_cufflinks_and_gift_items.asp?page=2',
},
@masaakif
masaakif / action-codingで実行.js
Created February 3, 2009 08:38
action-codingで実行
//action-coding で実行
//MDIE Ver 0.2.5.3
main();
function main(){
var i;
var opt = "";
//メインループ
for(i=0;i<FolderView.Count;i++){
@masaakif
masaakif / test2.rb
Created February 5, 2009 06:25
action-coding、サンプル2:絵柄が流れる。
#
# test2.rb
# my 2nd sample of Processing + action-coding
# Pops up circle + rect on the window randomly position, color.
# Then it flows down to bottom.
#
$ss = []
def setup
size 200, 200
@masaakif
masaakif / mygvim_rc
Last active February 27, 2018 16:11
自分用のvimrc追加コマンド
" vim:set ts=8 sts=2 sw=2 tw=0:
"
" Last Change: 05-Feb-2009.
" Maintainer: masaakif
" source $VIM/fujiwara_rc
set guifont=BDF_M+:h7.5:cSHIFTJIS
map "s :set guifont=BDF_M+:h7.5:cSHIFTJIS<CR>
var shell = new ActiveXObject("WScript.Shell");
var driveLetter = FolderView.Path.substr(0,1).toLowerCase();
var cmdline = 'cmd.exe /k';
if (driveLetter == "c") {
cmdline += ' "cd ' + FolderView.Path + '"';
}
else {
cmdline += ' "cd ' + FolderView.Path + ' && ' + driveLetter + ':"';
}
@masaakif
masaakif / add_youku_jinakin.user.js
Created March 30, 2009 05:27
add_youku_direct_link.user.js
// ==UserScript==
// @name Youku Add Direct Link
// @namespace http://gist.github.com/xxxxx
// @description Add direct links to movie files from Youku
// @include http://*.youku.com/*
// ==/UserScript==
// Version 200909??
var DEBUG=true;