Command-line which transform JSON array input to GFM Table
$ echo '{ "rows": [ { "id": 1, "name": "Tomoya" }, { "id": 2, "name": "Tomoko" } ] }' | jq .rows | gftable
<html> | |
<style> | |
html, body { | |
margin: 0; | |
} | |
.hidden-wrapper { | |
overflow: hidden; | |
} | |
.wrapper { | |
width: 100%; |
Command-line which transform JSON array input to GFM Table
$ echo '{ "rows": [ { "id": 1, "name": "Tomoya" }, { "id": 2, "name": "Tomoko" } ] }' | jq .rows | gftable
push.js は、以下の Algolia Example の push.rb を JavaScript で書き直したものです。
data.json を同じディレクトリにコピーし、ALGOLIA_APPID
、ALGOLIA_SEARCH_APIKEY
を設定し、
実行すると、3つの index に、合計 9000 レコード挿入します。
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
.h-container { | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 100px; | |
height: 300px; |
#!/bin/bash | |
SIZES=(640 1280 1920 2560 3200) | |
if [ $# -eq 0 ]; then | |
echo "画像ファイルを指定してください!" | |
echo "Usage1: "$0" image.jpg" | |
echo "Usage2: "$0" *.jpg" | |
exit 1 | |
fi |
<html> | |
<head> | |
<style> | |
.modal-overlay { | |
position: fixed; | |
top: 0; | |
left: 0; | |
right: 0; | |
bottom: 0; | |
} |
fontcustom test
const path = require('path'); | |
const defaults = require('./default.json').db; | |
const config = {}; | |
const envs = [ | |
'test', | |
'development' | |
'production' | |
]; |
/node_modules |
// @flow | |
type Action = | |
| { type: 'FOO' } | |
| { type: 'BAR' }; | |
type ActionKeys = $PropertyType<Action, 'type'>; | |
const fooType: ActionKeys = 'FOO'; | |
const barType: ActionKeys = 'BAR'; | |
const invalidType: ActionKeys = 'ffsdlkfjdaslfj'; // Error |