Skip to content

Instantly share code, notes, and snippets.

@amunim
amunim / gist:9ea75f15d96d6165134795c78878dcd9
Last active March 19, 2024 13:07
Change currency on the page
let _myCountry = localStorage.getItem("_myCountry");
let _myExchange = localStorage.getItem("exchange");
let _myExchangePair = localStorage.getItem("exchangePair");
let store_language = "english";
let nowCurr = store_currency.trim();
var hours = 72;
var now = new Date().getTime();
var setupTime = localStorage.getItem("setupTime");
if (setupTime == null) {
@amunim
amunim / AllFlags.tt
Created June 9, 2022 11:05
Import all Flagsmith flags as enum with description
<#@ template debug="false" hostspecific="true" language="C#" #>
<#@ output extension=".cs" #>
<#@ assembly name="System.Net.Http" #>
<#@ assembly name="System.Core" #>
<#@ assembly name="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" #>
<#@ assembly name="Newtonsoft.Json" #>
<#@ assembly name="Microsoft.CSharp" #>
<#@ import namespace="System.Collections.Generic" #>
<#@ import namespace="System.Net.Http" #>
<#@ import namespace="Newtonsoft.Json.Linq" #>