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
{ | |
"minifySvg": false, | |
"collapseWhitespace": "conservative", | |
"minifyCss": { | |
"safe": true | |
} | |
} |
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
/** | |
* Simple HTTP Server | |
*/ | |
import { serve } from "https://deno.land/x/net/http.ts"; | |
import * as deno from "deno"; | |
import { mime } from "./mime"; | |
const addr = "0.0.0.0:8000"; | |
const s = serve(addr); |
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
const path = require('path'); | |
const koaBody = require('koa-body'); | |
const Koa = require('koa'); | |
const app = module.exports = new Koa(); | |
const datastore = require('nedb-promise') | |
const _ = require('koa-route'); | |
const serve = require('koa-static'); | |
var gsjson = require('google-spreadsheet-to-json'); | |
app.use(koaBody()); |
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
const fs = require('fs'); | |
const puppeteer = require('puppeteer'); | |
var md = require('markdown-it')(); | |
(async() => { | |
var result = md.render('# markdown-it rulezz!'); | |
var html = ` | |
<html><head><title>Hey</title><style></style></head> |
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
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<link href="https://unpkg.com/bootstrap@4.0.0-beta.2/dist/css/bootstrap-reboot.min.css"> |
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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>SVG Sandbox</title> | |
<style> | |
body { |
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
import * as THREE from "https://cdnjs.cloudflare.com/ajax/libs/three.js/87/three.module.js"; | |
export function init(){ | |
var scene = new THREE.Scene(); | |
var camera = new THREE.PerspectiveCamera( 75, window.innerWidth / window.innerHeight, 0.1, 1000 ); | |
var renderer = new THREE.WebGLRenderer(); | |
renderer.setSize( window.innerWidth, window.innerHeight ); | |
document.body.appendChild( renderer.domElement ); |
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
curl -L git.io/nodebrew | perl - setup | |
echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc | |
source ~/.bashrc | |
nodebrew install-binary latest | |
nodebrew use latest | |
git config --global user.email "hashrock@users.noreply.github.com" | |
git config --global user.name "hashrock" | |
npm install --global yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list |
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
{ | |
"typescript.tsdk": "node_modules/typescript/lib" | |
} |