Skip to content

Instantly share code, notes, and snippets.

View nkrusch's full-sized avatar
:octocat:
〔,,Qへ Q ,,〕

Neea nkrusch

:octocat:
〔,,Qへ Q ,,〕
View GitHub Profile
@nkrusch
nkrusch / edge_shields.md
Last active July 13, 2021 21:18
Edge shields

Shields for Edge Add-ons

Examples of how to generate shields for Edge Add-ons / extensions.

Replace hpceppbbhmfebdnpaeiififakbogkgfa with your own extension's id.

https://img.shields.io/badge/dynamic/json?
 label=users
 &query=activeInstallCount
@nkrusch
nkrusch / city_list.txt
Last active July 13, 2021 21:28
List of cities and their coordinates: CityName,Lat,Long,Population,Country,CountryCode
Kabul,34.51669029,69.18326005,3160266,Afghanistan,AF
Kandahar,31.61002016,65.69494584,613871,Afghanistan,AF
Herat,34.33000917,62.16999304,439233,Afghanistan,AF
Tirana,41.32754071,19.81888301,658318,Albania,AL
Elbasan,41.12150677,20.08382808,132957,Albania,AL
Durres,41.3177997,19.44820797,132233,Albania,AL
Shkoder,42.06845156,19.51884965,122006,Albania,AL
Algiers,36.7630648,3.05055253,2665832,Algeria,DZ
Oran,35.71000246,-0.61997278,721992,Algeria,DZ
Constantine,36.35998863,6.599948281,527638,Algeria,DZ
@nkrusch
nkrusch / moomin.vcl
Created July 2, 2020 21:36 — forked from katef/cloud.vcl
HTTP Moomin delivery
sub deliver_moomin {
set resp.http.x-moomin0 = "⠀⠀⠀⠀⠀⠀⠀⢠⢦⡀⠀⡰⣩⠃⠀⠀⠀⠀⠀⠀⠀⠀⠀";
set resp.http.x-moomin1 = "⠀⠀⠀⠀⠀⠀⠀⠘⣄⠙⠍⠁⠙⠦⡀⠀⠀⠀⠀⠀⠀⠀⠀";
set resp.http.x-moomin2 = "⠀⠀⠀⠀⠀⠀⠀⠀⡎⠀⠀⡠⠄⠔⠊⠉⠒⠒⠒⢄⠀⠀⠀";
set resp.http.x-moomin3 = "⠀⠀⠀⠀⠀⠀⠀⢀⠇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢈⠆⠀⠀";
set resp.http.x-moomin4 = "⠀⠀⢠⢤⠜⡆⠀⢸⠀⠰⣄⠀⠀⠀⠀⠀⠀⠀⣠⠎⠀⠀⠀";
set resp.http.x-moomin5 = "⠀⠀⠱⠤⡁⠈⠑⠇⠀⠀⠀⠉⠒⠤⠤⠄⢖⠊⠀⡐⠧⣄⣀";
set resp.http.x-moomin6 = "⠀⠀⠀⠀⠘⢆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠹⡉⠀⣀⣨⡷";
set resp.http.x-moomin7 = "⠀⠀⠀⠀⠀⠈⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢱⠜⠁ ";
set resp.http.x-moomin8 = "⠀⠀⠀⠀⠀⠀⢇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠸⣸⠱⡀⠀";

Chrome Theme Keys Reference

This is a reference of all chrome browser theme manifest keys. The value in double quotes is what you can use as a key in a theme manifest. Some keys are OS-specific.

What is a chome theme?

A theme is a special kind of extension that changes the way the browser looks. Themes are packaged like regular extensions, but they don't contain JavaScript or HTML code.

Sample manifest here

export default class LanguageFlag {
/**
* Convert browser language to country flag emoji
* @param lang - browser language (string)
* @returns {*} - country flag emoji or empty string
*
* @example LanguageFlag.GetFlag('en-US');
*/
static GetFlag(lang) {