Skip to content

Instantly share code, notes, and snippets.

View onokumus's full-sized avatar
🏠
Working from home

Osman Nuri Okumuş onokumus

🏠
Working from home
View GitHub Profile
@onokumus
onokumus / events.js
Created October 24, 2018 08:10 — forked from tbranyen/events.js
Rethinking events using ES6 (https://tbranyen.com/events)
const bus = {};
const get = e => (bus[e] = bus[e] || new Set());
export const listeners = new Proxy(bus, { get });
export const emit = (e, ...args) => listeners[e].forEach(fn => fn(...args));
// loading
.loading(
@size,
@spinner-inside-color,
@spinner-outside-color,
) {
opacity: 0.8;
z-index: 999999;
&:before,
@onokumus
onokumus / .jshintrc
Created December 12, 2013 00:06 — forked from haschek/.jshintrc
{
// --------------------------------------------------------------------
// JSHint Configuration, Strict Edition
// --------------------------------------------------------------------
//
// This is a options template for [JSHint][1], using [JSHint example][2]
// and [Ory Band's example][3] as basis and setting config values to
// be most strict:
//
// * set all enforcing options to true