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
import 'package:flutter/material.dart'; | |
const String kTitle = 'Horizontal ListWheelScrollView Sample'; | |
void main() => runApp(new ListWheelScrollViewSample()); | |
class ListWheelScrollViewSample extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return new MaterialApp( |
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
import SwiftUI | |
import Combine | |
struct OnScroll: ViewModifier { | |
@Binding var offset: CGFloat | |
//we can have a version with a closure instead of the binding, but that triggers an infinite loop if content depends on the same Store | |
// var onOffset: (CGFloat) -> () | |
func body(content: Content) -> some View { | |
return VStack { |
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 python3 | |
#coding:utf-8 | |
#require bitstring | |
import bitstring | |
import math | |
import sys | |
filename = sys.argv[1] | |
packet_length = 188 |