- Some samples have implicit bias. Watch out for them. (For example, surveys represent only the respondents. Stratified samples are hard to get.)
- "Average" can mean a lot of things. Arithmetic mean (weighted or not), median, or mode? When unspecified, you can assume that the writer put down the number that best advances their agenda.
- Data obtained from small samples can be used to make extravagant claims because they can exhibit erratic characteristics.
- When a statistic is about a range (e.g., IQ test scores), the differences in similar scores are not significant. More important is to compare confidence intervals.
- Graphs can be deceiving. (e.g., line graphs may not start at 0 on the y-axis, or be skewed to make the variance in values more significant.)
- Embelishing graphics to show quantities can be deceiving. (e.g., the area can square the significance--1 vs 1.5^2, or 3-d graphics can cube--1 vs 1.5^3)
- Unrelated claims can accompany honest-to-goodness statistics to insinuate unc
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
require 'ostruct' | |
job = OpenStruct.new( :state => 'failed') | |
def debug_data | |
{ | |
previous_state: job.state | |
} | |
end |
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
$ pip install --user --upgrade pip | |
You are using pip version 6.0.8, however version 8.0.3 is available. | |
You should consider upgrading via the 'pip install --upgrade pip' command. | |
Collecting pip from https://pypi.python.org/packages/py2.py3/p/pip/pip-8.0.3-py2.py3-none-any.whl#md5=b234250205337ff67967dff300001e3d | |
Downloading pip-8.0.3-py2.py3-none-any.whl (1.2MB) | |
100% |################################| 1.2MB 419kB/s | |
Installing collected packages: pip | |
Successfully installed pip-6.0.8 |
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
[ | |
{ | |
"url": "https://api.github.com/repos/travis-ci/travis-api/issues/comments/75100791", | |
"html_url": "https://github.com/travis-ci/travis-api/issues/162#issuecomment-75100791", | |
"issue_url": "https://api.github.com/repos/travis-ci/travis-api/issues/162", | |
"id": 75100791, | |
"user": { | |
"login": "BanzaiMan", | |
"id": 25666, |
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
language: elixir | |
elixir: | |
- 1.0.5 | |
otp_release: 17.3 | |
matrix: | |
include: | |
- elixir: 1.2 |
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
$ pry | |
[1] pry(main)> /(\w+):?(\w*)/.match("one.two") | |
=> #<MatchData "one" 1:"one" 2:""> | |
[2] pry(main)> "one.two".scan /(\w+):?(\w*)/ | |
=> [["one", ""], ["two", ""]] |
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
WITH RECURSIVE | |
x(i) AS ( VALUES (0) | |
UNION ALL SELECT i + 1 | |
FROM x | |
WHERE i < 101), | |
Z(Ix, Iy, Cx, Cy, X, Y, I) AS ( | |
SELECT Ix, Iy, X :: FLOAT, Y :: FLOAT, X :: FLOAT, Y :: FLOAT, 0 | |
FROM | |
(SELECT -2.2 + 0.031 * i, i | |
FROM x) AS xgen(x, ix) CROSS JOIN |
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
>> req.payload | |
=> {"action"=>"synchronize", | |
"number"=>20902, | |
"pull_request"=> | |
{"url"=>"https://api.github.com/repos/rails/rails/pulls/20902", | |
"id"=>40140550, | |
"html_url"=>"https://github.com/rails/rails/pull/20902", | |
"diff_url"=>"https://github.com/rails/rails/pull/20902.diff", | |
"patch_url"=>"https://github.com/rails/rails/pull/20902.patch", | |
"issue_url"=>"https://api.github.com/repos/rails/rails/issues/20902", |
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
[ | |
{ | |
"url": "https://api.github.com/repos/travis-ci/casher/issues/comments/52886423", | |
"html_url": "https://github.com/travis-ci/casher/issues/6#issuecomment-52886423", | |
"issue_url": "https://api.github.com/repos/travis-ci/casher/issues/6", | |
"id": 52886423, | |
"user": { | |
"login": "rkh", | |
"id": 30442, |