Skip to content

Instantly share code, notes, and snippets.

View DaisukeNagata's full-sized avatar
:octocat:
Focusing

EveryDaySoft DaisukeNagata

:octocat:
Focusing
View GitHub Profile
@claireliu14
claireliu14 / main.dart
Created February 23, 2020 04:35
Horizontal ListWheelScrollView Sample
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(
@pteasima
pteasima / OnScroll.swift
Last active December 16, 2020 17:35
SwiftUI onScroll
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 {
@mipsparc
mipsparc / pidcount.py
Last active January 16, 2023 01:01
MPEG2-TSファイルを解析して、含まれているPIDと数を列挙する
#! /usr/bin/env python3
#coding:utf-8
#require bitstring
import bitstring
import math
import sys
filename = sys.argv[1]
packet_length = 188