Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
@mattn
mattn / release.pl
Created January 5, 2009 08:33 — forked from mattn/release.pl
#!perl
use strict;
use warnings;
use Config::Pit;
use Getopt::Long;
use WWW::Mechanize;
use Perl6::Say;
my $conf = pit_get("vim.com", require => {
"username" => "your username on vim.org", # NOTE: do not edit this line
@mattn
mattn / c.c
Created January 19, 2009 04:14 — forked from cho45/c.c
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
typedef struct entry {
char* path;
@mattn
mattn / c.c
Created February 4, 2009 00:09 — forked from cho45/c.c
//#!gcc -g -O0 -Wall
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
# Blosxom Plugin: urlshorter
# Author(s): Kyo Nagashima <kyo@hail2u.net>, http://hail2u.net/
# Version: 2009-04-15
# Documentation: See the bottom of this file or type: perldoc urlshorter
package urlshorter;
use strict;
use vars qw($link_element);
@mattn
mattn / gist:188420
Created September 17, 2009 09:26 — forked from tokuhirom/gist:188418
mattn: pipe() は Perl の場合、win32 でもうごきますか?
動きます。
-----------------------------------------
#!/usr/bin/perl -w
use IO::Handle;
pipe(PARENTREAD, PARENTWRITE);
@mattn
mattn / gist:188422
Created September 17, 2009 09:29 — forked from yappo/gist:188421
mattn: さいたまさいたまー?
いえ、ちがいます
@mattn
mattn / gist:188520
Created September 17, 2009 14:30 — forked from iratqq/gist:188518
mattn: さいたまさいたまー?
いえ、ちがいます
ちがうのか
ぜんぜんちがいます。
                        ┌───┐
                       | さ |
関西も雨です。
// ==UserScript==
// @name gist: replace title with filename
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @exclude http://gist.github.com/gists
// ==/UserScript==
(function() {
var $ = $ || unsafeWindow.$;
var username = $('#owner a').text()
@mattn
mattn / peyon.go
Created November 27, 2009 06:32 — forked from yappo/mattn.go
ペヨン順
package main
import "sort";
type PeYon []string
func (p PeYon) Len() int {
return len(p);
}
func (p PeYon) Less(i, j int) bool {
return p[i] < p[j];