const micro = require('micro')
const server = micro(async (request, response) => {
// set response headers
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
| <html> | |
| <head> | |
| <script> | |
| (() => { | |
| const voidTags = ['area', 'base', 'br', 'circle', 'col', 'ellipse', | |
| 'embed', 'img', 'input', 'line', 'link', 'mesh', 'meta', 'param', | |
| 'path','polygon','polyline','rect','source','track','wbr'] | |
| const h = (tag, data, children) => { | |
| let attrs = '' |
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
| diskutil eraseDisk FAT32 "WINDOWS10" MBRFormat disk2 | |
| sudo newfs_msdos -F 32 -c 16 disk2 | |
| cp -rp /Volumes/CCCOMA_X64FRE_EN-US_DV9/* /Volumes/WINDOWS10/ |
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
| ln -s ../../../shared apps/accesstrucks/src |
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
| window.fetch('sunset.jpg') | |
| .then(res => { | |
| const reader = res.body.getReader() | |
| let result = new Uint8Array() | |
| const processImage = ({ done, value }) => { | |
| if (done) { | |
| console.log('done') |
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
| const env = process.env | |
| let result = '' | |
| for (let key in env) { | |
| result += '$' + key + ': \'' + env[key] + '\';\n' | |
| } | |
| process.stdout.write(result) |
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
| Man is distinguished, not only by his reason, but by this singular passion from other animals, which is a lust of the mind, that by a perseverance of delight in the continued and indefatigable generation of knowledge, exceeds the short vehemence of any carnal pleasure. |
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
| #!/bin/sh | |
| echo 'Show hidden files in finder' | |
| defaults write com.apple.finder AppleShowAllFiles yes; killall Finder | |
| echo 'Lock the size of the dock' | |
| defaults write com.apple.dock size-immutable -bool yes; killall Dock | |
| echo 'Delete all .DS_Store files' | |
| sudo find / -name ".DS_Store" -depth -exec rm {} \; |