This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import scala.util.parsing.combinator._ | |
class Tree[L](val label: L, val children: Seq[Tree[L]]) extends Traversable[Tree[L]] { | |
val numOfChildren = children.length | |
def this(label: L) = this(label, Seq[Tree[L]]()) | |
override def toString: String = { | |
if (isTerminal) { | |
return label.toString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim color file | |
" Name: h2u_black | |
" Maintainer: Kyo Nagashima <kyo@hail2u.net> | |
" URL: http://hail2u.net/ | |
" Version: 12.4.21 | |
" License: http://hail2u.mit-license.org/2010 | |
set background=dark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# coding: utf-8 | |
def main(args): | |
import subprocess | |
pattern = '*.tex;*.bib;*.sty;' | |
command = 'make' | |
subprocess.call( | |
('watchmedo', 'shell-command', '-w', '-p', | |
pattern, '-c', command, args.work_directory)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/ | |
\@ | |
\\ | |
\, | |
\; | |
\: | |
\! | |
\- | |
\= | |
\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import "fmt" | |
type Number interface { | |
Add(x Number) Number | |
Sub(x Number) Number | |
} | |
type Int int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:source = { | |
\ 'name': '{{_name_}}', | |
\ 'mark': '[{{_name_}}]', | |
\} | |
function! s:source.gather_candidates(context) | |
return [] | |
endfunction | |
function! neocomplete#sources#{{_name_}}#define() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let s:source = { | |
\ 'name': 'kyushu', | |
\} | |
function! s:source.gather_candidates(context) | |
let l:candSeq = [ | |
\ 'Fukuoka', | |
\ 'Saga', | |
\ 'Nagasaki', | |
\ 'Oita', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
base_package=github.com/user_name/repo_name | |
base_path=${GOPATH}/src/${base_package} | |
package_list=( | |
${base_package} | |
) | |
if [ ! -d ${base_path}/coverprofile ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"image" | |
"image/png" | |
"os" | |
"github.com/codegangsta/cli" | |
"github.com/mitsuse/mitsuse-go/image/similarity" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"os" | |
"github.com/codegangsta/cli" | |
) | |
func main() { |
OlderNewer