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 bun | |
const readline = require("node:readline"); | |
const fs = require("node:fs"); | |
const rl = readline.createInterface({ | |
input: fs.createReadStream("export.ndjson"), | |
}); | |
rl.on("line", (line) => { |
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
// Type definitions for reimg 1.0 | |
// Project: https://github.com/gillyb/reimg | |
// Definitions by: leesei <https://github.com/leesei> | |
declare module "reimg" { | |
type OutputProcessor = { | |
toBase64: () => string; | |
toImg: () => HTMLImageElement; | |
toCanvas: (callback: (canvas: HTMLCanvasElement) => void) => string; | |
toPng: () => HTMLImageElement; |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
version: "3.3" | |
services: | |
caddy: | |
deploy: | |
# this cannot control the number of replicas | |
replicas: 0 | |
mongo: | |
ports: |
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
// https://xstate.js.org/viz/ | |
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise |
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/bash | |
# | |
# git-su - Git Switch User | |
# ======================== | |
# | |
# git-su switches user and sshCommand in the current repository. | |
# | |
# USAGE | |
# ----- | |
# |
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> | |
<title>Test</title> | |
<link rel="stylesheet" href="./styles.css" /> | |
</head> | |
<body> | |
<main class="container"> | |
{% for ticket in tickets %} | |
<section class="ticket"> | |
<div class="content">{{ ticket }}</div> |
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'; | |
var sinon = require('sinon'); | |
describe.only('Tag Errors', () => { | |
var Hexo = require('../../../lib/hexo'); | |
var hexo = new Hexo(__dirname); | |
before(() => { | |
hexo.init().then(() => { |
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 python3 | |
# -*- coding: utf-8 -*- | |
#First released as C++ program by Hiroyuki Tsutsumi as part of the free software suite “Beer” | |
#I thought porting it to Python could be both a challenge and useful | |
from sys import argv, exit, getsizeof | |
from struct import pack_into, unpack_from | |
def ceil4(n): |
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/bash | |
# update version in `package.json`, tag repo, publish to npm and push to remote | |
# expects version as input | |
if [ -z "$1" ]; then | |
echo "Missing version, use those accepted by 'npm version'" | |
echo | |
npm version -h | |
exit | |
fi |
NewerOlder