Skip to content

Instantly share code, notes, and snippets.

View yatil's full-sized avatar
💭
Workin’

Eric Eggert yatil

💭
Workin’
View GitHub Profile
/* focusin/out event polyfill (firefox) */
!function(){
var w = window,
d = w.document;
if( w.onfocusin === undefined ){
d.addEventListener('focus' ,addPolyfill ,true);
d.addEventListener('blur' ,addPolyfill ,true);
d.addEventListener('focusin' ,removePolyfill ,true);
d.addEventListener('focusout' ,removePolyfill ,true);

Keybase proof

I hereby claim:

  • I am yatil on github.
  • I am yatil (https://keybase.io/yatil) on keybase.
  • I have a public key whose fingerprint is E3FA CF06 3F45 EAF3 A470 B6C8 E82F 6203 664C 4A62

To claim this, I am signing this object:

Process: Arq [75849]
Path: /Applications/Arq.app/Contents/MacOS/Arq
Identifier: com.haystacksoftware.Arq
Version: 4.1.3 (4.1.3)
Code Type: X86-64 (Native)
Parent Process: launchd [269]
Responsible: Arq [75849]
User ID: 501
Date/Time: 2014-04-02 13:03:28.906 +0200
@yatil
yatil / dabblet.css
Created December 26, 2013 17:59
Untitled
body { font-family: sans-serif; font-size: 3em }
ul.inline li { display: inline; }
ul.inline li::before { content: '' ; }
ul.inline li::after { content: ', ' ; }
ul.inline li:nth-last-child(2)::after { content: ' &' ; }
ul.inline li:last-child::after { content: '.' ; }
@yatil
yatil / dabblet.css
Created October 15, 2013 22:33
Untitled
body {
font-family: 'Helvetica';
font-size:20px;
}
section {
display:flex;
justify-content: center;
margin-bottom:30px;
}
/*global module:false*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
compass: {
/*
* jQuery FlexSlider v1.8
* http://www.woothemes.com/flexslider/
*
* Copyright 2012 WooThemes
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Contributing Author: Tyler Smith
*
@yatil
yatil / .htaccess
Created May 29, 2013 12:09 — forked from meaku/.htaccess
# HTTP(S) Stuff
# Redirect all users except IE 5-8 & Android < 4 to HTTPS
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP_USER_AGENT} !MSIE\ [5-8]
RewriteCond %{HTTP_USER_AGENT} !Android.*(Mobile)?\ [0-3]
RewriteRule (.*) https://%{HTTP_HOST}/$1 [L]
@yatil
yatil / dabblet.css
Created May 15, 2013 11:01
Untitled
body {
font-family: Arial;
font-size: 3em;
}
a:after {
content: ' Link';
}
.first:after:hover {
@function rem($property, $sizeValue: 1) {
@return #{$property} + ':' + ($sizeValue * $basefontsize) + 'px;' + #{$property} + ':' + $sizeValue + 'rem;';
}
@include rem(padding, .5);
// Expected output:
padding: 8px;
padding: 0.5rem;