Skip to content

Instantly share code, notes, and snippets.

View omega-takai's full-sized avatar
🏠
Working from home

TAKAI Tomonari omega-takai

🏠
Working from home
View GitHub Profile
@omega-takai
omega-takai / web_tools&service.md
Last active June 1, 2019 07:30
インターネットがあれば使えるツールやサービスをメモする。

CSS Report

I want to create a CSS report and delete any style.

  • Simple duplication of styles
  • Duplicate selectors
  • Specify properties that do not exist

Why do not automatically modify the code ?

@omega-takai
omega-takai / web_app-and-interesting_company.md
Last active April 29, 2019 07:30
Web APP, and Interesting Company (2019/04)

Web APP


for Design

Hatchful — シンプルで簡単なロゴメーカー

@omega-takai
omega-takai / cloudSettings
Last active May 22, 2020 09:26
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-05-22T09:26:20.319Z","extensionVersion":"v3.4.3"}
# alias git
alias gst 'git status'
alias gb 'git branch -vv'
alias gba 'git branch -a'
alias gf 'git fetch -p'
alias gc 'git checkout'
alias co 'git checkout'
alias gcp 'git cherry-pick'
alias makepr 'git commit --allow-empty -m "make pull request"'
$rootFontSize: 10; // px
$_ratio: 1 / $rootFontSize; // default 0.1
@function pix2rem($Number) {
$_computed: round($Number * $_ratio * 1000) / 1000;
@return #{$_computed}rem;
}
html {
font: {
@omega-takai
omega-takai / comparison-operators.js
Last active February 9, 2020 03:41
比較演算子を使って奇数偶数を判定
//奇数の場合
if( ( Number % 2 ) !== 0 ) {}
//偶数の場合
if( ( Number % 2 ) == 0 ) {}
//3の倍数の場合
if( ( Number % 3 ) == 0 ) {}
//5の倍数の倍数
@omega-takai
omega-takai / truncateStyle.sass
Last active February 10, 2020 03:49
複数行対応の3点リーダー省略スタイル
@mixin truncateStyle($showLine: 3, $bgColor: #EEE, $fontSize: 14px, $lineHeight: 1.4)
background: $bgColor
overflow: hidden
font-size: $fontSize
max-height: $fontSize * $lineHeight * $showLine
line-height: $lineHeight
position: relative
&:before,
&:after