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
use objc::{msg_send, sel, sel_impl}; | |
use rand::{distributions::Alphanumeric, Rng}; | |
use tauri::{ | |
plugin::{Builder, TauriPlugin}, | |
Manager, Runtime, Window, | |
}; // 0.8 | |
const WINDOW_CONTROL_PAD_X: f64 = 15.0; | |
const WINDOW_CONTROL_PAD_Y: f64 = 23.0; |
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
// Inspired by this Python code: https://ralsina.me/weblog/posts/BB585.html | |
// Really really limited, but it works. "Look ma, no DAG!" | |
function evil(formula, sheet) { | |
with (sheet.functions) { | |
with (sheet.cells) { | |
return eval(formula); | |
} | |
} | |
} |
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
Collection = (spec) => { | |
if (typeof spec !== 'object') throw new TypeError('Collection specification must be an object') | |
return Object.freeze(Object.create(Collection.prototype, Object.getOwnPropertyDescriptors(spec))) | |
} | |
Collection.prototype = Object.create(null, { | |
[Symbol.isConcatSpreadable]: { value: true }, | |
[Symbol.iterator]: { value: function* () { for (let key in this) { yield this[key] } } }, | |
[Symbol.toPrimitive]: { value: (hint) => hint === 'number' ? NaN : '[object Collection]' }, | |
[Symbol.toStringTag]: { value: 'Collection' }, | |
}) |
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?://(.+\.)?google\.com/ | Evil Alphabet | |
---|---|---|
@^https?://(.+\.)?google\.org/ | Evil Alphabet | |
@^https?://(.+\.)?googleapis\.com/ | Evil Alphabet | |
@^https?://(.+\.)?g\.co/ | Evil Alphabet | |
@^https?://(.+\.)?ggpht\.com/ | Evil Alphabet | |
@^https?://(.+\.)?google/ | Evil Alphabet | |
@^https?://(.+\.)?goog/ | Evil Alphabet | |
@^https?://(.+\.)?gle/ | Evil Alphabet | |
@^https?://(.+\.)?blogger\.com/ | Evil Alphabet | |
@^https?://(.+\.)?googleblog\.com/ | Evil Alphabet |
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?://(.+\.)?facebook\.com/ | Evil Meta | |
---|---|---|
@^https?://(.+\.)?facebook\.net/ | Evil Meta | |
@^https?://(.+\.)?fb\.com/ | Evil Meta | |
@^https?://(.+\.)?fbcdn\.net/ | Evil Meta | |
@^https?://(.+\.)?fbcdn\.com/ | Evil Meta | |
@^https?://(.+\.)?fbsbx\.com/ | Evil Meta | |
@^https?://(.+\.)?tfbnw\.net/ | Evil Meta | |
@^https?://(.+\.)?facebook-web-clients\.appspot\.com/ | Evil Meta | |
@^https?://(.+\.)?fbcdn-profile-a\.akamaihd\.net/ | Evil Meta | |
@^https?://(.+\.)?fbsbx\.com\.online-metrix\.net/ | Evil Meta |
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?://(.+\.)?amazon\.cn/ | Evil Amazon | |
---|---|---|
@^https?://(.+\.)?amazon\.in/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.co\.jp/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.com\.sg/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.com\.tr/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.fr/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.de/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.it/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.nl/ | Evil Amazon | |
@^https?://(.+\.)?amazon\.es/ | Evil Amazon |
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?://(.+\.)?google\.com/ | Evil Alphabet | |
---|---|---|
@^https?://(.+\.)?google\.org/ | Evil Alphabet | |
@^https?://(.+\.)?googleapis\.com/ | Evil Alphabet | |
@^https?://(.+\.)?g\.co/ | Evil Alphabet | |
@^https?://(.+\.)?ggpht\.com/ | Evil Alphabet | |
@^https?://(.+\.)?google/ | Evil Alphabet | |
@^https?://(.+\.)?goog/ | Evil Alphabet | |
@^https?://(.+\.)?gle/ | Evil Alphabet | |
@^https?://(.+\.)?blogger\.com/ | Evil Alphabet | |
@^https?://(.+\.)?googleblog\.com/ | Evil Alphabet |
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
import [ read-lines ]: 'https://deno.land/std/io/buffer.ts' | |
import [ copy ]: 'https://deno.land/std/streams/conversion.ts' | |
#type: (search: #RegExp, replace: #text) | |
-- Pass-through the header | |
print "20 { Deno.args.join(';') }\r" | |
-- Check for type=inline parameter | |
inline: Deno.args.find (arg) -> |
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
import { readLines } from 'https://deno.land/std/io/buffer.ts' | |
import { copy } from 'https://deno.land/std/streams/conversion.ts' | |
const print = console.log | |
type type = [search: RegExp, replace: string] | |
// Pass-through the header | |
print(`20 ${ Deno.args.join(';') }\r`) | |
// Check for type=inline parameter |
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
nothing = new Proxy(Object.freeze(Object.create(null)), Object.create(null, { | |
get: { | |
value(target, property) { | |
return property === Symbol.toPrimitive ? () => undefined : nothing | |
} | |
} | |
})) | |
Tuple = (...elements) => { | |
if (elements.length === 0) return nothing |
NewerOlder