Skip to content

Instantly share code, notes, and snippets.

Melvin Carvalho melvincarvalho

Block or report user

Report or block melvincarvalho

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webtorrent.html
<script src=""></script>
file="Sintel.mp4" />
View update-hook.js
const [seconds, setSeconds] = React.useState(0)
React.useEffect(() => {
const interval = setInterval(() => {
setSeconds(seconds => seconds + 1)
}, 3000)
return () => clearInterval(interval)
}, [])
View add bookmark
const user = '';
const time = new Date().toISOString();
const title = document.title;
const recalls = location.href;
const ms = Math.floor(Math.random() * 1000);
const uri = time.substring(0,4) + time.substring(5,7) + time.substring(8,10) + time.substring(11,13) + time.substring(14,16) + time.substring (17,19) + "." + ms;
<> <> <#${uri}> .\n
View solid-live-server.js
#!/usr/bin/env node
const WebSocket = require('ws')
const WebSocketServer = require('ws').Server
const fs = require('fs')
const uuid = require('uuid')
const handler = require('serve-handler');
const https = require('https');
const INotifyWait = require('inotifywait')
const parallel = require('run-parallel')
melvincarvalho /
Last active Dec 3, 2018
Fix https in solid terms
#!/usr/bin/env bash
# for i in `find $(pwd) -name publicTypeIndex.ttl` ; do bin/ "$i" ; done
sed 's/https:\/\/\/ns\/solid\/terms#/http:\/\/\/ns\/solid\/terms#/g' $FILE > $TMPFILE
touch -r $TMPFILE $FILE
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Hello Solid World</title>
<link rel="stylesheet" href="">
<script defer src=""></script>
melvincarvalho / index.html
Created Sep 19, 2018 — forked from bellbind/index.html
[solid][browser] pastebins app from tutorial doc
View index.html
<!doctype html>
<meta charset="utf-8" />
<script type="module" src="./main.js"></script>
li > input:checked ~ .child {display: none;}
melvincarvalho / index.html
Last active Sep 19, 2018 — forked from bellbind/index.html
[solid][browser] elementary app with solid-auth-client library
View index.html
<!doctype html>
<meta charset="utf-8" />
<script src=""></script>
<script type="module" src="./main.js"></script>
#login {display: none;}
#webid:empty ~ #login {display: inline;}
#webid:empty ~ #logout {display: none;}
melvincarvalho /
Last active Feb 7, 2018
How to login via 401 on

How to login via 401 on

  1. Go to a URI without access

  2. Login with webid and password

You can’t perform that action at this time.