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
#include <stdio.h>
#include <stdlib.h>
void dan_the_over_flow(void) {
printf("dan the over flow!\n");
// ウヒヒなコード
exit(0);
}
void func(void) {
let s:detectLang = {
\ 'c' : 'C',
\ 'cpp' : 'C++',
\ 'd' : 'D',
\ 'haskell' : 'Haskell',
\ 'lua' : 'Lua',
\ 'ocaml' : 'Ocaml',
\ 'php' : 'PHP',
\ 'perl' : 'Perl',
\ 'python' : 'Python',
"=============================================================================
" File: dan-the-perl.vim
" Author: Yasuhiro Matsumoto <[email protected]>
" Last Change: 14-Mar-2009
"
if &cp || (exists('g:loaded_dan_the_perl_vim') && g:loaded_dan_the_perl_vim)
finish
endif
let g:loaded_dan_the_perl_vim = 1
use strict;
use warnings;
use Config::Pit;
use WWW::Mechanize;
use Web::Scraper;
use YAML;
my $config = pit_get(
'github.com',
require => {
Can't get pos from :2: parser error : EntityRef: expecting ';'
at t\01_bad.t line 23
# Failed test 'C:/temp/coderepos/lang/perl/XML-Liberal/trunk/t/bad/BAD-ampersand.xml'
# at t\01_bad.t line 24.
# got: ':2: parser error : EntityRef: expecting ';'
# '
# expected: ''
# Failed test 'created DOM node with C:/temp/coderepos/lang/perl/XML-Liberal/trunk/t/bad/BAD-ampersand.xml isa XML::LibXML::Document'
@mattn
mattn / github_pager.user.js
Created March 23, 2009 00:32
github pagination
// ==UserScript==
// @name github pagination
// @namespace http://mattn.kaoriya.net/
// @description generate newer/older link on github.com
// @include https://github.com/*
// ==/UserScript==
(function() {
// extend version of $X
// $X(exp);
From c17c24c9308712a111921f1e2ce034b6861beb81 Mon Sep 17 00:00:00 2001
From: mattn <[email protected]>
Date: Tue, 24 Mar 2009 16:20:03 +0900
Subject: [PATCH] save avatar cache named as URL suffix of image.
---
github-growler.pl | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/github-growler.pl b/github-growler.pl
From 9658bdcdfe4728663824641e0a016076b818c2e0 Mon Sep 17 00:00:00 2001
From: mattn <[email protected]>
Date: Mon, 30 Mar 2009 15:02:50 +0900
Subject: [PATCH] diable define macro of stdout, stderr on win32.
---
share/bindpp.h | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/share/bindpp.h b/share/bindpp.h
use strict;
use warnings;
use Config::Pit;
use WWW::Mechanize;
use Web::Scraper;
use YAML;
my $config = pit_get(
'github.com',
require => {