Skip to content

Instantly share code, notes, and snippets.

View jpwesselink's full-sized avatar
🏠
Inventing a better mouse trap

JP Wesselink jpwesselink

🏠
Inventing a better mouse trap
View GitHub Profile
@jpwesselink
jpwesselink / gist:7124667
Created October 23, 2013 19:06
Designmodo Flat-ui Select2 Less styles
.select2-container {
.form-control();
&.select2-container-multi {
background: white;
border: 2px solid mix(@inverse, @brand-primary, 90%);
border-radius: @border-radius-large;
margin-bottom: 18px;
padding: 6px 1px 1px 6px;
overflow-y: auto;
text-align: left;

AngularJS Directive Attribute Binding Explanation

When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.

  1. Raw Attribute Strings

    <div my-directive="some string" another-param="another string"></div>
@jpwesselink
jpwesselink / scratch
Last active August 29, 2015 14:10 — forked from KrekkieD/scratch
angular.module('foo')
.factory('kak', function kak() {
'use strict';
/* ... */
});
// vs
(function () {
Verifying that +jpwesselink is my blockchain ID. https://onename.com/jpwesselink
Trying to filter "out of office" emails from my inbox as I receive a lot of them when I send a blast.
I need help - what do your "out of office" emails say in your langauge? Comment Below!
Automatische Antwort
Automatic reply
AutoReply
Out of Office
Xesc Duran
Abwesend
[bacon-workshopper] bacon-love current
02. Wrapping Values as Reactive Datatypes
[bacon-workshopper] cat exercise-02.js
module.exports = (Bacon, promise, eventTarget, callback) => {
const promiseStream = Bacon.fromPromise(promise);
const eventTargetStream = Bacon.fromEvent(eventTarget, 'data');
const callbackStream = Bacon.fromCallback(callback);
return {
promise : promiseStream,
~ ⍉ ➜ curl -I https://www.npmjs.com/search\?q\=eslint
HTTP/1.1 503 first byte timeout
Server: Varnish
Retry-After: 0
Content-Type: text/html; charset=utf-8
Content-Length: 448
Accept-Ranges: bytes
Date: Thu, 16 Feb 2017 09:34:38 GMT
Via: 1.1 varnish
Connection: close
@jpwesselink
jpwesselink / main.js
Last active June 9, 2017 13:10
Some description
// ./main.js
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, combineReducers } from 'redux';
import {
Container as Counter,
reducers as counterReducers
} from './CounterApp';
import {
@jpwesselink
jpwesselink / react-redux-simplified.jsx
Last active June 12, 2017 08:02
Simplified anatomy of a React Redux app
import React from 'react';
import { render } from 'react-dom';
import { connect, Provider } from 'react-redux';
import { createStore } from 'redux';
// Here's a reducer...
const reducer = (state = { name: 'JP' }, action) => {
switch (action.type) {
case 'SET_NEW_NAME':
return { name: action.newName };
{
"definition":"belangenverklaring.xml",
"name":"belangenverklaring",
"inputs":{
"Belangenverklaring":{
"commissie":"Voedsel commissie",
"Persoonsgegevens":{
"voornaam":"Voornaam",
"tussenvoegsels":"tussenvoegsel",
"achternaam":"Achternaam",