Skip to content

Instantly share code, notes, and snippets.

Working from home

Fahmi Akbar Wildana DrSensor

Working from home
Block or report user

Report or block DrSensor

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
DrSensor /
Last active Jun 2, 2019
Advanced HTML tags in Markdown



const working = burnout
DrSensor /
Last active Feb 19, 2019
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)
View Rollup config

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.

npm i -D globby
import {sync as glob} from "globby"
DrSensor / EventListener.d.ts
Created Dec 22, 2018 — forked from rsms/EventListener.d.ts
Better EventEmitter TypeScript interface
View EventListener.d.ts
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 /
Created Nov 18, 2018
ESP Troubleshooting 101
$ chip_id v2.5.1
Found 1 serial ports
Serial port /dev/ttyUSB0
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 84:f3:eb:0b:dd:53
DrSensor / markdown.json5
Last active Oct 4, 2018
My VSCode Snippet
View markdown.json5
// 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": [
DrSensor /
Last active Sep 19, 2018
Git Dark Magic


Hide some nasty stuff 💩 in Github

Placing magic notes on dark file

  1. Get the commit hash on specific commit
$ git log --all --grep='search_string' --pretty='format:%h'

DrSensor /
Last active Sep 11, 2018
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
DrSensor / xorg.conf
Created Aug 6, 2018 — forked from emtudo/xorg.conf
Travamento com vídeo Ubuntu 18.04: editar ou criar /etc/X11/xorg.conf
View xorg.conf
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "intel"
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
DrSensor / loader options.js
Created Jun 8, 2018
binaryen-loader passes
View loader options.js
loader: 'binaryen-loader',
options: {
optimization: {
level: 2,
shrinkLevel: 2
transformation: {
passes: [
You can’t perform that action at this time.