Skip to content

Instantly share code, notes, and snippets.

View becolomochi's full-sized avatar

beco tsuji becolomochi

View GitHub Profile
@becolomochi
becolomochi / settings.yml
Created October 27, 2023 00:42
github-nippou settings
format:
subject: '### %{subject}'
line: '* [%{title}](%{url}) by @[%{user}](https://github.com/%{user}) %{status}'
dictionary:
status:
merged: '**merged!**'
closed: '**closed!**'
@becolomochi
becolomochi / settings.yml
Last active March 22, 2024 02:47
github-nippou config
format:
subject: '### %{subject}'
line: '- [%{title}](%{url}) %{status}'
dictionary:
status:
merged: '**merged!**'
closed: '**closed!**'
export HOMEBREW_NO_ANALYTICS=1
alias ll="ls -hlF"
alias la="ls -Ahl"
alias rm="rm -i"
alias cp="cp -i"
alias mv="mv -i"
alias lint="yarn lint:stylesheet"
alias lintfix="yarn lint:stylesheet:fix"
/* ----------------------------------------------------------
/* arrow-right
/* 右に向かう横向きの矢印
/* ---------------------------------------------------------- */
$arrow-right-width-value: 30px;
$arrow-right-height-value: 50px;
.arrow-right {
height: $arrow-right-height-value;
@becolomochi
becolomochi / check-reset-css.html
Last active April 21, 2019 22:00
リセットCSS検証用HTML
<section>
<h1>見出し1</h1>
<h2>見出し2</h2>
<h3>見出し3</h3>
<p>本文1</p>
<p>本文2本文2<br>改行。本文2本文2本文2本文2本文2</p>
<p>
<a href="hoge">リンク</a><strong>太字</strong><em>強調</em><small>小さい文字</small>
</p>
<h4>見出し4</h4>
<h4>HTML</h4>
[html]
[/html]
<h4>CSS</h4>
[css]
[/css]
[
{
"title": "testjson0",
"url_name": "test/json1",
"cke_source": "<div class=\"sample\">Seleniumのテストです</div>"
},
{
"title": "testjson1",
"url_name": "test/json2",
"cke_source": "<div class=\"sample\">Seleniumのテストです。2記事目です</div>"
const {Builder, By, Key, until} = require('selenium-webdriver');
const posts = require('sample.json');
(async function example() {
let driver = await new Builder().forBrowser('firefox').build();
try {
for(let i = 0; i<posts.length; i++){
await driver.get('入力フォームのURL');
await driver.findElement(By.name('title')).sendKeys(posts[i]['title']);
await driver.findElement(By.name('url_name')).sendKeys(posts[i]['url_name']);
@becolomochi
becolomochi / file0.css
Last active March 11, 2017 12:36
自分があらかじめやっているCSS指定 ref: http://qiita.com/becolomochi/items/66f7ce8faa9f9e90e009
img {
max-width: 100%;
height: auto;
}
@becolomochi
becolomochi / file0.css
Created December 30, 2016 10:24
Less.jsの透明度を変更する関数を比較 ref: http://qiita.com/becolomochi/items/0719c709f00cd7aef419
@color: rgba(66, 173, 255, 0.5);