Skip to content

Instantly share code, notes, and snippets.

@danyeah
danyeah / fonts.css
Created December 20, 2013 09:17
Fix font rendering in chrome
/* http://www.dev-metal.com/fix-ugly-font-rendering-google-chrome */
/* this is how a font-face rule usually looks like */
@font-face {
font-family: 'MyWebFont';
src: url('webfont.eot'); /* IE9 Compat Modes */
src: url('webfont.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('webfont.woff') format('woff'), /* Modern Browsers */
url('webfont.ttf') format('truetype'), /* Safari, Android, iOS */
@danyeah
danyeah / SassMeister-input.scss
Last active December 30, 2015 08:59
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.1)
// ----
@mixin e($name) {
@at-root #{&}__#{$name} {
@content;
}
}
@danyeah
danyeah / .zshrc
Last active December 27, 2015 10:09
.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
autoload colors && colors
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
@danyeah
danyeah / _column.scss
Created September 24, 2013 15:37
Column Sass
@mixin column($number, $gap) {
-webkit-column-count:$number;
-webkit-column-gap: $gap;
-moz-column-count:$number;
-moz-column-gap: $gap;
column-count:$number;
column-gap: $gap;
}
@danyeah
danyeah / formHandler.js
Created September 16, 2013 09:01
FormHandler
formHandler: function(options) {
var defaults = {
form: "form",
languages: "en",
jsPath: "js/"
}
var settings = typeof options !== "undefined" ? $.extend(options, settings) : defaults;
if ( $(settings.form).length == 0 ) { throw( settings.form + " is not present in DOM") };
var $form = $(settings.form);
@danyeah
danyeah / isjQueryobj.js
Created July 31, 2013 07:49
is jQuery Object
function isjQueryObj(arg) {
return arg instanceof jQuery
}
{
"line_numbers": true,
"gutter": true,
"draw_centered": true,
"wrap_width":0,
"word_wrap": true,
"scroll_past_end": true
}
.clearfix:before,
.clearfix:after {
content: " "; /* 1 */
display: table; /* 2 */
}
.clearfix:after {
clear: both;
}
.element {
-webkit-transform: translateZ(0);
-ms-transform: translateZ(0);
transform: translateZ(0);
}
@danyeah
danyeah / legibility.css
Created May 1, 2013 13:40
Optimize Legibility
body {
-webkit-font-smoothing:antialiased;
text-rendering:optimizelegibility;
}