This file contains hidden or 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
"use strict"; | |
var system = require('system'); | |
/** | |
* Wait until the test condition is true or a timeout occurs. Useful for waiting | |
* on a server response or for a ui change (fadeIn, etc.) to occur. | |
* | |
* @param testFx javascript condition that evaluates to a boolean, | |
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or | |
* as a callback function. |
This file contains hidden or 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
public class GoogleTranslator | |
{ | |
private readonly string _outLanguage; | |
private readonly string _inLanguage; | |
public GoogleTranslator() | |
{ | |
_inLanguage = "en"; | |
_outLanguage = "de"; | |
} |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Console | |
{ | |
class Program |
This file contains hidden or 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
cd "C:\Program Files\MongoDB 2.6 Standard" | |
md data\db | |
md log | |
echo "" > log\mongod.log | |
bin\mongod --logappend --logpath="C:\Program Files\MongoDB 2.6 Standard\log\mongod.log" --dbpath="C:\Program Files\MongoDB 2.6 Standard\data\db" --directoryperdb --install | |
net start MongoDB | |
pause |
This file contains hidden or 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
@echo off | |
set builderPath = reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath | |
FOR /F "tokens=2*" %%A IN ('reg.exe query "HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0" /v MSBuildToolsPath') DO SET filePath=%%B | |
"%filePath%\msbuild" "%1" |
This file contains hidden or 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
using System; | |
using System.Reflection; | |
namespace CompareProperties | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var object1 = new MyObject { Bool = false, Integer = 42, Long = 13 }; |
This file contains hidden or 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
using System; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
namespace TestingConsoleProject | |
{ | |
public class Entry | |
{ | |
public const int STD_OUTPUT_HANDLE = -11; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Salesman problem solution</title> | |
</head> | |
<body> | |
<canvas id="canvas" height="1920" width="1080" /> | |
<script> | |
"use strict"; | |
This file contains hidden or 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
using System; | |
namespace QuickSort | |
{ | |
class Program | |
{ | |
static void Main() | |
{ | |
int[] arrayToSort = { 1, 340, 20, 40, 12, 15 }; | |
Sort(arrayToSort, 0, arrayToSort.Length - 1); |