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
{ | |
"name": "project", | |
"private": true, | |
"type": "module" | |
} |
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
import test from 'ava' | |
import startServer from './start-server.js' | |
import respond from './respond.js' | |
import got from 'got' | |
test('responding to HTTP requests', async t => { | |
const server = await startServer(10001, respond) | |
const response = await got.post( |
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
import startServer from './start-server.js' | |
startServer(8080, async (request, response) => { | |
const respond = await import('./respond.js') | |
respond.default(request, response) | |
}) |
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
import * as path from 'path' | |
import * as url from 'url' | |
import watcher from '@parcel/watcher' | |
const versions = new Map() | |
function trackVersion(filePath) { | |
if (!versions.has(filePath)) { | |
versions.set(filePath, 1) | |
} | |
} |
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
import { Server } from 'http' | |
const server = new Server(async (request, response) => { | |
const app = await import('./app.js') | |
app.default(request, response) | |
}) | |
server.listen(8080) |
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> | |
<meta charset="utf-8"> | |
<script type="module"> | |
import React from 'https://cdn.pika.dev/react@^16.13.1' | |
import { render } from 'https://cdn.pika.dev/react-dom@^16.13.1' | |
import hyperx from 'https://cdn.pika.dev/hyperx@^2.5.4' | |
const jsx = hyperx(React.createElement) | |
render( |
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> | |
<meta charset="utf-8"> | |
<script type="module"> | |
import { createElement as e } from 'https://cdn.pika.dev/react@^16.13.1' | |
import { render } from 'https://cdn.pika.dev/react-dom@^16.13.1' | |
render( | |
e('div', null, 'Hello World!'), | |
window.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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
# set -o xtrace | |
set -o pipefail | |
FILE=$1 | |
FILES=($(ls -1t /var/cache/pacman/pkg/$(pacman -Qoq "$FILE")-*)) | |
nvim -d \ |
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
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); | |
/* | |
* Work around issues with HiDPI | |
*/ | |
* { | |
font-size: 16px !important; | |
} | |
/* |
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
new KeyframeEffect( | |
container.current.querySelector('.envelope-outside'), | |
{ | |
transform: [ | |
'rotateX(180deg) rotateY(180deg) translateX(-50%)', | |
'rotateX(180deg) rotateY(180deg) translateX(-200%)' | |
], | |
opacity: ['1', '0'] | |
}, | |
{ |
NewerOlder