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
@page "/" | |
<h2>Throttle</h2> | |
<input type="text" @oninput="onInputThrottled" /> | |
Value: @value1 | |
<h2>Debounce</h2> | |
<input type="text" @oninput="onInputDebounced" /> | |
Value: @value2 | |
@code{ |
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
//REM Git for Windows + | |
//+++ FOR POWERSHELL +++ | |
Install-Module posh-git -Scope CurrentUser | |
Install-Module oh-my-posh -Scope CurrentUser | |
//? | |
Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck |
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
--http://therightstuff.de/2007/11/19/How-To-Obtain-The-Size-Of-All-Tables-In-A-SQL-Server-Database.aspx | |
SET NOCOUNT ON | |
DBCC UPDATEUSAGE(0) | |
-- DB size. | |
EXEC sp_spaceused | |
-- Table row counts and sizes. | |
CREATE TABLE #t |
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
<!--Propertygroup and task to convert xsd to cs before build | |
Item must have Property MyXsd | |
--> | |
<None Include="Configuration\Parameter.xsd"> | |
<SubType>Designer</SubType> | |
<MyXsd>Custom</MyXsd> | |
</None> | |
<PropertyGroup> | |
<WIN_SDK_PATH>$(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows@CurrentInstallFolder)</WIN_SDK_PATH> |
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 sort<T>(sortItems: T[], key: (item: T) => any): T[]{ | |
var res = sortItems.slice(0); | |
res.sort(function (a, b) { | |
var akey = key(a); | |
var bkey = key(b); | |
return akey > bkey ? 1 : akey < bkey ? -1 : 0; | |
}); | |
return res; | |
} |
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
ry the following steps:- | |
Step 1:- By using Macro we can change the language in powerpoint for all slides. | |
Create a new macro: | |
1. Go to Tools, Macro, and Visual Basic Editor. | |
2. Insert a new empty module by selecting Insert, Module. | |
3. Paste this code on the right panel and save the macro: | |
Option Explicit | |
Public Sub ChangeSpellCheckingLanguage() |
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
[CmdletBinding()] | |
Param( | |
[Parameter(Mandatory=$True,Position=1)] | |
[string]$hostname, | |
[Parameter(Mandatory=$True,Position=2)] | |
[int]$port | |
) | |
try { |
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
<configuration> | |
<configSections> | |
<section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler,Oracle.ManagedDataAccess" /> | |
</configSections> | |
<oracle.manageddataaccess.client> | |
<version number="*"> | |
<settings> | |
<setting name="PerformanceCounters" value="4095"/> | |
<setting name="TraceFileLocation" value="c:\temp"/> | |
<setting name="TraceLevel" value="7"/> |
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 static class AsyncTaskConverter | |
{ | |
public static Task FromAsync<TParameter>(Func<TParameter, AsyncCallback, object, IAsyncResult> beginMethod, Action<IAsyncResult> endMethod, TParameter parameter, object state) | |
{ | |
if (beginMethod == null) | |
throw new ArgumentNullException("beginMethod"); | |
if (endMethod == null) | |
throw new ArgumentNullException("endMethod"); | |
var tcs = new TaskCompletionSource<bool>(); |
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
--DROP TABLE acctmp3; | |
DECLARE | |
table_name varchar(20); | |
begin | |
table_name := 'acctmp'; | |
DBMS_OUTPUT.PUT_LINE('Deleting table ' ||table_name); | |
execute immediate 'truncate table ' || table_name; | |
execute immediate 'drop table ' || table_name; |
NewerOlder