Skip to content

Instantly share code, notes, and snippets.

View rafikhan's full-sized avatar

Rafi Khan rafikhan

View GitHub Profile
@rafikhan
rafikhan / kbar.ts
Last active May 2, 2023 23:32
A quick and dirty copy/paste of most of the internal typings for KBar. This comes directly from the KBar source code.
export interface IKBarManifest {
version: number;
createdDate: string;
toolbar: IToolbar;
isBaked: boolean;
notes: string;
scripts: IManifestDependency[];
presets: IManifestDependency[];
shell: IManifestDependency[];
}
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@rafikhan
rafikhan / README.md
Last active August 10, 2016 18:31
Google Analytics Component for CEP that plays nicely with the AESP licensing framework

Notes

This snippet contains the code necessary to make google analytics calls from your extension.
It plays nicely with the AESP licensing framework so if the user decides to disable analytics this component will honor that automatically. You don't need to do anything special to make that behavior work. Just call the analytics functions assuming the user granted permission and if they didn't the calls will do a no-op internally.

Warning

This code came straight out of the code for After Ease, is designed for its taxonomy/ontology and wasn't meant for distribution. As such you'll want to massage it before using it. For