Skip to content

Instantly share code, notes, and snippets.

Project ideas
* gist for hg
* an actually good gui for hg
* garage band for windows
* db schema management tool
@stefanrusek
stefanrusek / gist:3436540
Created August 23, 2012 13:19
It turns out HashSet<string> is SUPER fast!
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace tpl_await_test
{
This file has been truncated, but you can view the full file.
2012/10/24 12:15:53 Starting cygwin install, version 2.774
2012/10/24 12:15:53 User has backup/restore rights
2012/10/24 12:15:53 io_stream_cygfile: fopen(/etc/setup/net-proxy-host) failed 2 No such file or directory
2012/10/24 12:15:53 io_stream_cygfile: fopen(/etc/setup/net-proxy-port) failed 2 No such file or directory
2012/10/24 12:15:53 io_stream_cygfile: fopen(/etc/setup/extrakeys) failed 2 No such file or directory
2012/10/24 12:15:53 io_stream_cygfile: fopen(/etc/setup/chooser_window_settings) failed 2 No such file or directory
2012/10/24 12:15:53 Current Directory: C:
2012/10/24 12:15:53 Could not open service McShield for query, start and stop. McAfee may not be installed, or we don't have access.
2012/10/24 12:15:53 root: c:\cygwin binary system
2012/10/24 12:15:53 Selected local directory: C:
<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:a10="http://www.w3.org/2005/Atom" version="2.0">
<channel>
<title>Lost In Permutation</title>
<link>http://jacob.jkrall.net/</link>
<description />
</channel>
</rss>
@stefanrusek
stefanrusek / Fix for android v4.2.2
Created November 8, 2014 03:37
This is a work around for the appcompat v21 on android 4.2.2.
if (Build.VERSION.SDK_INT == Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
menu = new MenuWrapper(menu) {
private MenuItem fix(MenuItem item) {
try {
Field f = item.getClass().getDeclaredField("mEmulateProviderVisibilityOverride");
f.setAccessible(true);