Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀

Brian Pfretzschner Pfarrer

🚀
View GitHub Profile
@JonCatmull
JonCatmull / file-size.pipe.ts
Last active Sep 16, 2021
Angular2 + TypeScript file size Pipe/Filter. Convert bytes into largest possible unit. e.g. 1024 => 1 KB
View file-size.pipe.ts
/**
* @license
* Copyright (c) 2019 Jonathan Catmull.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
@edwardhotchkiss
edwardhotchkiss / Makefile
Created Mar 5, 2014
ATtiny85 avr-gcc / avrdude Makefile
View Makefile
DEVICE = attiny85
CLOCK = 8000000
PROGRAMMER = stk500v1
PORT = /dev/tty.usbmodem1421
BAUD = 19200
FILENAME = main
COMPILE = avr-gcc -Wall -Os -DF_CPU=$(CLOCK) -mmcu=$(DEVICE)
all: usb clean build upload