Consistent commit messages that are easily readable & searchable.
commit_type(project_component): [issue_reference] short_message
optional_extended_message
$codeList = [ | |
"BE", "BG", "CZ", "DK", "DE", "EE", "IE", "EL", "ES", "FR", "HR", "IT", "CY", | |
"LV", "LT", "LU", "HU", "MT", "NL", "AT", "PL", "PT", "RO", "SI", "SK", "FI", | |
"SE", "UK" | |
]; |
$mapCountryToContinent = array( | |
"AF" => "AS", | |
"AX" => "EU", | |
"AL" => "EU", | |
"DZ" => "AF", | |
"AS" => "OC", | |
"AD" => "EU", | |
"AO" => "AF", | |
"AI" => "NA", | |
"AQ" => "AN", |
static addOrUpdate(id, document) { | |
return new Promise(function (resolve, reject) { | |
let doStore = function (originalDocument) { | |
// Merge the document: First, set the ID. Then apply the existing doc on top if possible. Finally, apply the changed doc. | |
let mergedDoc = { | |
_id: id | |
}; | |
if (originalDocument) { | |
for (let key in originalDocument) { |
using DiscordRPC.Logging; | |
using System; | |
using UnityEngine; | |
public class DiscordDebugLogger : DiscordRPC.Logging.ILogger | |
{ | |
/// <summary> | |
/// The level of logging to apply to this logger. | |
/// </summary> | |
public LogLevel Level { get; set; } |
function is_touch_device() { | |
try { | |
let prefixes = ' -webkit- -moz- -o- -ms- '.split(' '); | |
let mq = function (query) { | |
return window.matchMedia(query).matches; | |
}; | |
if (('ontouchstart' in window) || (typeof window.DocumentTouch !== "undefined" && document instanceof window.DocumentTouch)) { | |
return true; |
#!/bin/bash | |
# /etc/cron.daily/mysql-s3-backup | |
# Before use, install AWS CLI and use "aws configure" to set up credentials with write access to your s3 bucket | |
# See https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-install | |
DB_USER=XXX | |
DB_NAME=XXX | |
DB_PASS=XXX |
<?php | |
function parseFloatGuess($rawValue) { | |
if (!$rawValue) { | |
return 0; | |
} | |
$lastCommaPosition = strrpos($rawValue, ','); | |
$lastDotPosition = strrpos($rawValue, '.'); |
Find the download URL for the latest binary from the official Downloads page.
At the time of writing, this is v0.12.6, which was released on June 11, 2020.
Download the binary, and then install the package and its dependencies. For example:
wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
sudo dpkg -i wkhtmltox_0.12.6.1-2.jammy_amd64.deb
ProGrids seems to have disappeared from the Unity Package Manager as of Unity 2018.3.
It is possible to install ProGrids v2 via the Asset Store, but it's an old and incompatible version.
Per Sayama3:
In 2021, you still can use it but it's different :
- Go to the Package Manager