Skip to content

Instantly share code, notes, and snippets.

View dralletje's full-sized avatar
🛰️
😱🦁🤨

Michiel Dral dralletje

🛰️
😱🦁🤨
View GitHub Profile

TODO

A simple todo list in gist as was told me on the lifehacker blog.

to-DO

  • 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)

Keybase proof

I hereby claim:

  • I am dralletje on github.
  • I am dral (https://keybase.io/dral) on keybase.
  • I have a public key whose fingerprint is CD31 6CC0 31BF AE6A 6383 E8B2 A4B0 06EE 5757 A6CF

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;
#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