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 async Task<Func<SomeEntity, bool>> Filters(string query) | |
{ | |
if (string.IsNullOrEmpty(query)) return null; | |
try | |
{ | |
var conditions = query.Split(';', StringSplitOptions.RemoveEmptyEntries); | |
StringBuilder conditionTexts = new StringBuilder(); | |
foreach (var item in conditions) |
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
background yes | |
use_xft yes | |
xftfont 123:size=8 | |
xftalpha 0.1 | |
update_interval 0.5 | |
total_run_times 0 | |
own_window yes | |
own_window_type normal | |
own_window_transparent yes | |
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager |
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
country=TR | |
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev | |
update_config=1 | |
network={ | |
ssid="NETWORKNAME" | |
psk="NETWORKPASSWORD" | |
key_mgmt=WPA-PSK | |
} |
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
let changed = true; | |
let itemLength = 0; | |
let oldLength = 0; | |
let tolerance = 0; | |
var totalP = 0; | |
var sleepTime = 1500; | |
var repository = new Map(); | |
function calculate() { | |
var totalAmount=0; |
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
namespace BinarySearchTree | |
{ | |
public class Node | |
{ | |
public int Value { get; set; } | |
public Node Left { get; set; } | |
public Node Right { get; set; } | |
} |
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 ExampleData | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } | |
/// <summary> | |
/// Total count of the records | |
/// </summary> | |
internal int TotalCount { get; set; } | |
} |
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 void ConfigureServices(IServiceCollection services) | |
{ | |
services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2); | |
var key = Encoding.ASCII.GetBytes(Configuration["Application:Secret"]); | |
services.AddAuthentication(x => | |
{ | |
x.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme; | |
x.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; | |
}) |
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
{ | |
"apiItems":[ | |
{ | |
"displayName":"Microsoft.CSharp.RuntimeBinder", | |
"url":"https://docs.microsoft.com/dotnet/api/microsoft.csharp.runtimebinder", | |
"description":"The namespace provides classes and interfaces that support interoperation between Dynamic Language Runtime and C#." | |
}, | |
{ | |
"displayName":"Microsoft.VisualBasic", | |
"url":"https://docs.microsoft.com/dotnet/api/microsoft.visualbasic", |
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
DECLARE @temptableforSP TABLE (spName varchar(100), tableName nvarchar(100)) | |
DECLARE @SP_Name as NVARCHAR(100); | |
DECLARE @SP_Cursor as CURSOR; | |
SET @SP_Cursor = CURSOR FOR | |
SELECT [name] FROM sys.objects WHERE name LIKE 'sp%' AND type='P' -- Gets SPs for specific names | |
OPEN @SP_Cursor; | |
FETCH NEXT FROM @SP_Cursor INTO @SP_Name; | |
WHILE @@FETCH_STATUS = 0 |
NewerOlder