This file contains 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 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 |
This file contains 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 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 || {}; |
This file contains 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> | |
<style> | |
body { | |
background-color: #eee; | |
} | |
.content { | |
width: 300px; | |
height: 300px; |
This file contains 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
/** | |
* 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'; |
This file contains 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
// Include module references. | |
var fileSystem = require( "fs" ); | |
var stream = require( "stream" ); | |
var util = require( "util" ); | |
var chalk = require( "chalk" ); | |
// ---------------------------------------------------------- // | |
// ---------------------------------------------------------- // |