Skip to content

Instantly share code, notes, and snippets.

Oliver Williams Ollie-w

Block or report user

Report or block Ollie-w

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Ollie-w
Ollie-w / twoway.js
Created Aug 10, 2017
two way data binding
View twoway.js
function bindValue(objectToBind) {
var elemToBind = document.getElementById(objectToBind.id)
elemToBind.addEventListener("change", function() {
objectToBind.value = this.value;
})
}
function proxify(id) {
var handler = {
set: function(target, key, value, receiver) {
@Ollie-w
Ollie-w / .csscomb.json
Created Oct 12, 2016
Alphabetize CSS with CSS Comb
View .csscomb.json
{ "space-after-combinator": 1,
"space-between-declarations": "\n ",
"space-after-colon": 1,
"space-after-opening-brace": "\n",
"space-after-selector-delimiter": 1,
"always-semicolon": true,
"color-case": "lower",
"element-case": "lower",
"leading-zero": false,
"quotes": "double",
You can’t perform that action at this time.