The HTTP Filesystem Protocol provides a RESTful interface for performing POSIX-like filesystem operations over HTTP. It enables hierarchical file and directory manipulation using standard HTTP methods with filesystem-specific metadata encoded in HTTP headers.
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
| FROM node:22-alpine | |
| ARG VSCODE_VERSION=1.103.2 | |
| RUN apk add -u krb5-dev libx11-dev libxkbfile-dev libsecret-dev git build-base python3 | |
| RUN git clone --depth 1 https://github.com/microsoft/vscode.git -b $VSCODE_VERSION | |
| WORKDIR /vscode | |
| RUN npm i | |
| RUN npm run gulp vscode-web-min |
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 w = new Wanix() | |
| Object.getPrototypeOf(w) | |
| // {readFile: ƒ, writeFile: ƒ, readDir: ƒ, exists: ƒ} | |
| await w.readDir(".") | |
| // ['dom/', 'fsys/', 'proc/', 'term/', 'vm/'] | |
| await w.readDir("fsys") | |
| // ['ctl', 'new/'] | |
| await w.readDir("fsys/new") |
Sponsor on GitHub to get access to this POC
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/sh | |
| apptron app indicator - ./icon.png <<MENU | | |
| Timers | |
| 5 seconds | |
| 10 seconds | |
| 30 seconds | |
| Say Hello | |
| --- | |
| Quit | |
| MENU |
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
| function dateTimeFormat(timestamp, locale, str, ...opts) { | |
| const d = new Date(timestamp); | |
| return str.replace(/{(\d+)}/g, function(match, number) { | |
| return typeof opts[number] != 'undefined' | |
| ? new Intl.DateTimeFormat(locale, opts[number]).format(d) | |
| : match; | |
| }); | |
| } | |
| console.log(dateTimeFormat("2021-11-19T19:19:36.598071-06:00", "en", "{0} at {1}!", {dateStyle:"short"}, {timeStyle:"long"})) |
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
| // styling module provides a helper for building style | |
| // and class attributes for elements. | |
| type Styling = string | Object | Style | (() => boolean); | |
| type ConditionedStyle = [string, () => boolean]; | |
| export function from(...styling: Styling[]): Style { | |
| return Style.from(...styling); | |
| } |
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
| package cli | |
| import ( | |
| "bytes" | |
| "context" | |
| "flag" | |
| "fmt" | |
| "os" | |
| "reflect" | |
| "strings" |
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
| // server.go | |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net" | |
| "strings" | |
| "github.com/progrium/qtalk-go/codec" |
NewerOlder
