Skip to content

Instantly share code, notes, and snippets.

@jeffgca
jeffgca / b3k-demo.md
Last active July 7, 2021 22:58
Demo flow for Fission demo at browsers 3000!! Talk

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

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:

@jeffgca
jeffgca / stats.js
Created July 18, 2018 16:49
get Android health stats
function getStats() {
let selectors = [
'.criteria-widget',
'.status-green',
'.status-yellow',
'.status-red'
];
return selectors.map((s) => {
return [s, document.querySelectorAll(s).length];
@jeffgca
jeffgca / snoozetabs_error.txt
Last active February 22, 2017 18:55
snoozetabs_error
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 < [email protected]:196:5 < makeSafe/<@AddonManager.jsm:211:25 < [email protected]:922:23 < [email protected]:806:7 < Promise*[email protected]:739:11 < [email protected]:770:7 < [email protected]:455:5 < [email protected]:1067:12 < [email protected]:1116:5 < [email protected]:4152:5 < [email protected]:298:12 < promiseCallProvider/<@AddonManager.jsm:322:53 < [email protected]:390:5 < [email protected]:321:10 < getAddonByID/promises<@AddonManager.jsm:2469:12 < [email protected]:2468:20 < [email protected]:3590:7 < a@bundle.
@jeffgca
jeffgca / apartments.txt
Last active August 24, 2016 16:33
Properties in Mount Pleasant VE & Downtown VE
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
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);
@jeffgca
jeffgca / clippedoutput.sh
Created April 15, 2016 19:37
npm install errors
$ npm install
npm WARN deprecated [email protected]: 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 [email protected]: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated [email protected]: 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 [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: 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 [email protected] should be installed with -g
> [email protected] install C:\Users\jeff\Documents\GitHub\tofino\node_modules\nslog
> node-gyp rebuild
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
@jeffgca
jeffgca / url_scrape.js
Created November 26, 2015 20:48
Just the script
// 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);
@jeffgca
jeffgca / output.json
Last active October 28, 2024 21:00
Get 10k extensions from the chrome web store.
[
"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",