I hereby claim:
- I am alexsasharegan on github.
- I am alexsasharegan (https://keybase.io/alexsasharegan) on keybase.
- I have a public key ASCIRCofm80VvfC_DUjdxZ2Pz2G0ZMvaz3WzVbEjFgP0eQo
To claim this, I am signing this object:
| export class Bits { | |
| static get Nil() { | |
| return 0; | |
| } | |
| static get All() { | |
| // Flip the sign bit out of all bits engaged. | |
| return ~0 ^ (1 << 31); | |
| } |
| { | |
| "editor.tokenColorCustomizations": { | |
| "textMateRules": [ | |
| { | |
| "name": "Comment", | |
| "scope": "comment", | |
| "settings": { | |
| "fontStyle": "italic" | |
| } | |
| }, |
| /** | |
| * Step 1: | |
| * Create a string enum. This can be done with a TS enum type, | |
| * or a sum type (union of strings). | |
| */ | |
| // enum style | |
| enum TokenType { | |
| Text = "Text", | |
| UserMention = "UserMention", |
| #!/usr/bin/env bash | |
| dlurl=https://dl.pstmn.io/download/latest/linux64 | |
| wget $dlurl -O postman.tar.gz | |
| sudo tar -xzf postman.tar.gz -C /opt | |
| rm postman.tar.gz | |
| sudo ln -s /opt/Postman/Postman /usr/bin/postman | |
| sudo cat > /usr/share/applications/postman.desktop <<EOL | |
| [Desktop Entry] | |
| Encoding=UTF-8 |
| alias pbcopy="xclip -sel clip" | |
| alias pbpaste='xsel --clipboard --output' |
| import { shallowCopy, deepCopy } from "@/core/object"; | |
| import { ucFirst } from "@/core/string"; | |
| /** | |
| * Returns a dynamic mixin that will shallow clone the desired prop. | |
| * Adds a mutable data attribute with the given alias (`${prop}Copy`), | |
| * a reset method to reset value to the actual prop's value | |
| * (`reset${prop}Copy` or `reset${customAlias}`), and handles watching | |
| * the prop for updates. | |
| */ |
| const { spawn } = require("child_process"); | |
| function stream_cmd(cmd, args, { stdout, stderr, close, error }, options = {}) { | |
| const proc = spawn(cmd, args, options); | |
| if (stdout) { | |
| proc.stdout.on("data", stdout); | |
| } | |
| if (stderr) { | |
| proc.stderr.on("data", stderr); |
| javascript:!function(a,b){for(const c of b)a.querySelectorAll(c).forEach(d=>{d.parentElement&&d.parentElement.removeChild(d)})}(document,["iframe","video","ins","#carbonads"]); |
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| function fprint($wx, ...$lns) | |
| { | |
| foreach ($lns as $ln) { | |
| fwrite($wx, $ln . PHP_EOL); | |
| } | |
| } | |
| function print_table($wx, array $keys, ...$data) |