Skip to content

Instantly share code, notes, and snippets.

View sota1235's full-sized avatar
🤟
software engineer

Sota Sugiura sota1235

🤟
software engineer
View GitHub Profile
package main
import (
"fmt"
log "github.com/Sirupsen/logrus"
)
func main() {
sub()
}
package main
import (
"fmt"
log "github.com/Sirupsen/logrus"
)
func main() {
defer fmt.Println("Defer!")
log.Fatal("hoge")
package main
import (
"fmt"
log "github.com/Sirupsen/logrus"
)
func main() {
log.Fatal("hoge")
defer fmt.Println("Defer!")
@sota1235
sota1235 / proxyquire.study.js
Last active June 18, 2016 09:55
proxyquire.jsを理解するためにコピペ&コメント加えて理解する
'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')
#!/usr/bin/ruby
# AOJ
# ALDS1_3 A
# Revers polish notation
operands = gets.split(' ')
stack = []
operands.each do |ope|
if /^\d+$/.match ope
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 / {
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 / {
#!/usr/bin/python
# -*- cofing: utf-8 -*-
import unicodedata
import sys
# 全角含んだ文字の幅を返す
def count_word_width(word):
width = 0
for w in word:
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 / {
export default class Sota extends NewEmployee {
constructor() {
this.name = "杉浦 颯太";
this.college = "慶應義塾大学 環境情報学部";
this.catch_copy = "三度の飯よりコーディング";
this.eagerness =
"たくさん学び、周りと自分自身へと還元していきます";
}
}