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
Verifying that +jpwesselink is my blockchain ID. https://onename.com/jpwesselink
@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 () {

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