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" | |
) | |
func main() { | |
fmt.Println("hoge") | |
defer fmt.Println("moge") | |
sub() |
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 "github.com/Sirupsen/logrus" | |
) | |
func main() { | |
sub() | |
} |
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 "github.com/Sirupsen/logrus" | |
) | |
func main() { | |
defer fmt.Println("Defer!") | |
log.Fatal("hoge") |
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 "github.com/Sirupsen/logrus" | |
) | |
func main() { | |
log.Fatal("hoge") | |
defer fmt.Println("Defer!") |
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
'use strict'; | |
/*jshint laxbreak:true, loopfunc:true*/ | |
// このコードはこちらのコードをコピペし、コメントを追記したものです | |
// https://github.com/thlorenz/proxyquire/blob/master/lib/proxyquire.js | |
var path = require('path') | |
, Module = require('module') | |
, resolve = require('resolve') | |
, dirname = require('path').dirname | |
, ProxyquireError = require('./proxyquire-error') |
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/ruby | |
# AOJ | |
# ALDS1_3 A | |
# Revers polish notation | |
operands = gets.split(' ') | |
stack = [] | |
operands.each do |ope| | |
if /^\d+$/.match ope |
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
server { | |
listen 80 default_server; | |
server_name vagrant.dev; | |
root /usr/share/nginx/html/like_award_php/public; | |
charset UTF-8; | |
#access_log /var/log/nginx/log/host.access.log main; | |
location / { |
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
server { | |
listen 80 default_server; | |
server_name vagrant.dev; | |
root /usr/share/nginx/html/like_award_php/public; | |
charset UTF-8; | |
#access_log /var/log/nginx/log/host.access.log main; | |
location / { |
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/python | |
# -*- cofing: utf-8 -*- | |
import unicodedata | |
import sys | |
# 全角含んだ文字の幅を返す | |
def count_word_width(word): | |
width = 0 | |
for w in word: |
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
server { | |
listen 80; | |
server_name common.vagrant.dev; | |
root /usr/share/nginx/html/common; | |
charset UTF-8; | |
#access_log /var/log/nginx/log/host.access.log main; | |
location / { |