- how are you?
- hellow world
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- SVG starter: http://www.w3schools.com/svg/tryit.asp?filename=trysvg_line --> | |
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml" ng-app> | |
<head> | |
<title>AngularJS is more than boring datagrids - bouncing line</title> | |
</head> | |
<body> | |
<svg height="{{config.height}}" width="{{config.width}}" ng-controller='LineController'> | |
<line x1="{{line.x1}}" y1="{{line.y1}}" x2="{{line.x2}}" y2="{{line.y2}}" style="stroke:rgb(255,0,0);stroke-width:2" /> | |
Sorry, your browser does not support inline SVG. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Flow | |
{ | |
private readonly TransformBlock<string, string> _controlAndConvertBlock; | |
private readonly ActionBlock<string> _acquisitionBlock; | |
public Flow() | |
{ | |
_controlAndConvertBlock = new TransformBlock<string, string>(rec => | |
{ | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
private const int RecordsCount = 3000; | |
private static int _recordsLoaded; | |
private static bool _finishedLoading; | |
private static int _recordsProccessed; | |
private static bool _wasError; | |
private static readonly Stopwatch Stopwatch = new Stopwatch(); | |
private const string InputDataFile = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
private const int RecordsCount = 3000; | |
private static readonly Stopwatch Stopwatch = new Stopwatch(); | |
private const string InputDataFile = | |
"C:\\Users\\Boris\\Documents\\Visual Studio 2012\\Projects\\LinearStreamProccessingWithPlinq\\PlinqTests\\DataFile1.txt"; | |
static void Main(string[] args) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
// connection pool "overflow" demo | |
private const int ConnSize = 150; | |
static void Main(string[] args) | |
{ | |
var connections = new SqlConnection[ConnSize]; | |
for (int i = 0; i < ConnSize; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
// connection pool "overflow" demo | |
private const int ConnSize = 150; | |
static void Main(string[] args) | |
{ | |
var connections = new SqlConnection[ConnSize]; | |
for (int i = 0; i < ConnSize; i++) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
// BlockingCollection - demo (approaching Q3) | |
static void Main(string[] args) | |
{ | |
var coll = new BlockingCollection<string>(); | |
Task.Run(() => | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Program | |
{ | |
// TaskCreationOptions.LongRunning - demo | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("press any key when ready (run ProccessExplorer 's proccess Threads tab)"); | |
Console.ReadLine(); | |
for (int i = 0; i < 1000; i++) | |
{ |
NewerOlder