Skip to content

Instantly share code, notes, and snippets.

View xdegtyarev's full-sized avatar
🧊

Alexander Degtyarev xdegtyarev

🧊
View GitHub Profile
@xdegtyarev
xdegtyarev / Get currency ios code from currency symbol
Created December 4, 2012 11:24
Get Currency Code From Currency Symbol
public string GetCurrencyCodeFromSymbol(string symbol)
{
Debug.Log("Retrieving symbol" + symbol);
RegionInfo regionalInfo;
foreach(CultureInfo o in CultureInfo.GetCultures(CultureTypes.SpecificCultures))
{
regionalInfo = new RegionInfo(o.LCID);
Debug.Log("Regional Symbol" + regionalInfo.CurrencySymbol);
if(regionalInfo.CurrencySymbol == symbol)
{
@xdegtyarev
xdegtyarev / CompleteSharp.sublime-settings
Created November 10, 2012 19:44
CompleteSharp Unity3d config
{
// You probably want to configure this to something of your own.
// ${home}, ${env:<variable>}, ${project_path:} and ${folder:} tokens can be used in the completesharp_assemblies option.
//
// ${home} is replaced with the value of the HOME environment variable.
//
// ${env:<variable>} is replaced with the "variable" environment variable.
//
// ${project_path:} tries to find a file with the given name in all the registered project folders and
// returns the first file found, or the original file name if none is found.
@xdegtyarev
xdegtyarev / sublimeRunner
Created September 27, 2012 14:08
Unity Sublime Runner
//
// main.cpp
// SublimeRunner
//
// Created by Alexander Degtyarev on 9/27/12.
// Copyright (c) 2012 Alexander Degtyarev. All rights reserved.
//
#include <iostream>
#include <sstream>