Skip to content

Instantly share code, notes, and snippets.

View vindolin's full-sized avatar
:octocat:
Available for hire 😎

Thomas Schüßler vindolin

:octocat:
Available for hire 😎
View GitHub Profile
@vindolin
vindolin / main.dart
Last active February 6, 2023 08:57
Animated CustomPainter + Riverpod
// ignore_for_file: avoid_print
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_hooks/flutter_hooks.dart';
import 'package:hooks_riverpod/hooks_riverpod.dart';
void main() {
runApp(
const ProviderScope(
child: MyApp(),
@vindolin
vindolin / main.dart
Last active February 5, 2023 15:25
Riverpod Animation Problem
// ignore_for_file: avoid_print
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
void main() {
runApp(
const ProviderScope(
child: MyApp(),
),
@vindolin
vindolin / main.dart
Last active October 7, 2022 08:11
Blink Problem
import 'dart:async';
import 'dart:math';
import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
const int minTimerDurationMs = 700;
const int maxTimerDurationMs = 2000;
const int animationDurationMs = 1000;
class FlashingCard extends StatefulWidget {
@mitchese
mitchese / speedwire.py
Last active November 17, 2023 21:00
SMA Speedwire python interpreter
# SMA Speedwire interpreter
#
# This little script interprets SMA's speedwire as multicasted from the Sunny Home Manager 2
# and will print out the energy flow total, and for each phase
import socket
import struct
MULTICAST_IP = "239.12.255.254"
MULTICAST_PORT = 9522
@dimaryaz
dimaryaz / dropbox_ext4.c
Created August 15, 2018 07:28
Dropbox ext4 hack
/*
* dropbox_ext4.c
*
* Compile like this:
* gcc -shared -fPIC -ldl -o libdropbox_ext4.so dropbox_ext4.c
*
* Run Dropbox like this:
* LD_PRELOAD=./libdropbox_ext4.so ~/.dropbox-dist/dropboxd
*/
@vindolin
vindolin / bitcoin_watch.py
Last active December 16, 2015 01:18
Simply shows the bitcoin price in $ from mtgox.com and the total price of all the bitcoins you own. Screenshot: http://i.imgur.com/UatFwkM.png
# -*- coding: utf-8 -*-
# Simply shows the bitcoin price in $ from mtgox.com and the total price of all the bitcoins you own.
# Screenshot: http://i.imgur.com/UatFwkM.png
# Donations --> 1HpQQds9wUFykgwKyzXp747SAb6374RjUL
import requests
import json
from time import sleep
from sys import stdout