Skip to content

Instantly share code, notes, and snippets.

View shanalikhan's full-sized avatar
🎯
Focusing

Shan Khan shanalikhan

🎯
Focusing
View GitHub Profile
@shanalikhan
shanalikhan / retail.cs
Created September 3, 2017 17:17
Application mode in Dynamics 365 Retail Server
AuthenticationContext authenticationContext = new AuthenticationContext(azureActiveDirectory, false);
AuthenticationResult authResult = null;
authResult = await authenticationContext.AcquireTokenAsync(D365Url, new ClientCredential(clientId, clientSecret));
ClientCredentialsToken clientCredentialsToken = new ClientCredentialsToken(authResult.AccessToken);
RetailServerContext retailServerContext = RetailServerContext.Create(retailServerUri, operatingUnitNumber, clientCredentialsToken);
var factory = ManagerFactory.Create(retailServerContext);
@shanalikhan
shanalikhan / init.py
Created March 26, 2017 08:33
urdu transliteration
buck2uni = {
u"\u0627":"A",
u"\u0627":"A",
u"\u0675":"A",
u"\u0673":"A",
u"\u0630":"A",
u"\u0622":"AA",
u"\u0628":"B",
u"\u067E":"P",
u"\u062A":"T",