Consider this directory tree from a vendor:
OwningTheLibs/
OwningTheLibs.a
include/
OwningTheLibs/
OwningTheLibs.h
Synchronized output is merely implementing the feature as inspired by iTerm2 synchronized output,
except that it's not using the rare DCS but rather the well known SM ?
and RM ?
. iTerm2 has now also adopted to use the new syntax instead of using DCS.
When rendering the screen of the terminal, the Emulator usually iterates through each visible grid cell and renders its current state. With applications updating the screen a at higher frequency this can cause tearing.
This mode attempts to mitigate that.
static const CGFloat kFontWeightEpsilon = FLT_EPSILON; | |
@implementation UIFont (CustomizedDynamicType) | |
+ (nonnull UIFont *)preferredFontWithDefaultSize:(CGFloat)size | |
textStyle:(nonnull UIFontTextStyle)textStyle { | |
return [self preferredFontWithDefaultSize:size | |
textStyle:textStyle | |
fontWeight:UIFontWeightRegular | |
italic:NO]; |
-- Based on: http://augustss.blogspot.com/2007/10/simpler-easier-in-recent-paper-simply.html | |
import Data.List (delete, union) | |
{- HLINT ignore "Eta reduce" -} | |
-- File mnemonics: | |
-- env = typing environment | |
-- vid = variable identifier in Bind or Var | |
-- br = binder variant (Lambda or Pi) | |
-- xyzTyp = type of xyz | |
-- body = body of Lambda or Pi abstraction |
class MainViewModel : ViewModel() { | |
sealed class Event { | |
object NavigateToSettings: Event() | |
data class ShowSnackBar(val text: String): Event() | |
data class ShowToast(val text: String): Event() | |
} | |
private val eventChannel = Channel<Event>(Channel.BUFFERED) | |
val eventsFlow = eventChannel.receiveAsFlow() |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
import Accessibility | |
import UIKit | |
extension CGColor { | |
var rgba: String { String(format: "R: %1.3f, G: %2.3f, B: %3.3f, A: %4.3f", components![0], components![1], components![2], components![3]) } | |
} | |
let hues: ClosedRange<Int> = (0...359) | |
hues // with constant saturation, brightness, and alpha |
Step 1: Prepare by Walking Through the Three Conversations
;; (cond-let | |
;; (odd? x) [x n] (inc x) | |
;; (< n 10) [y (inc n)] 10 | |
;; :else n)) | |
;; we want the above to yield | |
;; (let [x n] | |
;; (if (odd? x) | |
;; (inc x) |
ARG atlantis_version=v0.15.0 | |
FROM runatlantis/atlantis:${atlantis_version} | |
LABEL maintainer="Beat DevOps Team" | |
LABEL description="thebeat.co atlantis image used in IaC CI/CD!" | |
LABEL version="0.2" | |
# https://github.com/gruntwork-io/terragrunt/releases | |
ARG terragrunt_version=v0.25.1 |