# | Name | Explanation |
---|---|---|
1 | Affirming the consequence | A true -> B true doesn't mean B true -> A true |
2 | Denying the antedent | A true -> B true doesn't mean A false -> B false |
3 | One event ahead of another | A true and B true doesn't mean A -> B (lack of control experiment) |
4 | Correlation | A and B happen together can be A->B , B->A , A->B->A->B or C->A +C->B |
5 | Over-generalization | $b instanceof A and $c instanceof A doesn't mean $b === $c |
6 | Virtue/Guilt by association | Similar to #5 |
7 | Multiple causes | |
8 | Multiple results |
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
<?php | |
$opts = getopt("x:y:c:e"); | |
$OPT_E = isset($opts["e"])); | |
$OPT_X = (int) $opts["x"]; | |
$OPT_Y = (int) $opts["y"]; | |
$OPT_COLOR = $opts["c"]; |
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
<?php | |
function query($name){ | |
echo "$name? "; | |
return floatval(fgets(STDIN)); | |
} | |
$c = query("C"); | |
$a = query("A"); | |
$b = query("B"); |
I hereby claim:
- I am chankyin on github.
- I am chankyin (https://keybase.io/chankyin) on keybase.
- I have a public key whose fingerprint is 63EF C5A8 7823 5BAB 80D9 88BB 1B9D 8188 AA2B 190D
To claim this, I am signing this object:
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
Summary of GraphQL syntax | |
Reference: http://facebook.github.io/graphql/ | |
name: /[a-z_][a-z0-9_]*/i | |
value: Variable | IntValue | FloatValue | StringValue | BooleanValue | NullValue | EnumValue | ListValue | ObjectValue | |
type: type_name | list_type | non_null_type | |
type_name: name | |
list_type: '[' list_type ']' | |
non_null_type: type_name | list_type |
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
Feature: Watch repos for API changes | |
Scenario: Webhook "push" event | |
Then: Parse .apiwatch.yml to understand repo structure | |
Given: .apiwatch.yml has syntax error, is not well-formed or is empty | |
Then: Detect project structure | |
And: Create pull request to edit .apiwatch.yml based on detected project structure | |
Given: .apiwatch.yml is well-formed and declares at least one structure | |
Then: Scan API declarations | |
And: Store (new) API declarations into database (if fork, store as parent repo with special ref) | |
And: Store links between API declarations and current commit ref into database |