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 ( | |
"context" | |
"fmt" | |
"log" | |
"time" | |
"github.com/aws/aws-lambda-go/lambda" | |
"github.com/aws/aws-lambda-go/lambdacontext" |
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
SET foreign_key_checks=0; | |
DROP TABLE IF EXISTS `player`; | |
CREATE TABLE `player` ( | |
`id` BIGINT unsigned NOT NULL, | |
`name` VARCHAR(191) NOT NULL, | |
`created_at` DATETIME NOT NULL, | |
`updated_at` DATETIME NOT NULL, | |
`daily_notification_at` TIME NOT NULL, |
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 ( | |
"log" | |
"runtime" | |
) | |
type Hoge struct { | |
name string | |
} |
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 ( | |
"log" | |
"reflect" | |
) | |
type Hoge struct { | |
Name string | |
} |
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 | |
//go:generate msgp | |
type Player struct { | |
ID int `msg:"id"` | |
Name string `msg:"name"` | |
} | |
type PlayerComment struct { |
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
Summary: A collection of tools for managing UNIX services. | |
Name: daemontools | |
Version: 0.76 | |
Release: 1%{?dist} | |
License: GPLv3+ | |
Group: Applications/Archiving | |
URL: https://cr.yp.to/daemontools.html | |
Source: https://cr.yp.to/daemontools/daemontools-0.76.tar.gz | |
Patch1: daemontools-0.76-errno.patch | |
Patch2: daemontools-0.76-change-install-dir.patch |
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" | |
"gopkg.in/yaml.v2" | |
) | |
var src = ` |
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
# -*- coding: utf-8 -*- | |
require 'time' | |
start_time = "2013-11-22 17:30:00 +0900" | |
end_time = "2013-11-25 17:30:00 +0900" | |
start_time_to_time = Time.parse(start_time) | |
end_time_to_time = Time.parse(end_time) | |
start_time_to_date_time = DateTime.parse(start_time) |
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
foo = [true, false].sample |
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
… | |
require "kconv" | |
… | |
doc = Nokogiri::HTML(open(url), nil, "utf-8") |
NewerOlder