Skip to content

Instantly share code, notes, and snippets.

View nt1m's full-sized avatar
🌝

Tim Nguyen nt1m

🌝
View GitHub Profile
@nt1m
nt1m / scrape-criterion.js
Created October 31, 2019 20:00
Scrapes criterion.com
copy([...$$("#gridview .gridFilm")].map(x => {
let comma = x.querySelector(".g-country__comma");
if (comma && getComputedStyle(comma).display == "none") {
comma.remove();
}
return {
spine: x.querySelector(".g-spine").textContent.trim(),
img: x.querySelector(".g-img > img").src.trim(),
title: x.querySelector(".g-title").textContent.trim(),
href: x.querySelector(".g-title > a").href.trim(),
@nt1m
nt1m / toggle.svg
Last active August 28, 2019 04:31
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# HG changeset patch
# User Tim Nguyen <ntim.bugs@gmail.com>
# Date 1563309579 25200
# Tue Jul 16 13:39:39 2019 -0700
# Node ID df4fffd32c55182601b078c5fd672d2964523a14
# Parent ca1dbd076e1e47a8616ab6ee3e6fd4083d576857
Bug 1566533 - Disable generated passwords feature on private windows.
Differential Revision: https://phabricator.services.mozilla.com/D38235
[16760.013349] Out of memory: Kill process 31384 (rustc) score 622 or sacrifice child
[16760.013363] Killed process 31384 (rustc) total-vm:5827092kB, anon-rss:3287008kB, file-rss:0kB, shmem-rss:0kB
[16760.196524] oom_reaper: reaped process 31384 (rustc), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
@nt1m
nt1m / failure-2.txt
Last active July 18, 2019 23:03
failure-2.txt
46:41.43 error: Could not compile `style`.
46:41.43 Caused by:
46:41.45 process didn't exit successfully: `/home/tim/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name style servo/components/style/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=1 -C panic=abort -C debuginfo=2 -C debug-assertions=on --cfg 'feature="bindgen"' --cfg 'feature="fallible"' --cfg 'feature="gecko"' --cfg 'feature="gecko_debug"' --cfg 'feature="gecko_profiler"' --cfg 'feature="gecko_refcount_logging"' --cfg 'feature="nsstring"' --cfg 'feature="regex"' --cfg 'feature="style_traits"' --cfg 'feature="toml"' --cfg 'feature="use_bindgen"' -C metadata=f61242923d946184 -C extra-filename=-f61242923d946184 --out-dir /home/tim/mozilla-unified/objdir-frontend/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C linker=/home/tim/mozilla-unified/build/cargo-linker -C incremental=/home/tim/mozilla-unified/objdir-frontend/x86_64-unknown-linux-gnu/debug/incremental -L depe
35:03.02 error: Could not compile `style`.
35:03.07 Caused by:
35:03.07 process didn't exit successfully: `/home/tim/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rustc --crate-name style servo/components/style/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=1 -C panic=abort -C debuginfo=2 -C debug-assertions=on --cfg 'feature="bindgen"' --cfg 'feature="fallible"' --cfg 'feature="gecko"' --cfg 'feature="gecko_debug"' --cfg 'feature="gecko_profiler"' --cfg 'feature="gecko_refcount_logging"' --cfg 'feature="nsstring"' --cfg 'feature="regex"' --cfg 'feature="style_traits"' --cfg 'feature="toml"' --cfg 'feature="use_bindgen"' -C metadata=f61242923d946184 -C extra-filename=-f61242923d946184 --out-dir /home/tim/mozilla-unified/objdir-frontend/x86_64-unknown-linux-gnu/debug/deps --target x86_64-unknown-linux-gnu -C linker=/home/tim/mozilla-unified/build/cargo-linker -C incremental=/home/tim/mozilla-unified/objdir-frontend/x86_64-unknown-linux-gnu/debug/incremental -L depe
@nt1m
nt1m / the-plan.txt
Last active June 11, 2019 13:06
Autocomplete CE changes
* Import CE
* Change the relevant extends
* Manually set autocomplete="off"
* this.inputField --> super
* Remove appended markup
* Replace the popupset
* crop() attribute
* focused() attribute
* _setValueInternal method (everything involving inputField)
* selectTextRange method
@nt1m
nt1m / gist:491a36aa6c43b2fe130933c1eaef765e
Created December 14, 2018 20:06
suggestions to refined reading
To add:
https://addons.mozilla.org/en-US/firefox/addon/feed-preview/
https://addons.mozilla.org/en-US/firefox/addon/rsspreview/
https://addons.mozilla.org/en-US/firefox/addon/feeder/
https://addons.mozilla.org/en-US/firefox/addon/commafeed/
https://addons.mozilla.org/en-US/firefox/addon/feed-indicator/
https://addons.mozilla.org/en-US/firefox/addon/brief/
https://addons.mozilla.org/en-US/firefox/addon/mpage/?src=search
https://addons.mozilla.org/en-US/firefox/addon/feedly-notifier/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.