This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function parseUrlQuery() { | |
| const q = location.search.slice( 1 ); | |
| return q.split( '&' ).reduce( ( result, item ) => { | |
| const _item = item.split( '=' ); | |
| const key = decodeURIComponent( _item[ 0 ] ); | |
| const val = decodeURIComponent( _item[ 1 ] ); | |
| result[ key ] = val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEAAAAALAAAAAABAAEAAAI= | |
| // https://stackoverflow.com/a/15960901/1512272 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "メイリオ", meiryo, sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pako from 'pako/lib/inflate.js'; | |
| console.log( pako ); | |
| // TODO | |
| // Webワーカー | |
| // https://github.com/yomotsu/xmas2016/blob/master/src/js/utils/zipFileManager.js | |
| const LITTLE_ENDIAN = true; | |
| const DataReader = class { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const browserSync = require( 'browser-sync' ).create(); | |
| const gulp = require( 'gulp' ); | |
| const gulpif = require( 'gulp-if' ); | |
| const rename = require( 'gulp-rename' ); | |
| const uglify = require( 'gulp-uglify' ); | |
| const webpack = require( 'webpack' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 'use strict'; | |
| const browserSync = require( 'browser-sync' ).create(); | |
| const gulp = require( 'gulp' ); | |
| const gulpif = require( 'gulp-if' ); | |
| const rename = require( 'gulp-rename' ); | |
| const uglify = require( 'gulp-uglify' ); | |
| const rollup = require( 'rollup' ); | |
| const rollupStream = require( 'rollup-stream' ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| precision mediump float; | |
| uniform vec2 resolution; // resolution (width, height) | |
| uniform vec2 mouse; // mouse (0.0 ~ 1.0) | |
| uniform float time; // time (1second == 1.0) | |
| uniform sampler2D backbuffer; // previous scene texture | |
| float EPSILON = .001; | |
| mat3 rotY ( float rad ) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @font-face { | |
| font-family: xYuMincho; | |
| font-weight: normal; | |
| src: local( "YuMincho-Regular" ), | |
| local( "Yu Mincho Regular" ), | |
| local( "YuMin-Medium" ), | |
| local( "YuMincho Medium" ), | |
| local( "Yu Mincho" ); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>=^.^=</title> | |
| <style> | |
| label{ | |
| cursor: pointer; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ----------------------------------------------------------------- | |
| // 文字列置換 | |
| // @param {string} $string - 元となる文字列 | |
| // @param {string} $search - 検索する文字列 | |
| // @param {string} $replace - 置換する文字列 | |
| // @return {string} 置換された文字列 | |
| // @example | |
| // `str-replace( 'abcd', 'bc', 'BC');` | |
| // // 'aBCd' | |
| // ----------------------------------------------------------------- |