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 error = require("./error"); | |
| var fs = require("fs"); | |
| var HttpsProxyAgent = require('https-proxy-agent'); | |
| var mime = require("mime"); | |
| var netrc = require("netrc"); | |
| var Util = require("./util"); | |
| var Url = require("url"); | |
| var Promise = require("./promise"); |
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 | |
| # dependencies: npm, jq, git | |
| origami_root="$HOME/projects/origami" | |
| echo "Making origami directory at $origami_root" | |
| mkdir -p $origami_root/components | |
| clone() { | |
| dirname="$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
| (defun get-recipe-alist-from-url (url) | |
| (require 'cl) | |
| (require 'w3m) | |
| (with-temp-buffer | |
| (w3m-retrieve url) | |
| (json-read-from-string | |
| (nth 2 (car | |
| (remove-if-not | |
| (lambda (script) (rassoc "application/ld+json" (nth 1 script))) |
This file has been truncated, but you can view the full file.
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
| diff -ruN yakuake-20.04.3/app/CMakeLists.txt ../../yakuake-20.04.3/app/CMakeLists.txt | |
| --- yakuake-20.04.3/app/CMakeLists.txt 2020-06-24 16:34:00.000000000 +0100 | |
| +++ ../../yakuake-20.04.3/app/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 | |
| @@ -1,62 +0,0 @@ | |
| -configure_file(config-yakuake.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-yakuake.h) | |
| - | |
| -set(yakuake_SRCS | |
| - main.cpp | |
| - mainwindow.cpp | |
| - skin.cpp |
This file has been truncated, but you can view the full file.
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
| diff -ruN yakuake-20.04.3/app/CMakeLists.txt ../../yakuake-20.04.3/app/CMakeLists.txt | |
| --- yakuake-20.04.3/app/CMakeLists.txt 2020-06-24 16:34:00.000000000 +0100 | |
| +++ ../../yakuake-20.04.3/app/CMakeLists.txt 1970-01-01 01:00:00.000000000 +0100 | |
| @@ -1,62 +0,0 @@ | |
| -configure_file(config-yakuake.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-yakuake.h) | |
| - | |
| -set(yakuake_SRCS | |
| - main.cpp | |
| - mainwindow.cpp | |
| - skin.cpp |
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
| diff -ruN yakuake-20.04.3/app/mainwindow.cpp ../yakuake-20.04.3/app/mainwindow.cpp | |
| --- yakuake-20.04.3/app/mainwindow.cpp 2020-06-24 16:34:00.000000000 +0100 | |
| +++ ../yakuake-20.04.3/app/mainwindow.cpp 2020-08-05 15:14:33.607164071 +0100 | |
| @@ -280,6 +280,16 @@ | |
| connect(action, SIGNAL(triggered()), this, SLOT(handleContextDependentAction())); | |
| m_contextDependentActions << action; | |
| + action = actionCollection()->addAction(QStringLiteral("terminal-copy")); | |
| + action->setText(QStringLiteral("Copy")); | |
| + actionCollection()->setDefaultShortcut(action, QKeySequence(Qt::META + Qt::Key_C)); |
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 Patch = [path: PathPart[], obj: any, range: PatchRange, val?: any] | |
| /** | |
| * walk a path in an obj, optionally mutating it to insert missing parts | |
| * @see https://github.com/braid-org/braid-spec/blob/aea85367d60793c113bdb305a4b4ecf55d38061d/draft-toomim-httpbis-range-patch-01.txt | |
| * | |
| * to insert a string in an array, you need to wrap it in [] | |
| * | |
| * to insert an array in an array you need to wrap it in [] | |
| */ |
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 {eventHandler} from "vinxi/http" | |
| import { | |
| NetworkAdapter, | |
| Repo, | |
| type PeerId, | |
| type PeerMetadata, | |
| } from "@automerge/automerge-repo" | |
| import {NodeFSStorageAdapter} from "@automerge/automerge-repo-storage-nodefs" | |
| import type { | |
| FromClientMessage, |
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
| // -*- js2-basic-offset: 4 -*- | |
| class Char { | |
| constructor(codepoint) { | |
| this.codepoint = codepoint; | |
| } | |
| toString() { | |
| let ch = String.fromCodePoint(this.codepoint); | |
| if (ch == '\n') return '#\\newline'; | |
| if (ch == '\r') return '#\\return'; | |
| if (ch.match(/[a-zA-Z0-9$[\]().]/)) return `#\\${ch}`; |
OlderNewer