I hereby claim:
- I am margani on github.
- I am margani (https://keybase.io/margani) on keybase.
- I have a public key ASDlNdNCiswmDGHowyy0QX_SAj2Mpag0zYB166NkwD56XAo
To claim this, I am signing this object:
// Back To Top | |
$('a.top').click(function(){ $('html, body').animate({scrollTop : 0},800); return false; }); | |
//Create an anchor tag | |
<a class="top" href="#">Back to top</a> |
DECLARE @name VARCHAR(50) -- database name | |
DECLARE @path VARCHAR(256) -- path for backup files | |
DECLARE @fileName VARCHAR(256) -- filename for backup | |
DECLARE @fileDate VARCHAR(20) -- used for file name | |
-- specify database backup directory | |
SET @path = 'C:\Backup\' | |
-- specify filename format | |
SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(20),GETDATE(),108),':','') |
I hereby claim:
To claim this, I am signing this object:
class XmlSerializationProgram | |
{ | |
static void Main(string[] args) | |
{ | |
var person = new Person | |
{ | |
firstName = "John", | |
lastName = "Doe", | |
dateOfBirth = new MyDate | |
{ |
string StartDirectory = @"D:\temp\source"; | |
string EndDirectory = @"D:\temp\destination"; | |
private async void btnStartAsync_Click(object sender, EventArgs e) | |
{ | |
foreach (string filename in Directory.EnumerateFiles(StartDirectory)) | |
{ | |
using (FileStream SourceStream = File.Open(filename, FileMode.Open)) | |
{ | |
var destFilePath = EndDirectory + filename.Substring(filename.LastIndexOf('\\')); |
class JsonSerializationProgram | |
{ | |
static void Main(string[] args) | |
{ | |
var person = new Person | |
{ | |
firstName = "John", | |
lastName = "Doe", | |
dateOfBirth = new MyDate | |
{ |
ng new general-app --verbose --skip-tests --directory app --style less --routing |
# Windows Server 2008+ or Windows Vista+ | |
netsh advfirewall firewall set rule group="remote desktop" new enable=Yes |
publi class Project | |
{ | |
public void DoScrum() | |
{ | |
Developers.ForEach(dev => | |
{ | |
if(dev.IsMe) | |
{ | |
Talking.Start(() => { | |
if(NothingFurtherToSay |
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')) | |
choco upgrade -y googlechrome | |
choco upgrade -y notepadplusplus | |
choco upgrade -y 7zip | |
choco upgrade -y rdcman | |
choco upgrade -y adobereader | |
choco upgrade -y vlc | |
choco upgrade -y filezilla | |
choco upgrade -y sysinternals |