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
| export type ClassType<T = any> = new (...args: any[]) => T; | |
| interface IPaginated { | |
| limit?: number; | |
| offset?: number; | |
| } | |
| export function PaginatedRequestDto<T extends ClassType>(ResourceCls: T) { | |
| class Paginated extends ResourceCls implements IPaginated { | |
| @ApiModelPropertyOptional({ default: 100 }) |
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
| fixing the character /ufeff in json response of the default wordpress rest api | |
| in the file /wp-includes/rest-api.php | |
| in function rest_send_allow_header( $response, $server, $request ) | |
| add ob_clean(); before return $response; | |
| and for custom rest api | |
| add ob_clean(); before returning the results |
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
| <PropertyGroup> | |
| <AppConfig>App.$(Configuration).config</AppConfig> | |
| </PropertyGroup> |
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
| magick convert *.pdf -background white -alpha remove -set filename:base "%[basename]" ".\jpg\%[filename:base]_%0d.jpg" |
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
| https://winscp.net/eng/docs/library_examples |
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
| Sub test() | |
| Dim i As Long | |
| Dim typeCol As String | |
| Dim orgNameCol As String | |
| Dim newNameCol As String | |
| typeCol = "J" | |
| orgNameCol = "K" | |
| newNameCol = "L" | |
| For i = 2 To Range(orgNameCol & 1, Range(orgNameCol & 1).End(xlDown)).Rows.Count |
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
| Sub test() | |
| Dim i As Long | |
| For i = 2 To Range("C1", Range("C1").End(xlDown)).Rows.Count | |
| Dim LArray() As String | |
| Dim ln As Integer | |
| LArray() = Split(Range("C" & i).Value, "\") | |
| ln = UBound(LArray) - LBound(LArray) | |
| Range("D" & i) = LArray(ln) | |
| Next |
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
| $excel = New-Object -ComObject excel.application | |
| #$excel.visible = $True | |
| $wb = $excel.Workbooks.Add() | |
| $ws = $wb.Worksheets.Item(1) | |
| $ws.Cells.Item(1,1) = 'Titre' | |
| $ws.Cells.Item(1,2) = 'Indice' | |
| $ws.Columns.Item('a').HorizontalAlignment = -4108 | |
| $ws.Columns.Item('b').HorizontalAlignment = -4108 | |
| $ws.columns.item('b').NumberFormat = "@" |
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
| Sub Test() | |
| Dim MyFile As String | |
| Dim cmp As Long | |
| Dim colpath As String | |
| Dim colcimage As String | |
| Dim check As String | |
| 'A remplir | |
| colpath = "B" 'la colonne des chemins |
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
| Option Explicit | |
| Sub Test() | |
| Dim MyFile As String | |
| Dim cmp As Long | |
| Dim colpath As String | |
| Dim colcimage As String | |
| Dim i As Integer | |
| 'A remplir |