d3.unconf example gist. Fork it here.
| protocol ArrayRepresentable { | |
| typealias ArrayType | |
| func toArray() -> ArrayType[] | |
| } | |
| extension Range : ArrayRepresentable { | |
| func toArray() -> T[] { | |
| return T[](self) | |
| } |
⇐ back to the gist-blog at jrw.fi
Or, 16 cool things you may not have known your stylesheets could do. I'd rather have kept it to a nice round number like 10, but they just kept coming. Sorry.
I've been using SCSS/SASS for most of my styling work since 2009, and I'm a huge fan of Compass (by the great @chriseppstein). It really helped many of us through the darkest cross-browser crap. Even though browsers are increasingly playing nice with CSS, another problem has become very topical: managing the complexity in stylesheets as our in-browser apps get larger and larger. SCSS is an indispensable tool for dealing with this.
This isn't an introduction to the language by a long shot; many things probably won't make sense unless you have some SCSS under your belt already. That said, if you're not yet comfy with the basics, check out the aweso
| license: gpl-3.0 | |
| redirect: https://observablehq.com/@d3/margin-convention |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "your_email@youremail.com"
| require 'goliath' | |
| require 'em-synchrony/em-http' | |
| class UploadProxy < Goliath::API | |
| def on_headers(env, headers) | |
| env.logger.info 'received headers: ' + headers.inspect | |
| env['async-headers'] = headers | |
| end |
| log_level :info | |
| log_location STDOUT | |
| node_name 'solo' | |
| client_key File.expand_path('../solo.pem', __FILE__) | |
| cache_type 'BasicFile' | |
| cache_options( :path => File.expand_path('../checksums', __FILE__)) | |
| cookbook_path [ File.expand_path('../../cookbooks', __FILE__) ] |
| # RSpec 2.0 syntax Cheet Sheet by http://ApproachE.com | |
| # defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below) | |
| module Player | |
| describe MovieList, "with optional description" do | |
| it "is pending example, so that you can write ones quickly" | |
| it "is already working example that we want to suspend from failing temporarily" do | |
| pending("working on another feature that temporarily breaks this one") |