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
FROM node:erbium-alpine3.14 | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN npm install | |
EXPOSE 80 | |
CMD node index.js |
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
FROM node:erbium-alpine3.14 | |
RUN apk update | |
RUN apk add git | |
WORKDIR /usr/src/app | |
COPY . . | |
RUN npm install | |
EXPOSE 80 | |
CMD node index.js |
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
router.get("/.list", async (ctx) => { | |
ctx.body = fs.readdirSync(`${BASE}/.iridium-notebooks/`) | |
}); |
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
// https://observablehq.com/@a10k/preact-setup@921 | |
export default function define(runtime, observer) { | |
const main = runtime.module(); | |
main.variable(observer()).define(["Render","htm","Comp"], function(Render,htm,Comp) | |
{ | |
//borrowed from https://observablehq.com/@observablehq/bannertitles | |
const pageTitle = "Preact Observable Setup"; | |
const title1 = "Preact Observable"; | |
const title2 = "Setup"; |
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> | |
<body> | |
<form action="http://localhost:8000/UPLOAD" method="post" enctype="multipart/form-data"> | |
<input type="file" name="word" id="word" /> | |
<input type="file" name="template" id="template" /> | |
<input type="submit" value="Upload files" name="submit" /> | |
</form> | |
</body> | |
</html> |
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
my $file = @ARGV[0]; | |
my $text = do { | |
local $/ = undef; | |
open my $fh, "<", $file | |
or die "could not open $file: $!"; | |
<$fh>; | |
}; | |
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
#Select both the consecutive duplcate lines on sublime | |
(?s)(.*)\n\1 |
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> | |
<body> | |
<script src="https://cdn.firebase.com/js/client/2.4.1/firebase.js"></script> | |
<script type="text/javascript"> | |
var fb = new Firebase("https://radiant-fire-5095.firebaseio.com"); | |
fb.child('name').on('value',function(d){console.log(d.val())}); | |
fb.set({'name':'alok'}); | |
</script> |
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
hosting map viz |
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
test |
NewerOlder