JSON schemas for tierlist-stars (gh)
Batch converter for Windows using Inkscape with the command line
InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)
- Download
_InkscapeBatchConvert.bat
- Put it in the folder where you have files you wish to convert (will also scan on all subfolders for files of input type).
- Then double click the file to start it.
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
#======================================================================================================# | |
# SETTINGS # | |
#======================================================================================================# | |
$rids = 'win-x64', 'win-arm64', 'linux-x64', 'linux-arm64', 'osx-x64', 'osx-arm64' | |
$versions = | |
@{ Id='sc'; Params='-p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true'; }, | |
@{ Id='fd'; Params='-p:PublishSingleFile=true --self-contained false'; } | |
# @{ Id='aot'; Params='-p:PublishTrimmed=true -p:PublishAot=true --self-contained true'; } | |
$project = 'MyProject.csproj' |
Let's take database models like this:
public class Blogpost
{
public int Id { get; set; }
public string Title { get; set; }
public string Body { get; set; }
public List<Tag> Tags { get; set; }
public User Author { get; set; }
public id AuthorId { get; set; }
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
// Non-generic collections | |
T:System.Collections.ArrayList;Use List<T> | |
T:System.Collections.Hashtable;Use Dictionary<TKey, TValue> | |
// Blocking Task operations | |
P:System.Threading.Tasks.Task.Result;Await it | |
M:System.Threading.Tasks.Task.Wait;Await it | |
M:System.Threading.Tasks.Task.GetAwaiter;Await it | |
M:System.Runtime.CompilerServices.TaskAwaiter.GetResult;Await it | |
M:System.Threading.Tasks.Task.WaitAll`1;Use await Task.WhenAll() |
This script adds a new button to Twitter posts. Clicking it, copies a TwitFix link to your clipboard, and strips any trancking data from it because might as well.
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
import glob | |
import os | |
import gzip | |
files = glob.glob('./**/*.min.js', recursive=True) | |
total_size = 0 | |
longest = len(max(files, key=len)) |
First, install Git from here.
Command | Description |
---|---|
git init |
Initialize a repository in the current directory |
git add . |
Start tracking all non-ignored files |
git commit -m "message" |
Create a commit with a given message |
git remote add origin [url] |
Add the remore repo with the [url] as the origin . |
git push -u origin master |
First push to the remote repo, the origin branch. Sets the origin branch as the upstream for local master at the same time. |
git push |
after the upstream is set, all further pushes are as simple as this |
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
{ | |
"Version": 1, | |
"Id": "136CB17E463AB88CFC67C5B937AA6596", | |
"DisplayName": "Light", | |
"Colors": | |
{ | |
"EStyleColor::Black": "(R=1.000000,G=1.000000,B=1.000000,A=1.000000)", | |
"EStyleColor::Background": "(R=0.776042,G=0.776042,B=0.776042,A=1.000000)", | |
"EStyleColor::Title": "(R=0.864583,G=0.864583,B=0.864583,A=1.000000)", | |
"EStyleColor::WindowBorder": "(R=0.432292,G=0.432292,B=0.432292,A=1.000000)", |
NewerOlder