Skip to content

Instantly share code, notes, and snippets.

View beijaflor's full-sized avatar

sho otani beijaflor

View GitHub Profile
  • Assert
    • assert(value[, message])
    • assert.deepEqual(actual, expected[, message])
    • assert.deepStrictEqual(actual, expected[, message])
    • assert.doesNotThrow(block[, error][, message])
    • assert.equal(actual, expected[, message])
    • assert.fail(actual, expected, message, operator)
  • assert.ifError(value)
@beijaflor
beijaflor / invisible-parts-of-CSS.markdown
Last active April 25, 2017 00:23
damn part of HTML & CSS

【雑訳】CSSの見えない部分(見出しのみ)

The invisible parts of CSS · MadebyMike

  • カスケーディング
    1. 詳細度
    2. 継承(inherit)
  • ボックスモデル
  1. (外から)マージン、ボーダー、パディング、コンテンツ
// GTMのdetaLayerから値を走査する
// window.dataLayer = [ {"a": "b"}, {"c": "d"} ];
function findDataLayer(key) {
if (window.dataLayer == undefined)
return false;
var dl = window.dataLayer;
for (var i = 0; i < dl.length; i++) {
if( dl[i][key] !== undefined ) {