A simple todo list in gist as was told me on the lifehacker blog.
- Multicraft module Cas
- Nina Polak Recensie
- Nina Polak voorbereiden voor mondeling
- Arne schoolkrant plan Donderdag 3de
| import objectassign from 'object-assign' | |
| Object.assign = objectassign | |
| function add(...xs) { | |
| const x = xs.reduce((a,b) => a+b) | |
| return Object.assign((...ys) => add(x, ...ys), { valueOf: () => x }) | |
| } | |
| function test(a, b) { | |
| console.log(a == b ? 'OK' : a + ' != ' + b) |
I hereby claim:
To claim this, I am signing this object:
| // asPairs :: (Object Any) -> [ (String, Any) ] | |
| const asPairs = object => | |
| Object.keys(object).map(key => [key, object[key]]) | |
| // asObject :: [ (string, Any) ] -> Object | |
| const asObject = pairs => | |
| pairs.reduce((object, [key, value]) => { | |
| object[key] = value | |
| return object | |
| }, {}) |
| function batchActions(...actions) { | |
| return { | |
| type: 'BATCH_ACTIONS', | |
| actions: actions | |
| }; | |
| } | |
| // usage | |
| store.dispatch( | |
| batchActions( |
| #include <string> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <assert.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| using namespace std; | |
| const int max_word_length = 60; |
| #include <string> | |
| #include <iostream> | |
| #include <fstream> | |
| #include <assert.h> | |
| #include <stdlib.h> | |
| #include <stdio.h> | |
| using namespace std; | |
| const int max_word_length = 60; |
List of all things I want to keep an eye on!
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <cstdlib> | |
| #include <cassert> | |
| using namespace std; | |
| struct Length | |
| { |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <string> | |
| #include <cstdlib> | |
| #include <cassert> | |
| using namespace std; | |
| struct Length |