Skip to content

Instantly share code, notes, and snippets.

View BryceBeagle's full-sized avatar

ignormies BryceBeagle

  • Robinhood
  • San Jose
View GitHub Profile
@brianegan
brianegan / future_widget_test.dart
Created August 16, 2019 13:37
Demonstrates how to Mock Futures in Widiget tests to check the various expected ouputs depending on the loading / success / error state of the Future
// This is a basic Flutter widget test.
//
// To perform an interaction with a widget in your test, use the WidgetTester
// utility that Flutter provides. For example, you can send tap and scroll
// gestures. You can also use WidgetTester to find child widgets in the widget
// tree, read text, and verify that the values of widget properties are correct.
import 'dart:convert';
import 'package:flutter/material.dart';
@dfur
dfur / Python pathlib guide.md
Last active November 19, 2022 06:33
A brief tour of all the properties and methods in the python standard library 'pathlib' module which provides easy, object oriented file handling in modern python.

Easy object-oriented file handling in modern python

A brief tour of all the properties and methods in the pathlib module.

The pathlib module is part of the Python stardard library (as of v. 3.4) and can be used can do file handling tasks previously done by multiple libraries. Instead of using mere strings to represent filepaths, pathlib uses objects that have many useful properties and methods.

For example, pathlib can replace (amongst others):

os - .rename(), .sep(), .walk(), .chmod(), .mkdir(), .stat()
os.path - .join(), .split(), .exists(), .basename()

@tarlen5
tarlen5 / calculate_mean_ap.py
Last active September 17, 2024 07:44
Calculate mean Average Precision (mAP) for a set of ground truth and predicted bounding boxes for a set of images.
"""
author: Timothy C. Arlen
date: 28 Feb 2018
Calculate Mean Average Precision (mAP) for a set of bounding boxes corresponding to specific
image Ids. Usage:
> python calculate_mean_ap.py
Will display a plot of precision vs recall curves at 10 distinct IoU thresholds as well as output
@srathbone
srathbone / slack-arc-theme.txt
Last active May 11, 2023 15:07
Slack desktop sidebar theme for matching Linux Arc Dark GTK theme.
#2F343F,#2C3849,#5294E2,#FFFFFF,#494D58,#FFFFFF,#94E864,#78AF8F