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
select datepart(week,GETDATE()) |
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
[TestMethod] | |
public void Test_CollectionObjects() | |
{ | |
var list1 = new List<string>() { "1", "2", "3"}; | |
var list2 = new List<string>() { "1", "2", "3" }; | |
CollectionAssert.AreEqual(list1, list2); | |
} | |
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
[TestMethod] | |
public void VerifyThatStudentAreEqual() | |
{ | |
Student st1 = new Student(); | |
st1.ID = 20; | |
st1.Name = "ligaoren"; | |
Student st2 = new Student(); | |
st2.ID = 20; | |
st2.Name = "ligaoren"; |
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
////LINQPad | |
void Main() | |
{ | |
string[] array = | |
{ | |
"civic", | |
"deified", | |
"deleveled", | |
"devoved", |
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
// ==UserScript== | |
// @name Hello World JQuery | |
// @namespace https://gist.github.com/thedom85/ | |
// @include * | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @version 1 | |
// ==/UserScript== | |
//Avoid conflicts | |
this.$ = this.jQuery = jQuery.noConflict(true); |
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
// ==UserScript== | |
// @name ColorRandom HtmlDiv | |
// @namespace https://gist.github.com/thedom85/ | |
// @include * | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @version 1 | |
// ==/UserScript== | |
//Avoid conflicts | |
this.$ = this.jQuery = jQuery.noConflict(true); |
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
// ==UserScript== | |
// @name Mondrian ColorRandom HtmlDiv | |
// @namespace https://gist.github.com/thedom85/ | |
// @include * | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @version 1 | |
// ==/UserScript== | |
//Avoid conflicts | |
this.$ = this.jQuery = jQuery.noConflict(true); |
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
//LINQPad | |
void Main() | |
{ | |
var s= new Student(); | |
s.Name="a"; | |
s.ID=1; | |
Console.WriteLine(test.GetPropertyValuesByObject(s)); | |
} | |
public static class test{ |
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
// ==UserScript== | |
// @name HtmlElement ColorRandom onClick | |
// @namespace https://gist.github.com/thedom85/ | |
// @include * | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js | |
// @version 1 | |
// ==/UserScript== | |
//Avoid conflicts | |
this.$ = this.jQuery = jQuery.noConflict(true); |