Skip to content

Instantly share code, notes, and snippets.

View harapeko's full-sized avatar
🍊
毎日が大晦日

harapeko harapeko

🍊
毎日が大晦日
View GitHub Profile
@harapeko
harapeko / 自治体1日目予約可能検索.js
Last active August 12, 2021 08:10
ワクチン予約サイトでの手間を減らしたいスクリプト
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
const add = (date, days) => new Date(date).setDate(new Date(date).getDate() + days)
const today = new Intl.DateTimeFormat().format(new Date())
firsts = [...Array(40).keys()].map(n => new Intl.DateTimeFormat('ja-JP', {
year: 'numeric',
month: '2-digit',
day: '2-digit'
}).format(add(today, n)))
$('#btn_Search_Medical').click()
@harapeko
harapeko / readme.md
Created July 6, 2020 06:00
突然CSSいじって言われたときSassなんだが、Sass...?とはにならないようにする為の20分

突然CSSいじって言われたときSassなんだが、Sass...?とはにならないようにする為の20分 〜 はじめてのSass 〜

本日内容

やらないこと

  • 環境設定
  • 細かい機能
    • mixin(,include), placeholder, extend
    • Module
    • Dart版とそれまでの違い
  • 詳細度
@harapeko
harapeko / 01本題.md
Last active September 29, 2019 17:42
はじめてのモブプロ
@harapeko
harapeko / gda.sh
Created April 21, 2019 08:04
git diff archive
#!/bin/sh
# ---
# git diff archive
#
# HOWTO
# ./gda.sh [from]
# ./gda.sh [from] [to]
# toを省略した場合はHEADがのコミットハッシュが使われます
#
@harapeko
harapeko / _animation.sass
Created February 24, 2019 10:20
animation
.anim-fade-in
animation-name: fade-in
animation-duration: 1s
animation-timing-function: ease-in-out
&.fast
animation-duration: 300ms
@keyframes fade-in
0%
opacity: 0
@harapeko
harapeko / _trumps.sass
Created February 22, 2019 11:37
ユーティリティクラス
///*------------------------------------*\
// #margin
//\*------------------------------------*/
// 省略記号の意味
// m - margin
// a - all
// t, r, b, l - top, right, bottom, left
// x, y - top and bottom, right and left
// 0, s, m - zero, small, medium
@harapeko
harapeko / FlexGrid.sass
Last active February 26, 2019 08:47
FlexGrid
.FlexGrid
$cols: 16
display: flex
&.is-reverse
flex-direction: row-reverse
&.is-start
justify-content: flex-start
@harapeko
harapeko / _reset.css
Last active June 8, 2020 09:04
reset css(sass
*,
*::before,
*::after {
box-sizing: border-box;
word-break: break-all;
}
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, u, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, hr, button, input {
margin: 0;
padding: 0;
@harapeko
harapeko / ToggleTarget.coffee
Last active August 9, 2019 05:56
対象先をトグルクラスするjs
# SEE: https://codepen.io/harapeko/pen/KWobXR
class ToggleTarget
init: =>
$(document).off 'click'
$(document).on 'click', '.js-toggle', (event)->
event.preventDefault()
$btn = $ @ #clickした要素
$(document).off 'click', '.js-toggle'
@harapeko
harapeko / .stylelintignore
Last active June 26, 2018 08:55
suitcss用stylelint設定(sass記法)。cssクラス名(stylelint-selector-bem-pattern)+細かいルール(stylelint-config-suitcss)のlint
# エントリ系、設定系、プラグイン系などのcssを追記する