Skip to content

Instantly share code, notes, and snippets.

View teodragovic's full-sized avatar

Teo Dragovic teodragovic

View GitHub Profile
@teodragovic
teodragovic / Fade-text.markdown
Created September 30, 2013 00:58
A Pen by Teo Dragovic.
@teodragovic
teodragovic / breakpoints mixin
Created December 7, 2013 10:56
Mixin for most common breakpoints
@mixin breakpoint($point) {
@if $point == 480 {
@media (min-width: 30em) { // 480px
@content;
}
}
@else if $point == 640 {
@media (min-width: 40em) { // 640px
@content;
}
@teodragovic
teodragovic / gist:7943368
Created December 13, 2013 12:08
Load Google Analytics via LABjs. Updated optimized version of the code
$LAB
.script('//www.google-analytics.com/ga.js')
.wait(function(){
var _gaq = [['_setAccount', 'UA-XXXXXX-X'], ['_trackPageview']];
});
@teodragovic
teodragovic / gist:7945309
Last active December 31, 2015 06:09 — forked from getify/gist:670840
some modifications to original script...
// JQuery /w fallback + main.js
function loadJquery(scripts,idx) {
function fallback() {
clearTimeout(timeout);
if (typeof jQuery === 'undefined') {
if (idx < scripts.length-1) loadJquery(scripts,idx+1);
} else {
//load scripts that depend on jquery or just return
$LAB.script("javascripts/main.js");
}
@teodragovic
teodragovic / SassMeister-input.scss
Created January 20, 2014 11:49
Generated by SassMeister.com.
// ----
// libsass (v0.7.0)
// ----
$cold-world: Verdana, sans-serif;
$cream: Verdana, sans-serif;
$fish: Verdana, sans-serif;
$knowledge-god: Verdana, sans-serif;
$run: test, test, Verdana, sans-serif;
@teodragovic
teodragovic / SassMeister-input.scss
Created January 20, 2014 12:33
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$cold-world: font1, sans-serif;
$cream: font2, sans-serif;
$fish: font3, sans-serif;
$knowledge-god: font4, sans-serif;
@teodragovic
teodragovic / SassMeister-input.scss
Created January 20, 2014 12:33
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$cold-world: font1, sans-serif;
$cream: font2, sans-serif;
$fish: font3, sans-serif;
$knowledge-god: font4, sans-serif;
@teodragovic
teodragovic / SassMeister-input.scss
Created January 20, 2014 13:05
Generated by SassMeister.com.
// ----
// Sass (v3.3.0.rc.2)
// Compass (v1.0.0.alpha.17)
// ----
$pages:
"cold-world" font1 sans-serif,
"cream" font2 sans-serif,
"fish" font3 sans-serif,
"knowledge-god" font4 sans-serif,
@teodragovic
teodragovic / SassMeister-input.scss
Created July 8, 2014 09:41
Generated by SassMeister.com.
// ----
// Sass (v3.3.9)
// Compass (v1.0.0.alpha.20)
// ----
// bourbon funkcija
@function em($pxval, $base: $em-base) {
@if not unitless($pxval) {
$pxval: strip-units($pxval);
@teodragovic
teodragovic / SassMeister-input-HTML.html
Created August 28, 2014 09:11
Generated by SassMeister.com.
<div class="test">dasglgbksjb</div>