Skip to content

Instantly share code, notes, and snippets.

$font-size-base: 16px;
$font-size-minor: 10px;
@mixin font-size($scale: 1) {
font-size: round(
($font-size-base * ((exp(1.618, $scale) - exp(-0.618, $scale)) / 2.236)) +
($font-size-minor * ((exp(1.618, ($scale - 1)) - exp(-0.618, ($scale - 1))) / 2.236))
);
}
@nmcv
nmcv / console.log.sublime-snippet
Created December 13, 2012 15:55 — forked from anonymous/console.log.sublime-snippet
Sublime Text 2 snippet to add console.log() quickly to your JavaScript/jQuery source code.
<snippet>
<content><![CDATA[
/* @DEBUG_START */
//console.log("$SELECTION$1");
/* @DEBUG_END */
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>@log</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<scope>source.js</scope>
@nmcv
nmcv / JavaCandR.sublime-build
Created November 10, 2012 21:52 — forked from DevinClark/JavaCandR.sublime-build
This is a build script for Sublime Text 2 that will compile and run the open java file by simply pressing cmd + B. I am very new at Java so feel free to point out problems with this script. You can just drop this file in the User Packges folder and restar
{
"cmd": ["javac", "$file_name"],
"cmd": ["java", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "source.java"
}