Skip to content

Instantly share code, notes, and snippets.

View yomotsu's full-sized avatar

Akihiro Oyamada yomotsu

View GitHub Profile
/*!
* @author yomotsu
* Released under the MIT License.
*/
:root {
--stroke-color: #ccc;
}
* {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>=^.^=</title>
<style>
body {margin: 0;}
.map {height: 100vh;}
</style>
.block {
color: orange;
_:-ms-fullscreen, & {
// IE11 hack
color: red;
}
}
@yomotsu
yomotsu / x.cs
Created November 26, 2018 16:41
using UnityEngine;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using MMDataIO.Pmx;
using System.IO;
using VRM;
#if UNITY_EDITOR
using UnityEditor;
@yomotsu
yomotsu / dom-utils
Last active September 1, 2018 06:47
ViewportSize
document.documentElement.clientWidth
document.documentElement.clientHeight
const path = require( 'path' );
// const fs = require( 'fs' );
const glob = require( 'glob' );
const webfontsGenerator = require( 'webfonts-generator' );
const FILE_NAME = 'icon';
const CLASS_NAME = 'Icon';
const SRC_DIR = 'src/icons';
const SCSS_DIST_DIR = 'src/scss/common';
const FONT_DIST_DIR = 'dist/assets/fonts';
{
"html": {
"snippets": {}
},
"css": {
"snippets": {
"col": "color: #${1:fff}",
"colred": "color: red",
"fs": "font-size: ${1}",
"tal": "text-align: left",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
const isTouchDevice = ('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch;
const isMobile = /Mobile|iPhone|iPod|iPad|Android/.test( navigator.userAgent );
<iframe src="http://www.youtube.com/embed/-ZxPhDC-r3w?autoplay=0&amp;controls=0&amp;playsinline=1&amp;showinfo=0"></iframe>