Instantly share code, notes, and snippets.

View pixela_release_notes.md

Release information of Pixela has moved here, thank you.

View index.html
<html>
<head>
<title>Hello World!! by static file</title>
</head>
<body>
<h1>Hello World!! by static file</h1>
</body>
</html>
View hello.go
package hello
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/hello", handler)
}
View app.yaml
application: <project-name>
version: 100
runtime: go
api_version: go1
handlers:
- url: /
static_files: static/html/index.html
upload: static/html/index.html
View README.md

Description

Get and Show cell's value from Google Spreadsheet Widget for Dashing.

Dependency

  • gem 'google-api-client'
  • gem 'google_drive'

Installation

dashing install e0ad37c2e137d2da0916

View README.md

Preview

preview

Description

Displaying Hatena Bookmark Favorites List of user you specified.

Dependency

Nothing.

Installation

View firebase_tutorial.html
<!doctype html>
<html>
<head>
<script src='https://cdn.firebase.com/js/client/2.2.1/firebase.js'></script>
<script src='https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js'></script>
<link rel='stylesheet' type='text/css' href='/resources/tutorial/css/example.css'>
</head>
<body>
<div id='messagesDiv'></div>
<input type='text' id='nameInput' placeholder='Name'>
View press enter
# press enter then `ll & git st`
function do_enter() {
if [ -n "$BUFFER" ]; then
zle accept-line
return 0
fi
echo
ll
echo -e "\e[0;33m--- git status ---\e[0m"
git st
View aws_vs_gcp.md

当日頂きましたご質問のうち、下記について確認が取れましたので、この場をお借りしましてお答え致します。

ご質問

Route53 での DNS Failover、TTL が 300秒固定だと思いますが、その影響を最小限にするために何かしてることはありますか? また、https への対応は?

お答え

弊社では、下記のような手順で DNS フェイルオーバーを実現しています。

  1. Route53 でのHelth Checkを作成
View load_csv.rb
require 'bundler/setup'
require 'google/api_client'
require 'yaml'
require 'json'
def multipart_boundary
'xxx'
end
# load credential yaml