npm install cypress --save-dev
npx cypress open
→自動でcypress.jsonとcypress用のディレクトリが作られるcypress.json
に設定を追加する
{
"baseUrl": "http://localhost:8080",
"viewportWidth": 1280,
"video": true,
func splitByRegexp(str string, separator string) []string { | |
normalRe := "[^%s]*[%s]" | |
rawRe := `[^%s]*[%s]` | |
var re *regexp.Regexp | |
if strings.Index(separator, `\\`) > -1 { | |
re = regexp.MustCompile(fmt.Sprintf(normalRe, separator, separator)) | |
} else { | |
re = regexp.MustCompile(fmt.Sprintf(rawRe, separator, separator)) | |
} |
const pad = (leftOrRight = 'left') => maxLength => char => value => { | |
const strValue = typeof value === 'number' ? value.toString() : value; | |
if (strValue.length >= maxLength) { | |
return strValue; | |
} | |
if (typeof maxLength !== 'number') { | |
throw new Error('maxLength should be a number'); | |
} | |
const padding = Array(maxLength - strValue.length) |
const insertItem = (xs, index, item) => [...xs.slice(0, index), item, ...xs.slice(index)]; | |
const range = number => [...Array(number).keys()]; | |
const permutate = (xs, accum = []) => { | |
const [head, ...tail] = xs; | |
if (!head) { | |
return accum; | |
} | |
return accum.length === 0 |
{ | |
"data": [ | |
{ | |
"id": 1, | |
"title": "Reactコンポーネントを作れるようになる", | |
"done": false, | |
"created_at": "2018-08-08 12:00:00", | |
"started_at": "", | |
"done_at":"" | |
}, |
const double = x => x * 2; | |
const over5 = x => x > 5; | |
const a = [1, 2, 3].map(double).filter(over5); | |
console.log('********* a', a); | |
import * as R from 'ramda'; | |
const times2Over5 = R.compose( | |
R.tap(console.log), |
Privacy Policy
craftgear built the あんしんQRコードリーダー app as a Free app. This SERVICE is provided by craftgear at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at あんしんQRコードリーダー unless otherwise defined in this Privacy Policy.
#!/bin/sh | |
# こちらのブログを参考にしました https://dafuku2.blogspot.com/2019/09/macos.html | |
# TimeMachineが使っている分しか消せないので、パージ可能領域は完全になくなりません。 | |
# 結構時間がかかります。 | |
tmutil listlocalsnapshots / | rg -e '\d{4}-\d{2}-\d{2}-\d{6}' -o | xargs -I date tmutil deletelocalsnapshots date |
モデル | 対角 | 横 | 縦 |
---|---|---|---|
iPhone12 mini | 137.16mm | 57.6mm | 124.8mm |
iPhone12 | 159.94mm | 67mm | 145.2mm |
iPhone12 Pro | 159.94mm | 67mm | 145.2mm |
iPhone12 Pro Max | 170.18mm | 71.5mm | 154.9mm |
# 使い方 | |
# $ python batch_stitching.py -i 画像のあるディレクトリ | |
# | |
# 結合する画像は重なっている部分が必要です。 | |
# 画像の天地は揃えたほうがよいです。縦横が違うとズレが出ます。 | |
# opencv-contrib-pythonとimutilsを別途インストールする必要があります。 | |
import os | |
import functools | |
import argparse |