Challenges:
- Testing expected static errors. In JavaScript, expected dynamic errors can be tested via:
assert.throws(() => eval('const myVar;'), SyntaxError);assert.throws(() => null.someProp, TypeError);
- Testing expected inferred types.
Approach:
| package log | |
| import ( | |
| "context" | |
| "net/http" | |
| "net/http/httptest" | |
| "net/http/httputil" | |
| "os" | |
| "time" |
| license: CC0-1.0 |
based on https://www.reddit.com/r/vim/comments/24g8r8/italics_in_terminal_vim_and_tmux/
$ echo -e "\e[3mitalic\e[23m"
$ infocmp $TERM | grep sitm
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
Operator Mono w/ Italics on OSX Vim
| class ParentComponent extends Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| data : [ | |
| {id : 1, date : "2014-04-18", total : 121.0, status : "Shipped", name : "A", points: 5, percent : 50}, | |
| {id : 2, date : "2014-04-21", total : 121.0, status : "Not Shipped", name : "B", points: 10, percent: 60}, | |
| {id : 3, date : "2014-08-09", total : 121.0, status : "Not Shipped", name : "C", points: 15, percent: 70}, | |
| {id : 4, date : "2014-04-24", total : 121.0, status : "Shipped", name : "D", points: 20, percent : 80}, |
| #replace xoxp-*****000 with your token from here https://api.slack.com/web#authentication | |
| # for the start | |
| do shell script "curl 'https://slack.com/api/dnd.setSnooze?token=xoxp-*****000&num_minutes=$duration'" | |
| # for the end and interuption | |
| do shell script "curl https://slack.com/api/dnd.endSnooze?token=xoxp-*****000" |
| <?xml version="1.0"?> | |
| <root> | |
| <item> | |
| <name>For Topre REALFORCE 87 Users</name> | |
| <devicevendordef> | |
| <vendorname>TopreCorporation</vendorname> | |
| <vendorid>0x0853</vendorid> | |
| </devicevendordef> | |
| <item> |
| // ------------ | |
| // counterStore.js | |
| // ------------ | |
| import { | |
| INCREMENT_COUNTER, | |
| DECREMENT_COUNTER | |
| } from '../constants/ActionTypes'; | |
| const initialState = { counter: 0 }; |