Consciousness fits uneasily into our conception of the natural world. On the most common con- ception of nature, the natural world is the physical world. But on the most common conception of consciousness, it is not easy to see how it could be part of the physical world. So it seems that to find a place for consciousness within the natural order, we must either revise our conception of
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
final class CurrencySymbol { | |
static let shared = CurrencySymbol() | |
/// Finds the shortest currency symbol possible and formats the amount with it | |
/// Note: this works around using `currencyCode` and how it displays `CA$1234.56` instead of `$1234.56` | |
func currencyString(for amount: Decimal, isoCurrencyCode: String?) -> String { | |
guard let isoCurrencyCode = isoCurrencyCode, | |
let currencySymbol = findSymbol(for: isoCurrencyCode) | |
else { return String(describing: amount) } | |
return formatter(for: currencySymbol).string(for: amount) ?? String(describing: amount) |
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
-- modified from https://github.com/viascom/nanoid-postgres | |
/* | |
* Copyright 2023 Viascom Ltd liab. Co | |
* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the |
OlderNewer