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:dio/dio.dart'; | |
| typedef _DataOrErrorFunction<T> = Future<T> Function(); | |
| class DataWithError<T> { | |
| final String error; | |
| final T data; | |
| const DataWithError({this.error, this.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
| import datetime | |
| import sys | |
| duration_sum_seconds = 0 | |
| args = sys.argv[1:] | |
| for duration_str in args: | |
| duration_str_parts = duration_str.split(':') | |
| for i in range(len(duration_str_parts)): | |
| if duration_str_parts[i][0] == '0' and len(duration_str_parts[i]) > 1: |
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/python3 | |
| import easygui, time | |
| title = "Take care about your eyes <3" | |
| body = "It's time to take a break\nClick 'OK' when you are back" | |
| while True: | |
| print("Started counting at", time.ctime()) | |
| time.sleep(60 * 21) # 21 minutes | |
| easygui.msgbox(body, title) |
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
| # XScreenSaver Preferences File | |
| # Written by xscreensaver-demo 5.42 for fperson on Wed Jun 5 23:32:06 2019. | |
| # https://www.jwz.org/xscreensaver/ | |
| timeout: 0:01:00 | |
| cycle: 0:01:00 | |
| lock: True | |
| lockTimeout: 0:01:00 | |
| passwdTimeout: 0:00:30 | |
| visualID: default |