Skip to content

Instantly share code, notes, and snippets.

'use strict';
import * as React from 'react';
import * as assign from 'object-assign';
import * as debounce from 'lodash.debounce';
import { appLogger as log } from '../../../utils/Log';
import BaseComponent from '../../base';
const EVENT_SCROLL = 'scroll';
const EVENT_POP_STATE = 'popstate';
@petamoriken
petamoriken / typecheck.js
Created January 2, 2016 20:06
JavaScript (ES6) の型チェックメモ。
// プリミティブ値
// undefined
hoge === undefined; // strict mode のみ
hoge === void 0;
typeof hoge === "undefined";
Object.prototype.toString.call(hoge) === "[object Undefined]"; // 他に Symbol.toStringTag が "Undefined" なオブジェクトがないときのみ
// null
hoge === null;
@azu
azu / js.md
Last active June 23, 2024 17:38
JavaScriptのレベル別書籍のまとめ

前提: 完成していて、比較的支持を集めていて、JavaScriptを中心にした書籍 (DOM APIよりは言語を中心とした内容)

追記: JavaScriptの入門書 #jsprimerを書いている

最初からES2015で学ぶことを前提にした初心者〜中級者向けのJavaScript本がなかったので書いてる。 ES2015でJavaScriptという言語のコア部分は大きく変わったので、それを前提とした内容にする予定。

@sirreal
sirreal / README.md
Last active November 15, 2022 22:25
node-sass inline svgs via `svg()` function

Make it easy to include SVG strings inline via node-sass.

Escapes SVG (via encodeURIComponent + node-sass custom function).

Wraps <svg/> with appropriate url(data...) which I can never remember.

Call:

node-sass --source-map=true --functions=./node-sass-functions.js in.scss out.css
@mitsuruog
mitsuruog / index.md
Last active January 24, 2025 02:47
express実践入門

express実践入門


自己紹介

小川充

  • mitsuruog
@uupaa
uupaa / end.of.browser.wars.3rd.md
Last active October 30, 2015 18:19
第三次ブラウザ戦争がそろそろ閉幕します

Chromeのシェアが50%を超え、それと相反するようにIEのシェアが低迷し、
ついにFirefoxのシェアと並びました。
(10年前なら誰も信じてくれませんね、このグラフ)

IEがシェアを失い続け、Chrome がシェアを獲得し続ける事が見えてしまっているため、
第三次ブラウザ戦争もそろそろフィナーレ、閉幕となります。

標準化から分化と特化へ

@paulirish
paulirish / what-forces-layout.md
Last active July 21, 2025 17:36
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
@koistya
koistya / ReactJS-Server-Side-Rendering.md
Last active September 15, 2023 07:32
Server-side Rendering (SSR) for ReactJS / Flux Applications. Setting document.title

Files

The basic structure of a React+Flux application (see other examples)

 - /src/actions/AppActions.js     - Action creators (Flux)
 - /src/components/Application.js - The top-level React component
 - /src/constants/ActionTypes.js  - Action types (Flux)
 - /src/core/Dispatcher.js        - Dispatcher (Flux)
 - /src/stores/AppStore.js        - The main store (Flux)
@azusa-tomita
azusa-tomita / sublimetext_snippet.md
Last active December 6, 2019 03:27
sublimetextのスニペットのメモ