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 { | |
LitElement, | |
html, | |
css, | |
} from "https://cdn.jsdelivr.net/gh/lit/dist@2/core/lit-core.min.js"; | |
export class SimpleGreeting extends LitElement { | |
static properties = { | |
name: {}, | |
}; |
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="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="description" content="Starter Snowpack App" /> | |
<title>Starter Snowpack App</title> | |
<script type="module" src="/index.js"></script> | |
</head> | |
<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
#!/usr/bin/env node | |
const { spawn } = require("child_process"); | |
const util = require("util"); | |
const exec = util.promisify(require("child_process").exec); | |
const { writeFileSync } = require("fs"); | |
const chalk = require("chalk"); | |
const COMMAND_PREFIX = ";;"; | |
const COMMANDS = { |
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
{"names": [ | |
"A Nova", | |
"Abbasak", | |
"Aberdeen", | |
"Abner Cay", | |
"Abruka", | |
"Absecon", | |
"Abu Musa", | |
"Acheron", | |
"Achill", |
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 net = require("net") | |
const path = require("path") | |
const pipePath = process.platform == "win32" ? path.join('\\\\?\\pipe', process.cwd(), 'huh') : "./huh.pipe"; | |
(async () => { | |
await delay(3000); | |
console.log("C: Attempting to connect") | |
const client = net.connect(pipePath); | |
client.on('data', function(data) { | |
console.log("S->C:", data.toString()); |
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 admin = require("admin"); | |
function getFirebaseUser(req, res, next) { | |
console.log("Check if request is authorized with Firebase ID token"); | |
if ( | |
!req.headers.authorization || | |
!req.headers.authorization.startsWith("Bearer ") | |
) { | |
console.error( | |
"No Firebase ID token was passed as a Bearer token in the Authorization header.", |
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
:443 | |
gzip | |
log /var/log/access.log | |
proxy / mafia { | |
header_upstream Host {host} | |
} | |
tls { | |
max_certs 100000 | |
} |
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
package main | |
import ( | |
"context" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" |
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> | |
<meta charset="utf-8"> | |
<title>Imgix / Firebase Storage</title> | |
<script src="https://www.gstatic.com/firebasejs/3.2.0/firebase.js"></script> | |
<script> | |
var IMGIX_REDIRECT_URL = ""; | |
var config = { | |
//... |
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
#!/usr/bin/env bash | |
#################################################### | |
## Google Vision API Client ## | |
#################################################### | |
# | |
# 1. Create "key" file with GCloud credential | |
# 2. run ./annotate.sh URL | |
# 3. Get back Vision API tags | |
# | |
#################################################### |
NewerOlder