Skip to content

Instantly share code, notes, and snippets.

View oti's full-sized avatar
🍳

Yoshiaki ITO oti

🍳
View GitHub Profile
@paulirish
paulirish / what-forces-layout.md
Last active October 20, 2025 10:03
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.

Element APIs

Getting box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
@hail2u
hail2u / css-properties-and-MY-pronunciation.markdown
Last active June 26, 2016 01:42
CSSプロパティーとその*僕の*発音
プロパティー 発音
background-attachment バックグラウンド・アタッチメント
background-color バックグラウンド・カラー
background-image バックグラウンド・イメージ
background-position バックグラウンド・ポジション
background-repeat バックグラウンド・リピート
background バックグラウンド
border-collapse ボーダー・コラプス
border-color ボーダー・カラー
@matori
matori / buildinsider-offline-03-1.md
Last active September 10, 2015 13:35
2015-06-13 「Build Insider OFFLINE 第3回 ― Microsoft Edge スペシャル」のメモ

マイクロソフトの Web ブラウザの今までとこれから ~くるよ!Microsoft Edge !!~

春日井 良隆(日本マイクロソフト株式会社 デベロッパー エバンジェリズム統括本部 エバンジェリスト)

Windows 10 には Internet Explorer と新しい Web ブラウザ「Microsoft Edge」が搭載されることが明らかになっています。本セッションでは、Microsoft Edge を発表するに至った市場の動向、既存の Web サイトや Web システムとの互換性を踏まえながら、マイクロソフトが考える今後の Web ブラウザについてお伝えします。

セッションメモ

String.isNyaN = function (val) {
if (typeof val !== 'string') return false;
var nyan = ['cat', 'kitty', 'kitten', 'doraemon', '🐱', '😿', '😺', '😸', '😼', '😹', '😻', '😽', '😾', '🙀'];
return nyan.indexOf(val.toLowerCase()) !== -1;
}
.className = {
text-align: center,
color: #000,
&.hasClassName: {
color: red
}
};
@mizchi
mizchi / フロントエンドを楽にするために.md
Last active June 21, 2025 08:07
フロントエンドを楽にするために

フロントエンドを楽にするために

Qiitaを支えたい技術 at 時雨祭

About

  • HN: mizchi
  • Qiitaの方からきました(入社半年たったらしい)
  • Reactオジサンはそろそろ飽きてきた
  • Angularに興味が無いのでこっちにきた
@cucmberium
cucmberium / gist:e687e88565b6a9ca7039
Last active July 8, 2025 08:37
Twitterの検索API & Twitterでの検索術

twitterの検索術 (search/tweetssearch/universal)

search/tweets では一週間以上前のツイートは検索できないので注意

search/universal は公式のConsumerKey/ConsumerSecretでないと使用できない

当方では一切の責任を負いません

<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<meta content="width=device-width" name="viewport">
<title>dskd</title>
<link href="http://dskd.jp/" rel="canonical">
<link href="apple-touch-icon.png" rel="apple-touch-icon-precomposed">
@matori
matori / removehash.js
Created February 12, 2015 02:14
URL からハッシュ値を取得したあとにハッシュを消して履歴を修正
// @link http://stackoverflow.com/a/5298684
var hashString = location.hash.substr(1); // remove '#'
history.replaceState('', document.title, window.location.pathname);
/* Converted from http://hail2u.net/styles/style.min.css */
html {
font-family: sans-serif;
}
html {
-ms-text-size-adjust: 100%;
}
html {