public static function oval(g:Graphics, w:Float, h:Float, cx:Float = 0, cy:Float = 0):Graphics {
var lx = cx - w * .5;
var rx = cx + w * .5;
var ty = cy - h * .5;
var by = cy + h * .5;
var magic = 0.551915024494; | import React from 'react' | |
| import Markdown from './Markdown' | |
| const components = { | |
| h1: props => <h1 style={{ color: 'tomato' }} {...props} /> | |
| } | |
| const scope = { | |
| name: 'world!', | |
| Box: props => <div style={{border: 'thin solid tomato'}} {...props} /> |
| //! Demo of static "inheritance" | |
| //! | |
| //! Use trait objects to get dynamic inheritance, | |
| //! but casting to a subtype is not explored here | |
| //////////////////////////////////////////////////////// | |
| // Define Base type, interface, and what is overloadable | |
| //////////////////////////////////////////////////////// | |
| /// The main type that will be extended |
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.pdf
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.epub
http://www.oreilly.com/programming/free/files/microservices-for-java-developers.mobi
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.pdf
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.epub
http://www.oreilly.com/programming/free/files/modern-java-ee-design-patterns.mobi
| package main | |
| import ( | |
| "log" | |
| "os" | |
| "os/signal" | |
| "strconv" | |
| "syscall" | |
| "github.com/hashicorp/serf/serf" |
A collection of links to the excellent "Composing Software" series of medium stories by Eric Elliott.
Edit: I see that each post in the series now has index, previous and next links. However, they don't follow a linear flow through all the articles with some pointing back to previous posts effectively locking you in a loop.
Edit: This list is now maintained in the rust-anthology repo.
Configured for a Mac-like experience
Apple Magic Keyboard 2: Model A1644 (same as MLA22LL/A ?)
Mapping for Linux Mint 18 Cinnamon 64-bit
| // updated for Swift 3 | |
| import Carbon | |
| // Swift version of https://developer.apple.com/library/mac/technotes/tn2084/_index.html | |
| @IBAction func testButtonPushed(sender: AnyObject) { | |
| guard let url = NSBundle.main.url(forResource: "SendFinderMessage", withExtension: "scpt") else { | |
| return | |
| } |