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
{ | |
"Create service with inject": { | |
"prefix": "csd-service", | |
"body": [ | |
"import { RestDbService } from './RestDbService';", | |
"import { Inject } from 'typedi';", | |
"import { ${1:Contact} } from '../../shared/models';", | |
"", | |
"@Inject()", | |
"export class ${1:Contact}Service {", |
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
找Log TableName | |
SELECT name, size/128.0 FileSizeInMB, | |
size/128.0 - CAST(FILEPROPERTY(name, 'SpaceUsed') AS int)/128.0 | |
AS EmptySpaceInMB | |
FROM sys.database_files; | |
清Log |
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_api.ts | |
export * from './lib/header/header.component'; | |
export * from './lib/shared-comp.module'; |
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
<div class="md-content" flex md-scroll-y (swipeleft)="swipe(idx, $event.type)" (swiperight)="swipe(idx, $event.type)"> | |
<md-tab-group md-stretch-tabs [(selectedIndex)]="selectedIndex" (selectedIndexChange)="selectChange()"> | |
<md-tab label="Tab 1" (swipeleft)="swipe(1, $event.type)" (swiperight)="swipe(1, $event.type)"> | |
Content 1 | |
</md-tab> | |
<md-tab label="Tab 2" (swipeleft)="swipe(2, $event.type)" (swiperight)="swipe(2, $event.type)">Content 2</md-tab> | |
</md-tab-group> | |
</div> |
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
String abc = //....你的某些賦值行爲,這裏的字符串是要處理的內容 | |
............. | |
abc=Sanitizer.GetSafeHtmlFragment(abc);//被AntiXSS處理 | |
abc=hfjString_SanitizerCompatibleWithChineseCharacters(abc);//使之漢字不出現亂碼 | |
private static System.Collections.Generic.Dictionary<string, string> hbjDictionaryFX = new System.Collections.Generic.Dictionary<string, string>(); | |
object hbObject鎖 = new object(); | |
/// <summary> |