Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Will Lachance wlach

👋
View GitHub Profile
View gist:3fab8322e351870ff22393b4a6f37430
--- namespaces.yaml 2021-08-12 16:17:24.000000000 -0400
+++ namespaces-new.yaml 2021-08-12 16:16:52.000000000 -0400
@@ -145,14 +145,15 @@
type: glean_ping_explore
views:
base_view: creditcards_sync
+ events:
+ type: events_explore
+ views:
+ base_view: events
View extract-glam-sqlite.py
# To generate an sqlite3 table from a GLAM CSV, do something like:
# cat glam-file-XXX.csv.gz |gunzip | sqlite3 -csv -separator ',' glam4.db '.import /dev/stdin glam'
# This script runs *much* faster if you create an index on the table:
# create index metrics_index on glam(metric, channel, process, os)
import json
import os
import sqlite3
sqliteConnection = sqlite3.connect('glam.db')
View annotate-by-category
#!/usr/bin/env python
# Example of this script in action: https://github.com/mozilla/glean-annotations/pull/44
# Meant to be run in the `annotations/fenix/metrics` directory
import os
import requests
metrics = requests.get('https://probeinfo.telemetry.mozilla.org/glean/fenix/metrics').json()
View discovery.view.lkml
view: discovery {
dimension: additional_properties {
sql: ${TABLE}.additional_properties ;;
type: string
}
dimension: client_info__android_sdk_version {
sql: ${TABLE}.client_info.android_sdk_version ;;
type: string
group_label: "Client Info"
View gist:97ed10d1be48656176727b0332e61824
%% md
# Iodide saving short-term wishlist
The current implementation of autosave is pretty decent for our immediate use cases, but could use a number of refinements:
* Infrequent server autosaves - the recent push to save when the iodide tab loses focuses helps, but it would probably still be good to autosave a little more frequently if we can, especially if the above issue is fixed. Maybe once every 15 or even 10 seconds?
* Allow explicit saves again. On second thought, I think it's nice to have an explcit way to save for the impatient and/or paranoid. We could do something like what glitch does and say `(P.S.: iodide autosaves!)`. See [#1586](https://github.com/iodide-project/iodide/issues/1586)
# Resolved issues
View metric-ping-paths.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View gist:095cd19176878bc6550f1eb4f877b83b
--- repositories-formatted-old.json 2021-03-17 13:30:42.000000000 -0400
+++ repositories-formatted-new.json 2021-03-17 13:30:31.000000000 -0400
@@ -32,63 +32,14 @@
"org.mozilla.components:service-glean"
],
"metrics_file_paths": [
- "glean-core/android/metrics.yaml",
- "glean-core/metrics.yaml"
+ "glean-core/android/metrics.yaml"
],
View gist:8c7fc5abd046537f1d7348bfd8d55203
wlach@antwerp glean-dictionary % npm run dev
> glean-dictionary@0.1.0 dev /Users/wlach/src/glean-dictionary
> rollup --config --watch
rollup v2.36.1
bundles src/main.js → public/build/bundle.js...
[!] (plugin svelte) Error: (body-font-family: (Inter, X-LocaleSpecific, sans-serif), button-font-family: (Metropolis, Inter, X-LocaleSpecific, sans-serif), title-font-family: (Metropolis, Inter, X-LocaleSpecific, sans-serif)) isn't a valid CSS value.
197 │ $theme-firefox: map-collect($theme-fonts-firefox, $theme-colors-firefox, $theme-type-scale-firefox);
View gist:bb799b808500e8ddd9c390907a143ddb
1:54:11 AM: WARN Module Warning (from ./node_modules/svelte-loader/index.js):
1:54:11 AM: WARN Unused CSS selector "video" (78:5)
1:54:11 AM: WARN 76: border: 0; }
1:54:11 AM: WARN 77:
1:54:11 AM: WARN 78: img, video, object, embed {
1:54:11 AM: WARN ^
1:54:11 AM: WARN 79: -ms-interpolation-mode: bicubic;
1:54:11 AM: WARN 80: height: auto;
1:54:11 AM: WARN Error: Unused CSS selector "video" (78:5)
1:54:11 AM: WARN 76: border: 0; }
View gist:bdaab17805e0a24fdabff718d15e9a12
diff --git a/rollup.config.js b/rollup.config.js
index d8b4cce..541e75b 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -6,6 +6,7 @@ import livereload from "rollup-plugin-livereload";
import { terser } from "rollup-plugin-terser";
import { spawn, execSync } from "child_process";
import sveltePreprocess from "svelte-preprocess";
+import postcss from "rollup-plugin-postcss";