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
# | |
# Dockerfile | |
# | |
# Created by sansuke05. | |
# This file is licensed under the GNU Lesser General Public License v3.0 - see the LGPL_LICENSE file for details. | |
# https://gist.github.com/sansuke05/c4e79e1815d41f70f962bdf03d9f39f0#file-lgpl_license | |
# | |
FROM ubuntu:20.04 | |
USER root |
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 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 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 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 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> | |
<style> | |
body { | |
background-color: #eee; | |
} | |
.content { | |
width: 300px; | |
height: 300px; |
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
/** | |
* 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 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
// Include module references. | |
var fileSystem = require( "fs" ); | |
var stream = require( "stream" ); | |
var util = require( "util" ); | |
var chalk = require( "chalk" ); | |
// ---------------------------------------------------------- // | |
// ---------------------------------------------------------- // |