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
static void Main(string[] args) | |
{ | |
string testPhrase = "test123"; | |
string hash = SignCertificate(testPhrase); | |
Console.WriteLine(Verify(testPhrase, hash)); | |
Console.Read(); | |
} | |
private static string SignCertificate(string text) | |
{ |
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
var mainApp = angular.module("mainApp", ["flickrControllers", "flickrServices", "HttpCallsApp", "angular-logger"]); | |
var ApplicationNamespace = ApplicationNamespace || {}; | |
mainApp | |
.config(function (logEnhancerProvider) { | |
logEnhancerProvider.datetimePattern = "HH:mm:ss.SSS"; | |
}) | |
.run(function ($log) { | |
ApplicationNamespace.Util = { | |
delay: (function () { | |
var timers = {}; |
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
[TestFixture] | |
public class RepresentativeServiceTests | |
{ | |
public class TestStory | |
{ | |
public class Fail | |
{ | |
public static IEnumerable Constructor | |
{ | |
get |
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
private static string _pass = "***"; | |
private static string _user = "margus.martsepp@agileworks.eu"; | |
private static string _puri = "https://www.pivotaltracker.com/n/projects/1155920"; | |
[Test] | |
public void ReadPivot() | |
{ | |
using (var d = new ChromeDriver()) | |
{ | |
d.Navigate().GoToUrl(_puri); | |
d.FindElement(By.Id("credentials_username")).SendKeys(_user); |
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
[%{AdOceanId} | |
[%{!NoBlock} | |
<div class="bannerwrap [%{LeftSide=1} col-sm-6 pull-left%|%[%{RightSide=1} col-sm-6 pull-right%]%] [%{Mobile=0}hidden-xs%] [%{Desktop=0} visible-xs-block%][%{Panorama=1}panorama %][%{PageBreak=1}page-break-container %] <%BlockClass%>"> | |
%] | |
[%{ShowBanners & ShowBanners=0 | nobanners=1} | |
<div class="banner [%{Mobile=0}hidden-xs%] [%{Desktop=0}visible-xs-block%]" style="[%{Height}height:<%Height%>px!important;line-height:<%Height%>px;%]background-color:#C2D3CD;text-align:center;[%{!Panorama}margin-top:15px;%]width:100%;display:block;"> | |
[%{Mobile=1}M%][%{Desktop=1}D%] BANNER, id:<%AdOceanId%> | |
</div> |
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
function adoceanaripaeevhhngrpfgz() { | |
if (typeof ado==="object") {var _ado_elem = ado.beginCreative({id:'adoceanaripaeevhhngrpfgz', arg:'', isEmpty:0});} | |
adocean_break_ooiqqvshdw=function() { | |
var id=document.getElementById('script_ooiqqvshdw'); | |
if (id) { eval("try { id.src = 'http://'; id.text=''; } catch(exception) { }");}}; | |
if(typeof gao === "undefined") gao = {}; | |
if(typeof gao.bbb !== "object") gao.bbb = []; | |
bbb = {}; | |
bbb.width = "660"; |
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
if (specialid == null) { | |
ado.slave(id, { | |
myMaster: master | |
}); | |
} else { | |
if (specialid != id) { | |
$(el).attr('id', specialid); | |
ado.slave(specialid, { | |
myMaster: master | |
}); |
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
string fullPath = Server.MapPath(FileUploadHelper.formFullPath(id.ToString(), fileUploadType, filename)); | |
public static string formFullPath(Object id, FileUploadType type, Object fileName) | |
{ | |
return formFullPath(id, type, fileName, false, null); | |
} | |
public static string formFullPath(Object id, FileUploadType type, Object fileName, bool needsMapping, HttpServerUtility server) | |
{ | |
String fullPath = null; |
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
//PM > Install-Package Selenium.WebDriver | |
//PM > Install-Package Selenium.Support | |
//PM > Install-Package Selenium.WebDriver.ChromeDriver | |
public static bool TestTPilet(out TimeSpan time) | |
{ | |
DateTime date0 = DateTime.Now; | |
DateTime date1; | |
using (var driver = new ChromeDriver()) | |
{ |
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
[TestMethod] | |
public void k() | |
{ | |
var n = 10000000; | |
var r = new Random(); | |
var listYes = new List<Tuple<double, double>>(); | |
var listNo = new List<Tuple<double, double>>(); | |
for (var i = 0; i < n; i++) | |
{ | |
var point = Tuple.Create(r.NextDouble(), r.NextDouble()); |