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
func! CloseHandler(channel) | |
while ch_status(a:channel) == 'buffered' | |
echomsg ch_read(a:channel) | |
endwhile | |
endfunc | |
let job = job_start(['go', 'build'], {'close_cb': 'CloseHandler'}) |
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
ifeq ($(strip $(shell git status --porcelain 2>/dev/null)),) | |
GIT_TREE_STATE=clean | |
else | |
GIT_TREE_STATE=dirty | |
endif | |
all: build | |
build: | |
@echo "==> Building the project" |
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
ifeq ($(strip $(shell git status --porcelain 2>/dev/null)),) | |
GIT_TREE_STATE=clean | |
else | |
GIT_TREE_STATE=dirty | |
endif | |
all: build | |
build: | |
@echo "==> Building the project" |
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
variable "environment_name" { | |
default = "fatih-testing" | |
} | |
provider "aws" { | |
region = "ap-northeast-1" | |
} | |
resource "aws_vpc" "default" { | |
cidr_block = "10.0.0.0/16" |
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" | |
"log" | |
"net" | |
"time" | |
"github.com/hashicorp/yamux" | |
) |
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
{ | |
"variables": { | |
"aws_access_key": "{{env `AWS_ACCESS_KEY`}}", | |
"aws_secret_key": "{{env `AWS_SECRET_KEY`}}", | |
}, | |
"builders": [ | |
{ | |
"access_key": "{{user `aws_access_key`}}", | |
"secret_key": "{{user `aws_secret_key`}}", | |
"ami_name": "latest-{{timestamp}}", |
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
fun main(numbers: int list) = | |
let | |
fun sum(numbers: int list) = | |
if null numbers | |
then 0 | |
else hd numbers + sum (tl numbers) | |
in | |
sum(numbers) | |
end |
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 sshutil | |
import ( | |
"bytes" | |
"crypto/rand" | |
"crypto/rsa" | |
"crypto/x509" | |
"encoding/pem" | |
"errors" | |
"fmt" |
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
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Description": "CoreOS on EC2: http://coreos.com/docs/running-coreos/cloud-providers/ec2/", | |
"Mappings" : { | |
"RegionMap" : { | |
"ap-northeast-1" : { | |
"AMI" : "ami-19fba518" | |
}, |
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 data = ['func Split(s string, sep string) []string', 'func SplitAfter(s string, sep string) []s | |
tring', 'func SplitAfterN(s string, sep string, n int) []string', 'func SplitN(s string, | |
sep string, n int) []string'] | |
let wordMatch = "'\<" . expand("<cword>") . "\>'" | |
let filtered = filter(infos, 'v:val !~ ' . wordMatch) | |
echo filtered |