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 Poem | |
{ | |
public async Task Execute() | |
{ | |
House house = new House(); | |
CherryOrchard orchard = new CherryOrchard(house); | |
Beetles beetles = new Beetles(); | |
Plowmen plowmen = new Plowmen(); | |
orchard.NearHouse(); |
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
public class SitemapGenerationWithSitemapIndexExample | |
{ | |
private readonly ISitemapGenerator _sitemapGenerator; | |
private readonly ISitemapIndexGenerator _sitemapIndexGenerator; | |
//--this is a bogus interface defined in this example to simulate something you might use to get a list of URls from your CMS or something like that | |
private readonly IWebsiteUrlRetriever _websiteUrlRetriever; | |
//--and IoC/Dependency injection framework should inject this in | |
public SitemapGenerationWithSitemapIndexExample( | |
ISitemapGenerator sitemapGenerator, |
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 | |
{ | |
static void Main(string[] args) | |
{ | |
var sitemap = new Sitemap(); | |
sitemap.Add(new Url | |
{ | |
ChangeFrequency = ChangeFrequency.Daily, | |
Location = "http://www.example.com", |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using System.Text; | |
namespace Campus.Core.Social | |
{ | |
public class TelegramAuthResponse | |
{ |
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 items = $('body').getElementsByClassName("pl-video-edit-remove-liked-video"); | |
for(var i = 0; i < items.length; i++){ items[i].click(); } |
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
wget --user-agent Mozilla/4.0 '[your big address here]' -O dest_file_name |
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
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Data.SqlClient; | |
namespace Core.Data | |
{ | |
/// <summary> | |
/// | |
/// </summary> |
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
-- Run in SQL Server Management Studio | |
USE tempdb | |
GO | |
-- Prepare the scene | |
CREATE TABLE #ChristmasScene | |
( |
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
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: monoserve.sh | |
# Required-Start: $local_fs $syslog $remote_fs | |
# Required-Stop: $local_fs $syslog $remote_fs | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Start FastCGI Mono server with hosts | |
### END INIT INFO |
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
SQL Server data type CLR data type (SQL Server) CLR data type (.NET Framework) | |
varbinary SqlBytes, SqlBinary Byte[] | |
binary SqlBytes, SqlBinary Byte[] | |
varbinary(1), binary(1) SqlBytes, SqlBinary byte, Byte[] | |
image None None | |
varchar None None | |
char None None | |
nvarchar(1), nchar(1) SqlChars, SqlString Char, String, Char[] | |
nvarchar SqlChars, SqlString String, Char[] |
NewerOlder