Skip to content

Instantly share code, notes, and snippets.

View urcades's full-sized avatar
🎡
the world

é. urcades urcades

🎡
the world
View GitHub Profile
@urcades
urcades / obsidian-web-clipper.js
Last active September 18, 2023 15:35 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
{
"global": {
"Monochrome": {
"Black 100": {
"value": "#000000",
"type": "color"
},
"Black 90": {
"value": "#1a1a1a",
"type": "color"
@urcades
urcades / attestation.txt
Created September 6, 2021 01:14
Attestation
I contributed to the clr.fund Trusted Setup Multi-Party Ceremony.
The following are my contribution signatures:
Circuit: qvt32
Contributor # 659
Hash: 5c7ee737 4aec7c10 d75e0cf0 1f67600a
6e78e2fb 7c798d78 6d2aa9ee 2acce5b5
964150b5 a2117384 87870c7d 9256a59d
def64097 896da5f3 c50200f3 3d6c1f18
@urcades
urcades / ex1.hoon
Created November 18, 2019 10:15
Hoon School 101 FW2019: Exercise 1
:: Naked gate turns any @p-aura'd input into pure atom
|= input=@p
`@`input
<section id="what-is-urbit" class="c4-10-md c4-10-lg full mt6">
<p>So, what <em>is</em> an Urbit?</p>
<figure class="mt6 grid12">
<img class="w-100 full" src="assets/intro/rock.svg" />
<h3 class="mt5 c2-3-md c2-3-lg">2.</h3>
<figcaption class="mt5 c3-11-md c3-11-lg">
<h3 class="fw6 mb4">It's designed for permanence and durability</h3>
Your Urbit is a permanent and completely private archive. Your Urbit can store all your data safely, privately, forever.
</figcaption>
@urcades
urcades / ex3-all.hoon
Created July 29, 2019 18:22
Hoon 101 Assignment 3 (Combined files)
:: Line 3: We are creating a naked generator that accepts a @ud-typed face we're naming 'n'
::
|= n=@ud
:: Line 6: Within the initial generator, we're setting a new face (with value) to be used in the recursion below — a @ud-typed face named 't'
::
=/ t=@ud 1
:: Line 9: The rune "barhep" sets our recursion point: Everything after this rune loops until a terminating clause is met
::
|-
:: Line 12: The rune 'wutcol' branches execution based on a boolean test — it is asking, "is face 'n' equivalent to the atom 1?"...
@urcades
urcades / ex3a.hoon
Created July 29, 2019 18:19
Hoon 101 Assignment 3A
:: Line 3: We are creating a naked generator that accepts a @ud-typed face we're naming 'n'
::
|= n=@ud
:: Line 6: Within the initial generator, we're setting a new face (with value) to be used in the recursion below — a @ud-typed face named 't'
::
=/ t=@ud 1
:: Line 9: The rune "barhep" sets our recursion point: Everything after this rune loops until a terminating clause is met
::
|-
:: Line 12: The rune 'wutcol' branches execution based on a boolean test — it is asking, "is face 'n' equivalent to the atom 1?"...
@urcades
urcades / ex3b.hoon
Created July 29, 2019 17:52
Hoon 101 Assignment 3B
:: I managed to figure out how to get a simple
:: atom-only list checker running, but I struggled
:: to figure out how to get strings rendered as their
:: initial textual aura instead of @ud-type output
::
:: I was curious why I needed to use '2' as my count
:: number, as other examples I saw in the tutorial (snag.hoon)
:: allowed the user to specify their "selection point
:: and have it represented in the output just fine, i.e:
:: using an input of "3" in snag.hoon would actually get the third list item.
@urcades
urcades / gen2.hoon
Created July 22, 2019 16:37
Hoon 101 Assignment 2
:: Assignment Reflection 20190722
::
:: I was overthinking this assignment to a huge degree before
:: I read the type-checking docs in section 2.2 and sanity-checked
:: myself — I think I got too stuck with trying to replicate the
:: code demonstrated in the "conditionals" walkthrough
:: and added too many layers of t/f checking before
:: landing on the below solution, remembering that the assignment
:: was to produce a naked generator
Web3 Status
Web3 Unavailable -> Unavailable
Web3 Available -> Uniswap Approved
Web3 Testnet -> Testnet
Uniswap Approved
Approved -> Connected
Not Approved Mobile -> Approve
Not Approved Desktop -> Disconnected
Not Logged In Desktop -> Logged Out