Content:
{
"workbench.editorAssociations": {
"*.md": "vscode.markdown.preview.editor"
},
"markdown.preview.openMarkdownLinks": "inPreview",
"markdown.preview.scrollPreviewWithEditor": true,| package main | |
| import ( | |
| "log" | |
| "sync" | |
| "github.com/aws/aws-sdk-go/aws" | |
| "github.com/aws/aws-sdk-go/aws/session" | |
| "github.com/aws/aws-sdk-go/service/s3" | |
| ) |
Disclaimer: I do not take responsibility for any damages to or losses of your files.
Do you also have dozens of GIF files and ever wondered why a little bit blinking or a movement of few seconds needs several MB storage? If it is your own content, you need them in original state or anything similar, you can stop reading any further.
GIF files have been invented a very long time ago (you remember 1987?) and weren't meant to be used for displaying an anime or short movie clip and the like. Therefore the format and compression (is no longer) isn't efficient enough.
| # This code is licensed under the terms of the MIT license https://opensource.org/license/mit | |
| # Copyright (c) 2021 Marat Reymers | |
| ## Golden config for golangci-lint v1.59.1 | |
| # | |
| # This is the best config for golangci-lint based on my experience and opinion. | |
| # It is very strict, but not extremely strict. | |
| # Feel free to adapt and change it for your needs. | |
| run: |
Configuring automatically generated release notes
To generate release note as seen in screenshot
| using ClosedXML.Excel; | |
| public async Task<FileResult> ExportPeopleInExcel() | |
| { | |
| var people = await context.People.ToListAsync(); | |
| var fileName = "people.xlsx"; | |
| return GenerateExcel(fileName, people); | |
| } | |
| private FileResult GenerateExcel(string fileName, IEnumerable<Person> people) |
| import { exec as exec_child_process } from 'child_process'; | |
| const exec = util.promisify(exec_child_process); | |
| async function initGitRepo(dest: string) { | |
| try { | |
| const command = 'git init'; | |
| const { stdout, stderr } = await exec(command, { | |
| cwd: dest | |
| }); | |
| console.log(`stdout: ${stdout}`); |
| import * as convert from 'xml-js'; | |
| const xml = readFileSync(filePath, { | |
| encoding: 'utf8' | |
| }); | |
| const result1 = convert.xml2json(xml, { compact: true, spaces: 4 }); | |
| const data = JSON.parse(result1) as DataType; |
| function getAllFiles(dirFullPath: string, arrayOfFiles: string[] = []) { | |
| const files = readdirSync(dirFullPath); | |
| arrayOfFiles = arrayOfFiles || []; | |
| files.forEach(function (file) { | |
| if (statSync(dirFullPath + '/' + file).isDirectory()) { | |
| arrayOfFiles = getAllFiles(dirFullPath + '/' + file, arrayOfFiles); | |
| } else { | |
| arrayOfFiles.push(path.join(dirFullPath, '/', file)); |