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:
| using UnityEngine; | |
| public class ClampedCurveAttribute : PropertyAttribute | |
| { | |
| public readonly float MinX; | |
| public readonly float MaxX; | |
| public readonly float MinY; | |
| public readonly float MaxY; | |
| public ClampedCurveAttribute( float minX, float maxX, float minY, float maxY ) |
| MIT License | |
| Copyright (c) 2021 Daniel Ethridge | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| /**! | |
| * Fast CRC32 in JavaScript | |
| * 101arrowz (https://github.com/101arrowz) | |
| * License: MIT | |
| */ | |
| // If you use this code, please link this gist or attribute it somehow. | |
| // This code uses the Slice-by-16 algorithm to achieve performance | |
| // roughly 2x greater than all other JS CRC32 implementations (e.g. |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
| input[type="search"]::-webkit-search-cancel-button { | |
| --size: 11px; | |
| --background: #7F7F7F; | |
| --icon: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI3IiBoZWlnaHQ9IjciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZmZmIiBzdHJva2Utd2lkdGg9IjMiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIgY2xhc3M9ImZlYXRoZXIgZmVhdGhlci14Ij48cGF0aCBkPSJNMTggNkw2IDE4TTYgNmwxMiAxMiIvPjwvc3ZnPgo="); | |
| -webkit-appearance: none; | |
| height: var(--size); | |
| width: var(--size); | |
| border-radius: 50%; | |
| background: var(--background) var(--icon) 50% 50% no-repeat; | |
| } |
| (*Adapted from https://stackoverflow.com/a/39820517*) | |
| set r to "" -- an empty variable for appending a string | |
| tell application "Safari" | |
| repeat with w in windows -- loop for each window, w is a variable which contain the window object | |
| if exists current tab of w then -- is a valid browser window | |
| repeat with t in tabs of w -- loop for each tab of this window, , t is a variable which contain the tab object | |
| -- get the title (name) of this tab and get the url of this tab | |
| tell t to set r to r & "- [ ] [" & name & "](" & URL & ")" & linefeed -- append a line to the variable (r) | |
| (* | |
| 'linefeed' mean a line break |
| // Based on the Unity Wiki FloatingOrigin script by Peter Stirling | |
| // URL: http://wiki.unity3d.com/index.php/Floating_Origin | |
| using UnityEngine; | |
| using UnityEngine.SceneManagement; | |
| public class FloatingOrigin : MonoBehaviour | |
| { | |
| [Tooltip("Point of reference from which to check the distance to origin.")] | |
| public Transform ReferenceObject = null; |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
%GetOptimizationStatus return a set of bitwise flags instead of a single value,
to access the value, you need to take the binary representation of the returned value.
Now, for example, if 65 is returned, the binary representation is the following:
(65).toString(2).padStart(12, '0');
// 000001000001Each binary digit acts as a boolean with the following meaning: