This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| class SegmentedControlFormField extends FormField<int> { | |
| final List<String> options; | |
| final double textScaleFactor; | |
| SegmentedControlFormField({ | |
| this.options, | |
| this.textScaleFactor, | |
| FormFieldSetter<int> onSaved, |
This file contains hidden or 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 python2 | |
| #This script finds the compressed data embedded in a Dell BIOS update program | |
| #and decompresses it to an apparent HDR file. The main data seems to start | |
| #at offset 0x58 in the HDR FWIW | |
| import zlib | |
| import sys | |
| import re |
This file contains hidden or 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
| check if exist | |
| /dev/anbox-binder | |
| if it doesn't, anbox-binder don't work | |
| sudo apt install anbox-ubuntu-touch | |
| sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img | |
| touch /home/phablet/anbox-data/.enable | |
| chmod -R o+wrx /home/phablet/anbox-data/data |
This file contains hidden or 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
| check if exist | |
| /dev/anbox-binder | |
| if it doesn't, anbox-binder don't work | |
| sudo apt install anbox-ubuntu-touch | |
| sudo wget -q --show-progress -O /home/phablet/anbox-data/android.img http://cdimage.ubports.com/anbox-images/android-armhf-64binder.img | |
| touch /home/phablet/anbox-data/.enable | |
| chmod -R o+wrx /home/phablet/anbox-data/data |
This file contains hidden or 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
| [Service] | |
| ExecStart= | |
| ExecStart=/usr/bin/caddy run --environ --config /etc/caddy/Caddyfile.json | |
| ExecReload= | |
| ExecReload=/usr/bin/caddy reload --config /etc/caddy/Caddyfile.json |
This file contains hidden or 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
| test( | |
| 'should $TITLE$', | |
| () async { | |
| // Arrange | |
| $ARRANGE$ | |
| // Act | |
| $ACT$ | |
| // Assert |
This file contains hidden or 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
| type: entities | |
| title: Transmission | |
| show_header_toggle: false | |
| entities: | |
| - entity: switch.transmission_switch | |
| icon: 'hass:power' | |
| name: Enabled | |
| secondary_info: last-changed | |
| - entity: switch.transmission_turtle_mode | |
| icon: 'hass:turtle' |
This file contains hidden or 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
| import 'dart:typed_data'; | |
| Uint8List padPKCS5(List<int> input) { | |
| final inputLength = input.length; | |
| final paddingValue = 8 - (inputLength % 8); | |
| final outputLength = inputLength + paddingValue; | |
| final output = Uint8List(outputLength); | |
| for (var i = 0; i < inputLength; ++i) { | |
| output[i] = input[i]; |
This file contains hidden or 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
| const keywords = [ | |
| 'abstract', | |
| 'else', | |
| 'import', | |
| 'super', | |
| 'as', | |
| 'enum', | |
| 'in', | |
| 'switch', | |
| 'assert', |
OlderNewer