Assignment | |
---|---|
Assign value to variable if variable is not already set, value is returned.Combine with a : no-op to discard/ignore return value . |
${variable="value"} : ${variable="value"} |
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
# Linked List | |
# from https://gist.github.com/bojidar-bg/a570c614a4dd1cd84949 | |
# Example use | |
""" | |
var my_linked_list = LinkedList.new() | |
func _ready(): | |
var ll = my_linked_list |
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 { writeFile, readdir, readFile } from 'node:fs/promises'; | |
import path from 'path'; | |
/* | |
Steps to get/export your notes from Huawei Notes: | |
1. Login into a Huawei Account in the phone. | |
2. Activate in your phone, the Notes Syncing, which is inside of Huawei Account > Cloud | |
3. Log in into https://cloud.huawei.com | |
4. Go to https://cloud.huawei.com/home#/account/gdpr, and click on Download Notes | |
5. This will give you a zip file with a password. Extract the zip file into a folder. |
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
#!/usr/bin/env bash | |
v=$(echo "$@" | grep -- '-v') | |
d=$(echo "$@" | grep -- '-d') | |
sed_command='' | |
# Doesn't support spaces in names :| | |
for cf in $(find . -not -path '*.git*' -not -name '* *' -type f | sed 's|\./||g'); do | |
if [ ! -z "$v" ]; then |
In the best case, you should:
- tag your releases. This way, one always knows which commit to package for a specific release
- create and maintain an
export.cfg
, with an icon, and version numbers raised at each release
Explanations why these things are useful for packagers, and how they are done, and done best, can be found below.
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
// UPDATE! | |
// In Json.NET 7, a DictionaryKeyResolver was added. | |
// This might be able to fix the problem more elegantly. | |
// I haven't checked though. | |
public class DictionaryJsonConverter : JsonConverter | |
{ | |
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) | |
{ | |
var dictionary = (IDictionary)value; |