You are here |
whackylabs.com | ||
| | | |
justabeech.com
|
|
| | | | When Apple announced Xcode 6 at WWDC14, one feature in particular excited me namely Xcode Live Rendering.This means an end to all the empty white views in pl... | |
| | | |
www.avanderlee.com
|
|
| | | | Auto Layout Constraints written programmatically in code by making use of Layout Anchors, Layout Guides, and a few useful extensions. | |
| | | |
noahgilmore.com
|
|
| | | | It's been a year since SwiftUI was released, and many iOS developers who are lucky to only support the two most current iOS versions will soon be able to start writing SwiftUI in their production apps. There are clear benefits to using SwiftUI (I could probably devote a whole post to them), so the question I've been thinking about is: where to start? | |
| | | |
www.jeremykun.com
|
|
| | Problem: Compute the product of two polynomials efficiently. Solution: import numpy from numpy.fft import fft, ifft def poly_mul(p1, p2): """Multiply two polynomials. p1 and p2 are arrays of coefficients in degree-increasing order. """ deg1 = p1.shape[0] - 1 deg2 = p1.shape[0] - 1 # Would be 2*(deg1 + deg2) + 1, but the next-power-of-2 handles the +1 total_num_pts = 2 * (deg1 + deg2) next_power_of_2 = 1 << (total_num_pts - 1). |