Skip to content

Instantly share code, notes, and snippets.

View eklipse2k8's full-sized avatar

Matt Jarjoura eklipse2k8

View GitHub Profile
{
"arrows": [
{
"name": "left arrow",
"character": "←",
"unicode": "U+02190",
"hex": "←",
"dec": "←",
"entity": "←",
"css": "\\2190"
// Return size of regional setting
int size = GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, nullptr, 0);
// Store regional setting into language array for DateTimeFormatter
wchar_t* locale = new wchar_t[size];
size = GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, locale, size);
DateTimeFormatter weekFormatter(L"dayofweek.full", winrt::single_threaded_vector<hstring>({ locale }));
delete locale;
@eklipse2k8
eklipse2k8 / sort.cpp
Created January 6, 2018 19:01
Sorts using icu collation
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <memory>
#include <initializer_list>
#include <unicode/ucol.h>
template <typename T>
@eklipse2k8
eklipse2k8 / ios_sdk
Created January 6, 2012 21:41
Helps for developing scripts that need to know the actual SDK path.
#!/usr/bin/python
import plistlib
import os
import commands
import argparse
DEVELOPER_DIR = commands.getoutput('/usr/bin/xcode-select -print-path')
PLATFORMS_DIRECTORY = os.path.join(DEVELOPER_DIR, "Platforms")
IPHONE_PLATFORM = "iPhoneOS.platform"