Skip to content

Instantly share code, notes, and snippets.

View StefansArya's full-sized avatar
Sorry I was away for a while, I'm doing stuff in GitLab

StefansArya StefansArya

Sorry I was away for a while, I'm doing stuff in GitLab
View GitHub Profile
StefansArya /
Created April 19, 2022 07:53
Import Blackprint Editor into
StefansArya /
Created May 22, 2020 06:45
A longer version of me

Still testing

With this markdown

On my profile

var got = "highlighted?";
StefansArya / moment.loadLocale.js
Last active March 31, 2020 04:26
Dynamically load locale for moment.js
View moment.loadLocale.js
if(window.moment === void 0)
return console.error("Moment.js must be loaded first");
var cdnLink = '';
var loaded = new Set();
var available = ['af','ar-dz','ar-kw','ar-ly','ar-ma','ar-sa','ar-tn','ar','az','be','bg','bm','bn','bo','br','bs','ca','cs','cv','cy','da','de-at','de-ch','de','dv','el','en-au','en-ca','en-gb','en-ie','en-il','en-nz','en-SG','eo','es-do','es-us','es','et','eu','fa','fi','fo','fr-ca','fr-ch','fr','fy','ga','gd','gl','gom-latn','gu','he','hi','hr','hu','hy-am','id','is','it-ch','it','ja','jv','ka','kk','km','kn','ko','ku','ky','lb','lo','lt','lv','me','mi','mk','ml','mn','mr','ms-my','ms','mt','my','nb','ne','nl-be','nl','nn','pa-in','pl','pt-br','pt','ro','ru','sd','se','si','sk','sl','sq','sr-cyrl','sr','ss','sv','sw','ta','te','tet','tg','th','tl-ph','tlh','tr','tzl','tzm-latn','tzm','ug-cn','uk','ur','uz-latn','uz','vi','x-pseudo','yo','zh-cn','zh-hk','zh-tw'];
StefansArya / locale.csv
Last active December 23, 2019 11:53
Locale list
View locale.csv
Locale Identifier Description
af Afrikaans
af_NA Afrikaans (Namibia)
af_ZA Afrikaans (South Africa)
agq Aghem
agq_CM Aghem (Cameroon)
ak Akan
ak_GH Akan (Ghana)
am Amharic
am_ET Amharic (Ethiopia)
View try-catch-finally.go
package main
import (
type Block struct {
Try func()
Catch func(Exception)
Finally func()