ಠ‿ಠ
ಠ⌣ಠ
כּ‗כּ
ó‿ó
// Button styles | |
// ------------------------- | |
// Pill button variants | |
.btn.btn-pill { | |
// border-radius depends on button' height | |
@border-radius-pill: (@font-size-base * @line-height-base + @padding-base-vertical * 2) / 2; | |
border-radius: @border-radius-pill; |
Ethernet controller: Atheros Communications Inc. AR2413/AR2414 Wireless Network Adapter [AR5005G(S) 802.11bg]
Test & try:
sudo rmmod ath5k
function areEquivalents (a, b) { | |
if (a && b && typeof a === 'object' && typeof a === typeof b && a.length === b.length) { | |
for (var prop in a) { | |
if (a.hasOwnProperty(prop) && !areEquivalents(a[prop], b[prop])) { | |
return false | |
} | |
} | |
for (var prop in b) { | |
if (b.hasOwnProperty(prop) && !areEquivalents(b[prop], a[prop])) { | |
return false |
function deepDiffRight (left, right) { | |
// if they are equals, return undefined | |
if (angular.equals(left, right)) return | |
// form now on, we can assure that `left` and `right` are not equals (equivalents) | |
// if `left` and `right` are primitives, value changed | |
// if `left` is a primitive and `right` an object, value has been replaced with an object | |
// if `left` is an object and `right` a primitive, value has been replaced with a primitive | |
// use `_.copy` to prevent object referrence issues | |
if (!angular.isObject(left) || !angular.isObject(right)) return angular.copy(right) |
/** | |
* Gets the value at route of object. | |
* Look at: https://lodash.com/docs/4.17.4#get | |
* | |
* @param {Array|string} route The path of the property to get. | |
* @param {Object} obj The object to query. | |
* @return {*} Resolved value, or undefined. | |
*/ | |
function path (route, obj) { | |
if (!Array.isArray(route)) return path(route.split('.'), obj) |
'use strict' | |
function flatten (source, dest, separator, path) { | |
dest = typeof dest !== 'undefined' ? dest : {} | |
separator = typeof separator !== 'undefined' ? separator : '-' | |
path = typeof path !== 'undefined' ? path : [] | |
for (var key in source) { | |
if (!source.hasOwnProperty(key)) continue |
import * as _ from 'lodash' | |
const exclusion = (...arrays) => | |
_.flatMap(arrays, x => _.difference(x, ..._.without(arrays, x))) |
/** | |
* Wrapper around requestAnimationFrame for easier usage. | |
* @param {Function} callback Function to call on each tick, receives last value as only param. | |
* @param {*} [initValue] Optional initial value. | |
* @returns {Function} Clear interval function. | |
*/ | |
const tick = (callback, initValue) => { | |
let unsubscribed = false | |
let lastValue = initValue |