I hereby claim:
- I am stvad on github.
- I am stvad (https://keybase.io/stvad) on keybase.
- I have a public key ASBSlrVrxW4570R_8hGRoCrxIZ60JjpUhx_y7k118BWQUwo
To claim this, I am signing this object:
<div class="check-container"><span id="check"></span></div> | |
{{#Question}} | |
<p>{{Question}}</p> | |
{{/Question}} | |
{{#Image}} | |
<p class="image">{{Image}}</p> | |
{{/Image}} |
// ==UserScript== | |
// @name Asana tasks helper | |
// @namespace test | |
// @description test | |
// @include https://app.asana.com/* | |
// @version 1 | |
// @grand none | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// ==/UserScript== |
I hereby claim:
To claim this, I am signing this object:
// ==UserScript== | |
// @name Timeout blocker v2 | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js | |
// @grant GM_addStyle | |
// @grant GM_setValue | |
// @grant GM_getValue | |
// @match https://www.facebook.com/* | |
// ==/UserScript== | |
//--- The @grant directive is used to restore the proper sandbox. |
object Part1 { | |
fun captcha(input: String): Int = | |
input.zipWithNext() | |
.let { it + (input.first() to input.last()) } | |
.filter { (first, second) -> first == second} | |
.map { it.first } | |
.map(Character::getNumericValue) | |
.sum() | |
} |
// https://github.com/brookhong/Surfingkeys/wiki/Migrate-your-settings-from-0.9.74-to-1.0 | |
const { | |
aceVimMap, | |
mapkey, | |
imap, | |
imapkey, | |
vmap, | |
getClickableElements, | |
vmapkey, | |
map, |
[{"create-time":1628452793788,"title":"finance tracking notebook",":create/user":{":user/uid":"6bJAKBYrpIcPZBpFEpexUwW3x5r1"},"children":[{"edit-time":1628452795552,"children":[{"string":"```javascript\n_ = require('lodash')```","create-time":1628434574298,"uid":"KFNPf1QWU","edit-time":1628452795552,":create/user":{":user/uid":"6bJAKBYrpIcPZBpFEpexUwW3x5r1"},":edit/user":{":user/uid":"6bJAKBYrpIcPZBpFEpexUwW3x5r1"}},{"string":"```javascript\nstate = observe(\"lAzI6D32V\")\n\nfunction deserializeAsset(node) {\n return {\n name: node.text,\n price: parseFloat(node[\"last price\"].attributeValue),\n position: parseFloat(node[\"position\"].attributeValue),\n type: node[\"type\"].attributeValue,\n accessRestricted: node[\"access restricted\"].attributeValue === \"True\",\n value() {\n return this.price*this.position\n }\n }\n}\n\nfunction assetsValue(assets) {\n return assets.map(it=>it.value()).reduce((a,b)=>a+b)\n}\n\nassets = state.children.map(deserializeAsset)```","create-time":16 |
empty = roamAlphaAPI.q( | |
'[:find ?uid :where [?x :block/string ?content] [?x :block/uid ?uid] [(clojure.string/blank? ?content)]]') | |
empty.map(it=>block(it[0])).filter(it=>it.children.length === 0 ).forEach(it=>{ | |
roamAlphaAPI.deleteBlock({block: {uid: it.uid}}) | |
}) |