Expanding on mbostock's weekday.js and my Weekdays gists by adding adaptive tick mark format and wrapping it all up in a dayselect scale (d3.scale.dayselect).
View at bl.ocks.org;
Expanding on mbostock's weekday.js and my Weekdays gists by adding adaptive tick mark format and wrapping it all up in a dayselect scale (d3.scale.dayselect).
View at bl.ocks.org;
| import ifConditionHelper from 'myapp/helpers/if-condition'; | |
| /** | |
| * Logical AND Existence Conditional Block | |
| * | |
| * Usage: {{#if-all-exists field1 field2}}Either field1 or field2 is truthy{{/if-all-exists}} | |
| * | |
| * Executes the given block if all arguments are defined | |
| */ | |
| export default function() { |
| /** | |
| Ember Data: Dependent Relationships | |
| This package extends Ember Data to support creating relationships | |
| where a model's dirty state depends not only on its own attributes | |
| but on the dirty state of models in dependent relationships as well. | |
| ```javascript | |
| App.Thing = DS.Model.extend({ | |
| name : DS.attr('string'), |
| ,ruby() { | |
| case "$1" in | |
| -h|--help) | |
| echo "usage: _ruby [version] [opts]" | |
| ;; | |
| -v|--version) | |
| echo "_ruby version 0.0.9" | |
| ;; | |
| system) | |
| if [ -n "${_ruby_PATH_fragment}" ] |
@holman got a request about our deployment system, heaven
I know it's not a high priority, but has there been any activity on open-sourcing the core Heaven gem?
There is. I've been working on extracting the non-GitHub specific parts into two gems. This first is a CLI portion called hades. The second is an HTTP API portion called heaven.
When you open source something previously used as in internal tool like Heaven, Hubot, Boxen, etc., how do you manage and hook in the parts that need to stay internal?
Normally I focus around four questions:
| package main | |
| import ( | |
| "bytes" | |
| "io/ioutil" | |
| "net/http" | |
| . "launchpad.net/gocheck" | |
| ) |
| package main | |
| import ( | |
| "fmt" | |
| "runtime" | |
| "time" | |
| ) | |
| func waitAround(die chan bool) { | |
| <- die |
| @media only screen and (min-width: 320px) { | |
| /* Small screen, non-retina */ | |
| } | |
| @media | |
| only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
| only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |