I hereby claim:
- I am wickdninja on github.
- I am wickdninja (https://keybase.io/wickdninja) on keybase.
- I have a public key ASCz-gAS67L039MD5LlG9OWvlIzhQmnAvv11hpw27svb2Qo
To claim this, I am signing this object:
| data:image/gif;base64,R0lGODlhAQABAAAAACw= |
| <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAFUlEQVR42mNkYPhfz0AEYBxVSF+FAP5FDvcfRYWgAAAAAElFTkSuQmCC" /> |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "command": "yarn dev", | |
| "name": "yarn dev", | |
| "request": "launch", |
| { | |
| // Use IntelliSense to learn about possible attributes. | |
| // Hover to view descriptions of existing attributes. | |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "args": [ | |
| "dev" | |
| ], |
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Example", | |
| "type": "node", | |
| "request": "launch", | |
| "runtimeExecutable": "node", | |
| "runtimeArgs": ["--nolazy", "-r", "ts-node/register/transpile-only"], |
| import { Pipe, PipeTransform } from '@angular/core'; | |
| import { distanceInWordsToNow } from 'date-fns'; | |
| @Pipe({ | |
| name: 'distanceInWordsToNow', | |
| pure: false | |
| }) | |
| export class DistanceInWordsToNowPipe implements PipeTransform { | |
| transform(value: string) { | |
| return distanceInWordsToNow(value); | |
| } |
| # SQL Server - do this early to avoid issues with newer versions of VC++ 2015 redist | |
| choco install sql-server-2017 | |
| choco install sql-server-2017-cumulative-update | |
| choco install sql-server-management-studio | |
| # tools | |
| choco install git | |
| choco install nodejs | |
| choco install tortoisegit | |
| choco install vscode |
| # Author: Nate Ross @wickdninja (https://wickd.ninja) | |
| # HEAVILY BASED ON https://gist.github.com/jessfraz/7c319b046daa101a4aaef937a20ff41f | |
| # Thanks to Jess Frazelle <jess@linux.com> | |
| # 1. Install Chocolatey | |
| <# | |
| Set-ExecutionPolicy RemoteSigned -Force | |
| # Create empty profile (so profile-integration scripts have something to append to) | |
| if (-not (Test-Path $PROFILE)) { | |
| $directory = [IO.Path]::GetDirectoryName($PROFILE) |
I hereby claim:
To claim this, I am signing this object:
| // SQL TO FIND PAYMENT | |
| // select PayToAccount,PayFromAccount,PayToName,memo,shardkey,amount,payfrom,* from Payments where CollectionDate = '12/04/2019' and amount = 500 | |
| // TEST TO FIX PAYMENT | |
| [Test] | |
| public void Remove_Special_Character() | |
| { | |
| Guid paymentID = new Guid("871fa1b5-0b49-4444-8bde-17595fea7340"); | |
| string pattern = @"[^a-zA-Z0-9\s\.\-\&\'\(\)\/\\\:\,\#\$\;\!\+\|]|[\t\u00a0]"; | |
| Regex reg = new Regex(pattern); |