sudo update_dyld_shared_cache |
\documentclass[11pt, oneside]{article} | |
\usepackage[margin=0.5in]{geometry} | |
\geometry{letterpaper} | |
\usepackage[parfill]{parskip} | |
\usepackage{graphicx} | |
\usepackage{amssymb} | |
\usepackage{xcolor} | |
\pagecolor{white} | |
\usepackage[colorlinks = true, linkcolor = blue, urlcolor = blue]{hyperref} | |
\pagestyle{empty} |
import androidx.compose.foundation.interaction.MutableInteractionSource | |
import androidx.compose.foundation.shape.ZeroCornerSize | |
import androidx.compose.foundation.text.KeyboardActions | |
import androidx.compose.foundation.text.KeyboardOptions | |
import androidx.compose.material.LocalTextStyle | |
import androidx.compose.material.MaterialTheme | |
import androidx.compose.material.TextField | |
import androidx.compose.material.TextFieldColors | |
import androidx.compose.material.TextFieldDefaults | |
import androidx.compose.runtime.Composable |
import androidx.compose.ui.text.input.OffsetMapping | |
class CurrencyOffsetMapping(originalText: String, formattedText: String) : OffsetMapping { | |
private val originalLength: Int = originalText.length | |
private val indexes = findDigitIndexes(originalText, formattedText) | |
private fun findDigitIndexes(firstString: String, secondString: String): List<Int> { | |
val digitIndexes = mutableListOf<Int>() | |
var currentIndex = 0 | |
for (digit in firstString) { |
https://groups.google.com/forum/#!topic/comp.sys.mac.system/jIWY8VRl3cw
Recommended "vm_compressor=2" or "vm_compressor=4".
Compressor mode 4 (VM compressed + swap) and all the steps between 1st-4th descripted before, is equal than compressor mode 2 (VM compressed/encrypted without swap).
In compressor mode 1, if you disable swap, system is always 100% memory pressure, and if memory is full at some point, the system will freeze.
So i recommended mode 2 or 4 with steps to disable swap applied.
import Foundation | |
import _Concurrency | |
extension AsyncStream { | |
public init<S: AsyncSequence & Sendable>( | |
_ sequence: S, | |
bufferingPolicy limit: Continuation.BufferingPolicy = .unbounded | |
) where S.Element == Element { | |
self.init(bufferingPolicy: limit) { continuation in | |
let task = Task { |
Android uses hexadecimal ARGB values, which are formatted as #AARRGGBB. That first pair of letters, the AA, represent the alpha channel. You must convert your decimal opacity values to a hexadecimal value. Here are the steps:
Alpha Hex Value Process
-
Take your opacity as a decimal value and multiply it by 255. So, if you have a block that is 50% opaque the decimal value would be .5. For example: .5 x 255 = 127.5
-
The fraction won't convert to hexadecimal, so you must round your number up or down to the nearest whole number. For example: 127.5 rounds up to 128; 55.25 rounds down to 55.
-
Enter your decimal value in a decimal-to-hexadecimal converter, like http://www.binaryhexconverter.com/decimal-to-hex-converter, and convert your values.
import UIKit | |
extension UIView { | |
/* Usage Example | |
* bgView.addBottomRoundedEdge(desiredCurve: 1.5) | |
*/ | |
func addBottomRoundedEdge(desiredCurve: CGFloat?) { |