Skip to content

Instantly share code, notes, and snippets.

@sketchytech
sketchytech / piechart.swift
Created February 15, 2016 16:39
Simple pie chart drawing code for iOS using CAShapeLayer and UIBezierPath
extension CGFloat {
func radians() -> CGFloat {
let b = CGFloat(M_PI) * (self/180)
return b
}
}
extension UIBezierPath {
convenience init(circleSegmentCenter center:CGPoint, radius:CGFloat, startAngle:CGFloat, endAngle:CGFloat)
{
@sketchytech
sketchytech / circles.swift
Last active February 19, 2016 00:45
Swift: Circumscribed and inscribed circles of a rect (and oval outside rect)
extension CGFloat {
func radians() -> CGFloat {
let b = CGFloat(M_PI) * (self/180)
return b
}
}
extension UIBezierPath {
convenience init(circumscribedCircleRect rect:CGRect) {
@btroncone
btroncone / ngrxintro.md
Last active March 5, 2025 20:40
A Comprehensive Introduction to @ngrx/store - Companion to Egghead.io Series

Comprehensive Introduction to @ngrx/store

By: @BTroncone

Also check out my lesson @ngrx/store in 10 minutes on egghead.io!

Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!

Table of Contents

@rauchg
rauchg / README.md
Last active April 13, 2025 04:29
require-from-twitter