-
Enable PPA
sudo apt update sudo apt install software-properties-common apt-transport-https curl
-
Install
apt-fast
[Yes! it's really fast]
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
struct LowPassFilterSignal { | |
/// Current signal value | |
var value: Double | |
/// A scaling factor in the range 0.0..<1.0 that determines | |
/// how resistant the value is to change | |
let filterFactor: Double | |
/// Update the value, using filterFactor to attenuate changes | |
mutating func update(newValue: Double) { |
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
#!/usr/bin/env python | |
############################################################################### | |
# This script downloads an object from AWS S3. If the object was encrypted, | |
# it will be decrypted on the client side using KMS envelope encryption. | |
# | |
# Envelope encryption fetches a data key from KMS and uses it to encrypt the | |
# file. The encrypted file is uploaded to an S3 bucket along with an encrypted | |
# version of the data key (it's encrypted with a KMS master key). You must | |
# have access to the KMS master key to decrypt the data key and file. To | |
# decrypt, the file is downloaded to the client, the encrypted data key is |
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
// SPDX-License-Identifier: MIT | |
pragma solidity 0.8.16; | |
import "./StateMachines.sol"; | |
contract Pausable is StateMachines { | |
StateMachine m = initial("unpaused"); | |
event Paused(bool paused); |