Skip to content

Instantly share code, notes, and snippets.

class Program
{
static int count = 100000;
static int runningCount = 0;
static void Main(string[] args)
{
var dict = new Dictionary<Guid, string>();
var mre = new ManualResetEvent(false);
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<section name="specFlow"
type="TechTalk.SpecFlow.Configuration.ConfigurationSectionHandler, TechTalk.SpecFlow"/>
</configSections>
<specFlow>
<unitTestProvider name="xUnit" />
</specFlow>
(function (window, $) {
// my javascript code goes here
})(window, jQuery);
class Program
{
[DllImport("Kernel32")]
private static extern bool SetConsoleCtrlHandler(EventHandler handler, bool add);
private delegate bool EventHandler(CtrlType sig);
static EventHandler _handler;
enum CtrlType
{
private const int PORT_NUMBER = 1852; // the port number to used for SpecFlow testing
[BeforeTestRun()]
public static void StartWebServer()
{
if (ExistsPort())
return;
// settings
string LocalHostUrl = string.Format("http://localhost:{0}", PORT_NUMBER);
@jittuu
jittuu / gist:1077371
Created July 12, 2011 03:59
my posterous theme
<!DOCTYPE html><html lang="en" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8">
<link rel="icon" href="{Favicon}" type="image/x-png"/>
<title>{PageTitle}</title>
<link href="http://island.heroku.com/stylesheets/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
font-size: 100%;
}
@jittuu
jittuu / gist:1079933
Created July 13, 2011 08:34
.net git ignore
[Oo]bj/
[Bb]in/
*.suo
*.user
*.docstates
packages/
App_Data
@jittuu
jittuu / autotest_file.rb
Created August 15, 2011 06:17
autotest + test::unit + multi-platform notifier
require "autotest/fsevent"
require "test_notifier"
# monkey patching to use testdrb
# src: https://github.com/seattlerb/zentest/blob/master/lib/autotest.rb#L604
class Autotest::Rails
def testdrb
ENV['TESTDRB_PATH'] || 'testdrb'
end
@jittuu
jittuu / vim_cheatsheet.markdown
Created May 25, 2012 02:54
my learnt vim tips

:let @/ = ""

To clear the last used search pattern and also can set command as :C by :command C let @/="" Link

%

To jump to a matching opening or closing parenthesis, square bracket or a curly brace: ([{}])

@jittuu
jittuu / beatladygaga
Last active December 16, 2015 07:49
auto voting script for our leader :P
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
namespace BeatLadyGaga