Skip to content

Instantly share code, notes, and snippets.

View DrSensor's full-sized avatar

૮༼⚆︿⚆༽つ DrSensor

View GitHub Profile
@DrSensor
DrSensor / nu.toml
Last active August 12, 2020 23:11 — forked from mborejdo/gist:65ddf0622dff641f2dab9e54167c11ee
autojump in nushell
edit_mode = "emacs"
use_starship = false
rm_always_trash = true
history_size = 100000
completion_mode = "circular"
disable_table_indexes = false
header_align = "l"
header_color = "c"
header_bold = true
pivot_mode = "auto"

Keybase proof

I hereby claim:

  • I am drsensor on github.
  • I am drsensor (https://keybase.io/drsensor) on keybase.
  • I have a public key ASDvtxSiUu0YOZr4V4IxnJd-33IA4SawWjw-F6oAh1Yx6Ao

To claim this, I am signing this object:

@DrSensor
DrSensor / hacktoberfest-raspistrate.md
Created October 16, 2019 01:17
Hacktoberfest Log

Cross compiling notes

1st attempt 2019-10-15

$ cross build --target x86_64-unknown-linux-gnu --release --package substrate
.
.
error: failed to run custom build command for `librocksdb-sys v5.18.3`
Caused by:
 process didn't exit successfully: `/target/release/build/librocksdb-sys-e17ed1a83908e9ac/build-script-build` (exit code: 101)
@DrSensor
DrSensor / test.md
Last active June 2, 2019 11:24
Advanced HTML tags in Markdown

H2O

mc2

collapsible
const working = burnout
@DrSensor
DrSensor / bug.py
Last active February 19, 2019 02:16
Bug In Programming language
# Expression in Literal String Interpolation (pep-0498/#supporting-full-python-expressions)
fixtures = []
a1 = f"'{'\' \''.join(fixtures)}'"
a2 = f"'{"' '".join(fixtures)}'"
# only on Python 3.5.3
a3 = f"({'|'.join(fixtures)})"
a4 = f'" "{f} '.join(fixtures)
@DrSensor
DrSensor / Rollup config tricks.md
Created December 25, 2018 22:02
Bundler tricks

Globbing rollup input

In my case, I use it to bundle CLI app that use oclif which also act (and can be used) as a library.

Setup
npm i -D globby
Config
import {sync as glob} from "globby"
@DrSensor
DrSensor / EventListener.d.ts
Created December 22, 2018 17:55 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
export class EventEmitter<Events, K = keyof Events|symbol> {
addListener(event: K, listener: (...args: any[]) => void): this;
on(event: K, listener: (...args: any[]) => void): this;
once(event: K, listener: (...args: any[]) => void): this;
removeListener(event: K, listener: (...args: any[]) => void): this;
removeAllListeners(event?: K): this;
setMaxListeners(n: number): this;
getMaxListeners(): number;
listeners(event: K): Function[];
emit(event: K, ...args: any[]): boolean;
@DrSensor
DrSensor / markdown.json5
Last active October 4, 2018 04:40
My VSCode Snippet
{
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"subscript": {
"prefix": "sub",
"body": [
"<sub>$1</sub>"
@DrSensor
DrSensor / Bounty.md
Last active September 11, 2018 02:57
Awesome OSS Funding Work
  • IssueHunt - Anyone can fund any issues on open-source projects with some money which will be distributed to its maintainers and contributors.
  • Bountysource - Users can improve the open-source projects they love by creating/collecting bounties and pledging to fundraisers.
  • Salt - open-source projects can collect monthly contributions from supporters in order to reliably and predictably fund ongoing development.
  • Gitcoin - open source bounties platform on the Ethereum blockchain