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 | |
/****** Object: Database [BD_LOCAL] Script Date: 8/14/2022 11:46:07 AM ******/ | |
CREATE DATABASE [BD_LOCAL] | |
CONTAINMENT = NONE | |
ON PRIMARY | |
( NAME = N'Sirius', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\Sirius.mdf' , SIZE = 8192KB , MAXSIZE = UNLIMITED, FILEGROWTH = 65536KB ) | |
LOG ON | |
( NAME = N'Sirius_log', FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\DATA\Sirius_log.ldf' , SIZE = 8192KB , MAXSIZE = 2048GB , FILEGROWTH = 65536KB ) | |
WITH CATALOG_COLLATION = DATABASE_DEFAULT |
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
Update-Package Microsoft.CodeDom.Providers.DotNetCompilerPlatform -r |
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
const removeDuplicatesFromArray = arr => [...new Set(arr)]; | |
removeDuplicatesFromArray([1,1,2,3,4,4,true,true,false,'foo','foo']); |
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
//fnServerData used to inject the parameters into the AJAX call sent to the server-side | |
"fnServerData": function (sSource, aoData, fnCallback) { | |
aoData.push({ "name": "YourParamName", "value": "YourParamValue" }); | |
$.getJSON(sSource, aoData, function (json) { | |
fnCallback(json) | |
}); | |
}, |
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
$.validator.addMethod("greaterThanZero", function (value, element) { | |
if(value > 0) | |
return true; | |
else | |
return false; | |
}, "Smaller than 0."); | |
$("#input_field").rules("add", { | |
required: true, | |
maxlength: 255, |
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
1) Radar scale | |
cl_radar_always_centered "0"; | |
cl_radar_scale "0.3"; | |
cl_hud_radar_scale "1.15"; | |
cl_radar_icon_scale_min "1"; | |
cl_radar_rotate "1"; | |
cl_radar_square_with_scoreboard "1"; | |
2) Crosshair | |
cl_crosshairalpha "255"; |
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
- Convert ViewModel to JSON for saving: | |
ko.toJSON(self.MyViewModel) | |
- Bind click in ForEach: | |
data-bind="click: function() {$parent.MyFunction($data)}" // $data is index object in binding context |
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
public List<ViewModel> GetAll() | |
{ | |
List<ViewModel> list = ( | |
from a in context.TableA | |
join b in context.TableB on a.TableAKey equals b.TableBKey | |
where a.TableAKey == b.TableBKey | |
select new | |
{ | |
a, | |
b |
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
I) Set up | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/1000hz-bootstrap-validator/0.11.9/validator.js"></script> | |
1) Active form validation | |
$('#myForm').validator() | |
or | |
<form data-toggle="validator" role="form"> | |
2) Add this behind control if you want to display error message and feedback icon | |
Adjust control container: |
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
$('#in-date').datetimepicker({ | |
formatDate: 'd.m.Y', | |
formatTime: 'H:i', | |
format: 'd/m/Y h:i', | |
startDate: Date.today, | |
minDate: '01.01.2001', | |
maxDate: '01.01.2098', | |
showSecond: false, | |
step: 30, | |
defaultTime: '09:00' |
NewerOlder