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 / gist:657675
Created November 1, 2010 05:31 — forked from mattn/gist:657674
foo
@mattn
mattn / gist:657682
Created November 1, 2010 05:35 — forked from mattn/gist:657675
foo
bar
let s:save_cpo = &cpo
set cpo&vim
let s:source_ruby_advent_jp = { 'name': 'ruby_advent_jp' }
let s:source_ruby_advent_en = { 'name': 'ruby_advent_en' }
let s:ruby_advent_jp = []
let s:ruby_advent_en = []
function! unite#sources#ruby_advent#open_url(url)
// ==UserScript==
// @name Social count
// @namespace http://june29.jp/
// @include http://*
// @include https://*
// ==/UserScript==
(function() {
if (window.top != window.self) exit;
hello
@mattn
mattn / .gitignore
Created September 6, 2011 07:29 — forked from sekimura/.gitignore
Facebook command-line client helper
.fb_access_token
.fbconsole.py
@mattn
mattn / colorsel.vim
Created October 28, 2011 08:12 — forked from c9s/.vimrc
vim colorscheme selector
function! s:SelectColorScheme()
let files = sort(map(split(globpath(&rtp, 'colors/*.vim'), "\n"), 'fnamemodify(v:val, ":t:r")'))
silent 15vnew
call setline(1, files)
silent file `="SelectColorScheme"`
setlocal bufhidden=wipe buftype=nofile nonu nomodifiable cursorline
nnoremap <buffer> <silent> j j:<c-u>exe 'color' getline('.')<cr>
nnoremap <buffer> <silent> k k:<c-u>exe 'color' getline('.')<cr>
nnoremap <buffer> <silent> q :<c-u>close<cr>
endfunction
@mattn
mattn / dump.vim
Created December 6, 2011 13:18 — forked from ynkdir/dump.vim
google-calendar-holiday
scriptencoding utf-8
let s:calendar_list = [
\ ['Australian Holidays', 'en.australian#[email protected]'],
\ ['Austrian Holidays', 'en.austrian#[email protected]'],
\ ['Brazilian Holidays', 'en.brazilian#[email protected]'],
\ ['Canadian Holidays', 'en.canadian#[email protected]'],
\ ['China Holidays', 'en.china#[email protected]'],
\ ['Christian Holidays', 'en.christian#[email protected]'],
\ ['Danish Holidays', 'en.danish#[email protected]'],
@mattn
mattn / sum.c
Created March 26, 2012 05:12 — forked from rummelonp/sum.c
変数は新たに宣言しない1から100までの整数の和を表示するプログラム
#include <stdio.h>
int main(int argc, char* argv[]) {
argc = 0;
argv[0] = 100;
while (argv[0] > 0) {
argc += argv[0];
argv[0] -= 1;
}
printf("%d\n", argc);