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 <[email protected]>, 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];