Skip to content

Instantly share code, notes, and snippets.

View satour's full-sized avatar
💭
I may be slow to respond.

Satoru Ishikawa satour

💭
I may be slow to respond.
View GitHub Profile
@satour
satour / devise.ja.yml
Created October 4, 2014 11:42
Japanese locale file for Devise (3.4.0)
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
ja:
devise:
confirmations:
confirmed: 'アカウントを登録しました。'
send_instructions: 'アカウントの有効化について数分以内にメールでご連絡します。'
send_paranoid_instructions: "あなたのメールアドレスが登録済みの場合、本人確認用のメールが数分以内に送信されます。"
failure:
already_authenticated: 'すでにログインしています。'
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>震えるサカバンバスピス</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.buruburu {
(function () {
'use strict'
function Report (商品名, 資産評価額, 資産取得額, 効率) {
this.商品名 = 商品名
this.資産評価額 = 資産評価額
this.資産取得額 = 資産取得額
this.効率 = 効率
}
var 配列 = []
#全体的な設定です。
[Settings]
ID = "Your_Site_ID"
#ビルドに関する設定。アプリ全体に反映されます。
[build]
# base: ビルドを開始する場所です。package.json や .nvmrc などがここに配置されている必要があります。あなたのプロジェクトのルートディレクトリをここに指定するというわけではありません。
base = "project/"
# publish: 公開対象のディレクトリ
publish = "project/build-output/"
<script type="text/javascript">
var tdSetting = {
host: 'in.treasuredata.com',
writeKey: 'PLACEHOLDER',
database: 'PLACEHOLDER',
startInSignedMode: true,
_sdk: '2.2.0',
_sdkMethods: ["blockEvents","unblockEvents","setSignedMode","setAnonymousMode","resetUUID","fetchServerCookie","addRecord","fetchGlobalID","fetchUserSegments","set","trackEvent","trackPageview","trackClicks","ready"]
}
<script type="text/javascript">
var tdSetting = {
host: 'in.treasuredata.com',
writeKey: 'PLACEHOLDER',
database: 'PLACEHOLDER',
startInSignedMode: true,
_sdk: '2.2.0',
_sdkMethods: ["blockEvents","unblockEvents","setSignedMode","setAnonymousMode","resetUUID","fetchServerCookie","addRecord","fetchGlobalID","fetchUserSegments","set","trackEvent","trackPageview","trackClicks","ready"]
}
#!/usr/bin/python
# taken from https://gist.github.com/dergachev/7028596#gistcomment-3151122/
# generate server.xml with the following command:
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
# run as follows:
# python simple-https-server.py
# then in your browser, visit:
# https://localhost:4443
#
# openssl req -new -x509 -keyout server.pem -out server.pem -days 365 -nodes
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css">
<title>HELLO, TESTER</title>
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<script>
</script>
@satour
satour / sample.csv
Last active January 14, 2020 05:07
cid family_name first_name family_name_kana first_name_kana email phone address
000001 山田 太郎 やまだ たろう yamada@example.com 09012345678 東京都千代田区1-1-1
000002 岩鬼 正美 いわき まさみ iwaki@example.com 09012345634 東京都千代田区1-1-1
000003 殿馬 一人 とのま かずと tonoma@example.com 09012345604 東京都千代田区1-1-1
000004 里中 さとなか さとる satonaka@example.com 09012345612 東京都千代田区1-1-1
000005 微笑 三太郎 ほほえみ さんたろう hohoemi@example.com 09012345613 東京都千代田区1-1-1
let txt = "";
document.querySelectorAll('.ReactVirtualized__Grid__innerScrollContainer')[0].childNodes.forEach(function(el) {
txt = txt + el.childNodes[2].firstChild.innerText + ' ' + el.childNodes[3].firstChild.innerText + ',\n'
})
console.log(txt)