Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
{{/* ACTUAL CODE DONT TOUCH */}} | |
{{$hasContent := false}} {{$content := false}} {{$contentV := ""}} {{$channel := false}} {{$channelV := .Channel.ID}} | |
{{$flags := cslice "-channel" "-content"}} | |
{{- range $k, $v := .CmdArgs -}} | |
{{- if eq . "-content"}} {{$content = true}} {{else if in $flags .}} {{$content = false}} {{end -}} | |
{{- if and ($content) (not (eq . "-content"))}} {{$hasContent = true}} {{$contentV = joinStr " " $contentV .}} {{end -}} | |
{{- if eq . "-channel"}} {{$channel = true}} {{else if in $flags .}} {{$channel = false}} {{end -}} | |
{{- if and ($channel) (not (eq . "-channel"))}} {{$checkChannel := reReplace `<|>|#` . ""}} {{with getChannelOrThread $checkChannel}} {{$channelV = .ID}} {{end}} {{end -}} | |
{{- end -}} |
## So you want to use stuff like 'tmux' and 'lolcat' on the Steam Deck, but they haven't been included in the base OS? | |
# One way to do it is this. | |
# 1. setup a chroot environment so there is a file structure in which Pacman can download/unpack packages and their dependencies. | |
# 2. don't use it as a chroot environment; rather, add the various /bin directories inside it to your $PATH, and create an /etc/ld.so.conf.d/deck-local-arch.conf to permit the bins to find the libs they need. | |
mkdir -p ~/.local/packer | |
cd ~/.local | |
#these steps are required, or else the pacstrap will fail with 'marginal trust' errors | |
pacman -Sy archlinux-keyring | |
pacman-key --populate archlinux |
🚚 The bookmarklet has moved to https://github.com/bramus/mastodon-profile-redirect/
using System; | |
using System.Reflection; | |
using UnityEditor; | |
public static class EditorUtils | |
{ | |
private const BindingFlags AllBindingFlags = (BindingFlags)(-1); | |
/// <summary> | |
/// Returns attributes of type <typeparamref name="TAttribute"/> on <paramref name="serializedProperty"/>. |
[alias] | |
browse-tree = !cd -- ${GIT_PREFIX:-.} && hub browse -- tree/"${1-$(git rev-parse --abbrev-ref HEAD)}" # Use argument, or default to HEAD | |
browse-commit = !cd -- ${GIT_PREFIX:-.} && hub browse -- commit/"${1-$(git rev-parse --short HEAD)}" # Use argument, or default to HEAD | |
browse-file = !cd -- ${GIT_PREFIX:-.} && hub browse -- blob/"$(git rev-parse --short HEAD)"/$(git ls-files --full-name "$1") | |
browse-pr = !hub pr list -h "$(git rev-parse --abbrev-ref HEAD)" -f '%U%n' | xargs open | |
/** Author: Oleksandr Kucherenko, 2018-present */ | |
package {your.package.name}; | |
import android.annotation.TargetApi; | |
import android.app.Activity; | |
import android.content.res.Resources; | |
import android.graphics.Matrix; | |
import android.os.Build; | |
import android.support.annotation.NonNull; | |
import android.support.v4.util.Pair; |
using System; | |
using System.Collections.Generic; | |
/// <summary> | |
/// Simple service manager. Allows global access to a single instance of any class. | |
/// Copyright (c) 2014-2017 Eliot Lash | |
/// </summary> | |
public class Services | |
{ | |
//Statics |
// https://github.com/realm/realm-js/issues/370#issuecomment-270849466 | |
export default class Realm { | |
constructor(params) { | |
this.schema = {}; | |
this.callbackList = []; | |
this.data = {}; | |
this.schemaCallbackList = {}; | |
params.schema.forEach((schema) => { | |
this.data[schema.name] = {}; | |
}); |