Skip to content

Instantly share code, notes, and snippets.

@otolab
otolab / happy-new-epoc.js
Created July 14, 2017 03:30
1600000000000を向かえる準備
function start() {
let nextEpoc = (Math.floor(Date.now() / 100000000000) + 1) * 100000000000
console.log('next epoc:', nextEpoc)
waitNextEpoc(nextEpoc)
}
function waitNextEpoc(nextEpoc) {
let now = Date.now()
let sleepTime = (nextEpoc - now) / 10
"use strict";
const postcss = require('postcss');
const postcssModules = require('postcss-modules');
const posthtml = require('posthtml');
const matchHelper = require('posthtml-match-helper');
const parseAttrs = require('posthtml-attrs-parser');
function class_to_css_module_plugin(_options) {
let options = _options || {};
<!DOCTYPE html>
<html>
<head>
<style>
body {
background-color: #eee;
}
.content {
width: 300px;
height: 300px;
/**
* to-absolute-url.js
*
* @version 1.0.1
* @author think49
* @url https://gist.github.com/think49/1e8944a19a36dd57c829
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
*/
'use strict';
@otolab
otolab / test.js
Last active August 29, 2015 14:21 — forked from bennadel/test.js
// Include module references.
var fileSystem = require( "fs" );
var stream = require( "stream" );
var util = require( "util" );
var chalk = require( "chalk" );
// ---------------------------------------------------------- //
// ---------------------------------------------------------- //