Skip to content

Instantly share code, notes, and snippets.

Avatar

Jeff Griffiths therealjeffg

View GitHub Profile
@therealjeffg
therealjeffg / b3k-demo.md
Last active Jul 7, 2021
Demo flow for Fission demo at browsers 3000!! Talk
View b3k-demo.md

Getting started with fission

( Demo for Browsers 3000 ) Slides here

prep:

rm -fr ~/.config/fission rm /Users/jeff/code/web/fission/svelte-fission-demo/fission.yml

View keybase.md

Keybase proof

I hereby claim:

  • I am therealjeffg on github.
  • I am jeffgee (https://keybase.io/jeffgee) on keybase.
  • I have a public key ASDEKmzDajVqMA_bBj4iNtzVNkH_4uY4MIA3zot9-tMVnwo

To claim this, I am signing this object:

@therealjeffg
therealjeffg / stats.js
Created Jul 18, 2018
get Android health stats
View stats.js
function getStats() {
let selectors = [
'.criteria-widget',
'.status-green',
'.status-yellow',
'.status-red'
];
return selectors.map((s) => {
return [s, document.querySelectorAll(s).length];
View snoozetabs_error.txt
1487789395641 addons.manager WARN Exception calling callback: TypeError: h.Services.appShell.hiddenDOMWindow.navigator.sendBeacon is not a function (resource://gre/modules/commonjs/toolkit/loader.js -> resource://testpilot-addon/data/bundle.js:1:11785) JS Stack trace: a/<@bundle.js:1:11785 < safeCall@AddonManager.jsm:196:5 < makeSafe/<@AddonManager.jsm:211:25 < process@Promise-backend.js:922:23 < walkerLoop@Promise-backend.js:806:7 < Promise*scheduleWalkerLoop@Promise-backend.js:739:11 < schedulePromise@Promise-backend.js:770:7 < Promise.prototype.then@Promise-backend.js:455:5 < getAddon@XPIProviderUtils.js:1067:12 < getVisibleAddonForID@XPIProviderUtils.js:1116:5 < getAddonByID@XPIProvider.jsm:4152:5 < callProviderAsync@AddonManager.jsm:298:12 < promiseCallProvider/<@AddonManager.jsm:322:53 < Promise@Promise-backend.js:390:5 < promiseCallProvider@AddonManager.jsm:321:10 < getAddonByID/promises<@AddonManager.jsm:2469:12 < getAddonByID@AddonManager.jsm:2468:20 < getAddonByID@AddonManager.jsm:3590:7 < a@bundle.
@therealjeffg
therealjeffg / apartments.txt
Last active Aug 24, 2016
Properties in Mount Pleasant VE & Downtown VE
View apartments.txt
From August 24, 2016, source bccondos.net listings
.------------------------------------------------------------------------------------------------------------------------.
| mls | address | style | bedrooms | bathrooms | area | maintenance | price | $/sqft |
|----------|---------------------------|--------------|----------|-----------|-------|-------------|------------|--------|
| R2098251 | 308 2770 Sophia Street | 2 Storey | 2 | 2 | 1,113 | $434 | $858,000 | $770 |
| R2101621 | 1207 2770 Sophia Street | 2 Storey,pen | 1 | 2 | 1,012 | $396 | $888,000 | $877 |
| R2102146 | 701 2770 Sophia Street | Corner Unit | 1 | 1 | 668 | $261 | $599,900 | $898 |
| R2098251 | 308 2770 Sophia Street | 2 Storey | 2 | 2 | 1,113 | $434 | $858,000 | $770 |
| R2101621 | 1207 2770 Sophia Street | 2 Storey,pen | 1 | 2 | 1,012 | $396 | $888,000
View sdk-xhr-timeout-abort.js
let req = new XMLHttpRequest();
req.open('GET', data.url('testLocalXhr.json'));
req.addEventListener("abort", function() {
done();
});
req.timeout = 4000;
req.ontimeout = function () { alert("Timed out!!!"); }
req.send(null);
View clippedoutput.sh
$ npm install
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN prefer global npm@3.8.6 should be installed with -g
> nslog@3.0.0 install C:\Users\jeff\Documents\GitHub\tofino\node_modules\nslog
> node-gyp rebuild
View mobile.log
Cjeff@Armaghast ~/code/jetpack/projects/mobile-batteries-included> ../../jpm-mobile/bin/jpm-mobile -b nightly -v run
jpm-mobile run
JPM undefined Checking compatability bootstrap.js and install.rdf for xpi
Validating the manifest
JPM undefined Creating fallbacks if they are necessary..
Creating XPI
JPM undefined Creating XPI...
JPM undefined .jpmignore does not exist, fallback to use default filter rules
JPM undefined Adding: /Users/jeff/code/jetpack/projects/mobile-batteries-included/doc
JPM undefined Adding: /Users/jeff/code/jetpack/projects/mobile-batteries-included/lib
View url_scrape.js
// once you're done, the collected global should have the entire list
var start = $$('.a-d .a-u').length;
console.log('starting at', start);
var goal = 10000;
var collected;
var max = window.scrollMaxY;
window.scrollBy(0, window.scrollMaxY);
@therealjeffg
therealjeffg / output.json
Last active May 17, 2021
Get 10k extensions from the chrome web store.
View output.json
[
"https://chrome.google.com/webstore/detail/ballloon-for-chrome/kbmligehjhghebleanjcmenomghmcohn",
"https://chrome.google.com/webstore/detail/shine-for-reddit/acoiihnnfofnpbnofdcgcapbjlcopifa",
"https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk",
"https://chrome.google.com/webstore/detail/highly-highlighter/hjpahjhcglfdopbholajmhpamgblhjhg",
"https://chrome.google.com/webstore/detail/screencastify-screen-vide/mmeijimgabbpbgpdklnllpncmdofkcpn",
"https://chrome.google.com/webstore/detail/sms-from-gmail-facebook-m/iffdacemhfpnchinokehhnppllonacfj",
"https://chrome.google.com/webstore/detail/wot-web-of-trust-website/bhmmomiinigofkjcapegjjndpbikblnp",
"https://chrome.google.com/webstore/detail/mega/bigefpfhnfcobdlfbedofhhaibnlghod",
"https://chrome.google.com/webstore/detail/time-is-money/ooppbnomdcjmoepangldchpmjhkeendl",