Skip to content

Instantly share code, notes, and snippets.

View agriboz's full-sized avatar
🎹
Working from home

Can Agriboz agriboz

🎹
Working from home
  • Berlin
  • 20:32 (UTC -12:00)
View GitHub Profile
@agriboz
agriboz / omit.js
Created July 13, 2020 09:06 — forked from dfkaye/omit.js
omit.js removes array items that match every key-value in a descriptor
// 12 July 2020
// prompted by Cory House tweet
// @see https://twitter.com/housecor/status/1282375519481323520
function omit(array, descriptor) {
// Return the input if it's not an array, or if the descriptor is not an Object.
if (!Array.isArray(array) || descriptor !== Object(descriptor)) {
return array;
}
angular.module('utils.filters', [])
.filter('removeAccents', removeAccents);
function removeAccents() {
return function (source) {
var accent = [
/[\300-\306]/g, /[\340-\346]/g, // A, a
/[\310-\313]/g, /[\350-\353]/g, // E, e
/[\314-\317]/g, /[\354-\357]/g, // I, i
/[\322-\330]/g, /[\362-\370]/g, // O, o
@agriboz
agriboz / dabblet.css
Created November 6, 2012 16:03 — forked from LeaVerou/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@agriboz
agriboz / dabblet.css
Created November 6, 2012 15:30 — forked from danielfilho/dabblet.css
Scrolling shadows by @kizmarh and @LeaVerou
/**
* Scrolling shadows by @kizmarh and @leaverou
* Only works in browsers supporting background-attachment: local; & CSS gradients
* Degrades gracefully
*/
html {
background: white;
font: 120% sans-serif;
}
@agriboz
agriboz / dabblet.css
Created November 1, 2012 08:50 — forked from alexmwalker/dabblet.css
A Very Brady Adjacent Sibling Selector Demo
/**
* A Very Brady Adjacent Sibling Selector Demo
*/
body{
background: #000;
min-height: 100%;
font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
}
@agriboz
agriboz / dabblet.css
Created November 1, 2012 08:48 — forked from alexmwalker/dabblet.css
Traffic light animation
/**
* Traffic light animation
*/
#trafficlight{
background:#333;
height:300px;
width:150px;
border-radius:30px;
margin:3em auto;