Skip to content

Instantly share code, notes, and snippets.

View jordanlev's full-sized avatar

Jordan Lev jordanlev

View GitHub Profile
@AllThingsSmitty
AllThingsSmitty / width.css
Created April 6, 2015 13:35
Calculating grid column widths
/*
First: determine the number of columns, ex.: 12
Second: determine the width of a single (1/12) column using the following formula:
scw = (100 – (m * (mc – 1))) / mc
Where:
scw = single column width
m = margin (1.6%)
mc = maximum columns (12)
Ex.: scw = 6.86666666667%
Lastly: use the scw to calculate the rest of the column widths using the following formula:
@seniorpreacher
seniorpreacher / updateIndentationFrom2SpaceToTab.sublime-macro
Created October 26, 2013 17:18
This macro updates the file from 2 SPACE indentation to TAB indentation.
[
{
"args": {
"setting": "tab_size",
"value": 2
},
"command": "set_setting"
},
{
"args":