- use
gem environment
to show all of the search paths - Use
ri <thing>
in the rails console to get documentation on<thing>
. - Or
help "string-version of <thing>"
Help so far seems quite good - The return value of a function is its last statement unless there is a specific
return
statement - Top level constants are referenced by double colons
::top_level_const
which is useful if you have a local variable with the same name.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
</head> | |
<body> | |
<button class="img-table-toggler" id="example_png">Show data</button><br/> | |
<img src="img/example.png" | |
class="example_png" | |
alt="Bar chart of group membership. Click 'Show data' button for table."/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENVVAR1=value | |
ENVVAR2="value 2" | |
#COMMENTED="Lines starting with hash will be skipped." |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/vega-util/src/accessor.js","webpack:///./node_modules/vega-util/src/error.js","webpack:///./node_modules/vega-util/src/splitAccessPath.js","webpack:///./node_modules/vega-util/src/isArray.js","webpack:///./node_modules/vega-util/src/isObject.js","webpack:///./node_modules/vega-util/src/isString.js","webpack:///./node_modules/vega-util/src/stringValue.js","webpack:///./node_modules/vega-util/src/field.js","webpack:///./node_modules/vega-util/src/accessors.js","webpack:///./node_modules/vega-util/src/logger.js","webpack:///./node_modules/vega-util/src/peek.js","webpack:///./node_modules/vega-util/src/toNumber.js","webpack:///./node_modules/vega-util/src/transform.js","webpack:///./node_modules/vega-util/src/array.js","webpack:///./node_modules/vega-util/src/isFunction.js","webpack:///./node_modules/vega-util/src/compare.js","webpack:///./node_modules/vega-util/src/constant.js","webpack:///./node_modules/vega-util/src/debounce.js", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
When you detach a process in your Docker container, the container dies.
Instead you can run docker-compose run -d <container> <script>
, and leave
the entire container running in the background.
This setup works with the December 15th version of the [national-voter-file][nvf] containers, if you follow their instructions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
"name": "ANNUAL", | |
"data": [ { | |
"pct75": 38910, | |
"pct50": 29370, | |
"pct10": 17700, | |
"pct90": 52070, | |
"YEAR": 2008, | |
"pct25": 22060 | |
}, |
Mike Bostock's example with US counties is modified for states, adding a state ID indicator on hover and a click response: the beginnings of a map-based user interface. For accessibility, a supplementary alphabetized list of states is also provided.
Mike Bostock has a github repo with code
NewerOlder