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
void Main() | |
{ | |
var webClient = new WebClient(); | |
var requestParameters = new NameValueCollection() | |
{ | |
{ "url", "http://www.hondaelcerritonews.com/news/2012/MayNewsletter/?view=Email" }, | |
{ "preserve_styles", "false" }, | |
{ "remove_ids", "true" }, | |
{ "remove_classes", "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
void Main() | |
{ | |
var instances = new AbstractBase[] | |
{ | |
new RegularTaskApproach(), | |
new AsyncAwaitApproach(), | |
new RegularTaskDerivedFromAsyncAwaitApproach(), | |
new RegularTaskUsingBaseAsyncAwaitApproach(), | |
}; | |
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.Linq; | |
using System.Net.Sockets; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication2 | |
{ | |
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
USE [master] | |
GO | |
CREATE DATABASE [testing] | |
GO | |
USE [testing] | |
GO | |
CREATE TABLE [dbo].[Items]( |
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
def test_old_style_here_doc | |
here_doc_style = <<WHEE | |
foo | |
bar | |
WHEE | |
flexible_quote_style = %{ | |
foo | |
bar | |
} |
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
def test_slicing_arrays_is_weird | |
array = [:peanut, :butter, :and, :jelly] | |
assert_equal :peanut, array[0] | |
assert_equal :butter, array[1] | |
assert_equal :and, array[2] | |
assert_equal :jelly, array[3] | |
# this confirms that 4 is an invalid index into the array | |
assert_equal nil, array[4] |
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.Linq; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using log4net; | |
using log4net.Config; | |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using log4net; | |
using log4net.Config; | |
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
using System; | |
using System.Linq; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
static void Main(string[] args) |
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.Linq; | |
using System.Collections.Generic; | |
using System.Collections; | |
using System.Threading; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |