Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Workin’

Eric Eggert yatil

💭
Workin’
View GitHub Profile
View focusin focusout support for firefox.js
/* 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);
View keybase.md

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:

View gist:9932016
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
View dabblet.css
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: '.' ; }
View dabblet.css
body {
font-family: 'Helvetica';
font-size:20px;
}
section {
display:flex;
justify-content: center;
margin-bottom:30px;
}
View Gruntfile.js
/*global module:false*/
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: '<json:package.json>',
compass: {
View jquery.flexslider.js
/*
* 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
*
View .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]
View dabblet.css
body {
font-family: Arial;
font-size: 3em;
}
a:after {
content: ' Link';
}
.first:after:hover {
View didntwork.scss
@function rem($property, $sizeValue: 1) {
@return #{$property} + ':' + ($sizeValue * $basefontsize) + 'px;' + #{$property} + ':' + $sizeValue + 'rem;';
}
@include rem(padding, .5);
// Expected output:
padding: 8px;
padding: 0.5rem;