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'; | |
| const base32 = require('./base32'); // IETF HTTP Working Group Structured Field Tests JSON Schema support | |
| /** @module RFC9651 */ | |
| /** | |
| * Structured Field Values for HTTP | |
| * @see https://www.rfc-editor.org/rfc/rfc9651.html#name-working-with-structured-fie | |
| */ |
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> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>Web Zipper</title> | |
| <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" | |
| integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous"> | |
| </head> |
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
| eclock () { echo -e $( printf '\\U1F5%x' $(( 0x4f + $(date +%-I) + ($(date +%-M) >= 30) * 12 )) ) ; } | |
| export PS1='$(eclock) '"$PS1" |
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 | |
| # Copy the single file from the remote git registory. | |
| set -euo pipefail | |
| if [[ $# -lt 3 ]]; then | |
| echo "Usage: $0 <repos> <branch> <src> [<dest>]">&2 | |
| exit 1; | |
| fi |
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
| // ==UserScript== | |
| // @name mermaid-for-backlog | |
| // @namespace https://gist.github.com/iso2022jp | |
| // @version 0.4 | |
| // @description Mermaid support for the Backlog web site. | |
| // @author USHIDO Hiroyuki | |
| // @match *://*.backlog.jp/* | |
| // @match *://*.backlog.com/* | |
| // @grant none | |
| // @run-at document-end |
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 | |
| set -euo pipefail | |
| DRYRUN='' | |
| DOWNLOAD_ONLY='' | |
| usage() { | |
| echo "Usage: $0 [-n|-d]" 1>&2 | |
| exit 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
| using System; | |
| using System.Diagnostics; | |
| using System.Drawing; | |
| using System.Runtime.InteropServices; | |
| using System.Threading; | |
| using System.Windows.Forms; | |
| // [main: STAThread] | |
| Thread.CurrentThread.SetApartmentState(ApartmentState.Unknown); | |
| Thread.CurrentThread.SetApartmentState(ApartmentState.STA); |
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
| class ChunkedTransformer { | |
| #trasformLastChunk | |
| #chunks | |
| #header | |
| // BWS: [ \t]* | |
| // token: [-!#-'*+.^`|~\w]+ | |
| // quoted-string: "(?:[\t \x21\x23-\x5B\x5d-\x7E\x80-\xFF]|\\[\t \x21-\x7E\x80-\xFF])*" |
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
| prompt('', (new TextDecoder('Windows-31J')).decode((new TextEncoder()).encode(prompt()))) |
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 download = (blob, filename, type = blob.type || 'application/octet-stream') => { | |
| const a = document.createElement('a') | |
| a.href = window.URL.createObjectURL(blob) | |
| a.download = filename | |
| a.type = type | |
| a.click() | |
| window.URL.revokeObjectURL(a.href) | |
| } |
NewerOlder