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() { |
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" | |
"github.com/jasonlvhit/gocron" | |
) | |
func main() { | |
scheduler := gocron.NewScheduler() |
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
The MIT License (MIT) | |
Copyright (c) 2015 Tomoya Kose. | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
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 python3 | |
# coding: utf-8 | |
def main(): | |
import sys | |
local_ref, local_sha1, remote_ref, remote_sha1 = sys.stdin.readline().split() | |
remote_branch = extract_branch(remote_ref) | |
if remote_branch in list_protected_branches(): |
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 |
OlderNewer