Skip to content

Instantly share code, notes, and snippets.

View fmal's full-sized avatar
:octocat:
:octocat:‎ ‎‎‎ ‎ ‎:octocat:

Filip Malinowski fmal

:octocat:
:octocat:‎ ‎‎‎ ‎ ‎:octocat:
View GitHub Profile
@fmal
fmal / _mixin-better.scss
Created September 29, 2012 18:56 — forked from necolas/_mixin-better.scss
Sass grid construction
// Still need to work out how to combine rules for numbers
// that share a greatest common factor without the unit-builder
// actually containing the fraction to which they can both be
// reduced.
// Calculate the greatest common factor of two integers
@function gcf($a, $b) {
@if $b == 0 {
@return $a;
}
@fmal
fmal / index.html
Created November 27, 2012 17:58 — forked from caycefischer/index.html
Just Harry Roberts' nav abstraction, robust-ified with code to eliminate the whitespace between inline-block elements. I have to do this every time anyway, so now it's built into the snippet.Monospace font is set to ensure the amount of space is as cons
<div class="nav">
<li class="box"><a href="">One</a></li>
<li class="box"><a href="">Two</a></li>
<li class="box"><a href="">Three</a></li>
</div>
data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
staging: 'dist/debug/',
production: 'dist/release/',
pkg: grunt.file.readJSON('package.json'),
@fmal
fmal / input.scss
Created February 3, 2013 00:08 — forked from kaelig/input.scss
%myclass {
color: blue;
@media (min-width: 600px) {
background: red;
}
@media (min-width: 800px) {
font-size: 28px;
}
}
@fmal
fmal / OOSass.md
Created February 3, 2013 12:06 — forked from scottkellum/OOSass.md

OOCSS vs OOSass

note that this requires Sass 3.2 alpha or higher

OOCSS is awesome because it helps us organize our style sheets in clean and simple ways but it can be far too rigid for the new responsive web. How can we use preprocessors to preserve both flexibility and cleanliness of code? Can these objects be abstracted to our preprocessors?

Lets first take a look at three column widths in OOCSS to see how they compare.

CSS

/* This is a quick Sass mixin that makes it easier to import Google Web Fonts into your CSS.
* By default, it will import Open Sans with a weight of 400.
* It can take up to two parameters, $name and $weights.
* $name is the name of the font. Make sure you use plus characters instead of spaces,
* and if the font name does include spaces, it must be enclosed in quotes.
* $weights is a list containing the weights required.
* Weights are given as a comma-seperated list enclosed in parentheses.
*/
/***** Important! *****
@fmal
fmal / rem.scss
Created February 24, 2013 21:10 — forked from drublic/rem.scss
$main-font-size: 16px;
@mixin x-rem($property, $values) {
// Empty list for all values in px
$px-values: ();
$rem-values: ();
// Iterate over entries
@each $value in $values {
$button-color: #ff6600;
%button-base {
@include adjust-font-size-to(14px, 1.5);
@include inline-block;
@include border-radius(6px);
font-weight: bold;
padding: 3px 30px;
position: relative;
text-decoration: none;

New Computer Setup

Last tested using Mac OS X 10.8 Mountain Lion

Before Wiping Original Install

  • Backup .ssh folder to avoid having to regenerate codes for services such as Heroku and Github.