Skip to content

Instantly share code, notes, and snippets.

View chaliy's full-sized avatar

Mykhailo Chalyi (Mike Chaliy) chaliy

  • Ukraine, Lviv
  • 03:30 (UTC +02:00)
  • X @chaliy
View GitHub Profile
@chaliy
chaliy / gist:2964142
Created June 21, 2012 06:14 — forked from Restuta/gist:2963076
Reveiw #1
#How it works:
#switch to p4 branch
#get changes from p4
## gets changelist number workspace is synced to
## gets list of changelists that is present on server and don't at my workspace
#commit change-by-change to p4 branch on behalf of corresponding users
#switch back the to previous branch
Param(
[Switch]$Preview,
@chaliy
chaliy / gist:1837799
Created February 15, 2012 17:58 — forked from Restuta/gist:1772878
find a thread safety bug
using System;
using System.Threading;
using System.Threading.Tasks;
# Test
namespace ConsoleApplication3
{
class ThreadUnsafe
{