Skip to content

Instantly share code, notes, and snippets.

@kconner
kconner / macOS Internals.md
Last active November 13, 2024 07:51
macOS Internals

macOS Internals

Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.

Starting Points

How to use this gist

You've got two main options:

@NHellFire
NHellFire / copyfileobj.py
Created December 22, 2016 03:20
Python copyfileobj with progress bar
from time import time
import sys
def mksize (bytes):
suffixes = ("B", "kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB")
suffixesLen = len(suffixes)
for i in range(suffixesLen):
if bytes < pow(1000, i + 1) or i + 1 == suffixesLen:
return "%.2f %s" % (float(bytes) / pow(1024, i), suffixes[i])
@truh
truh / Fragenkatalog_INSY_201401.rst
Last active January 3, 2016 08:09
Fragenkatalog INSY

Fragenkatalog INSY

Imperative PHP-Webapplikationen

Mehrfach-Markierungen mit FOR EACH

@hay
hay / gist:1351230
Last active October 14, 2024 00:30
Enterprisify your Java Class Names!
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Enterprisify your Java Class Names! (by Hay Kranen)</title>
<style>
body {
background: white;
text-align: center;