Skip to content

Instantly share code, notes, and snippets.

View heroheman's full-sized avatar
🏠
Working from home

Flowrence heroheman

🏠
Working from home
View GitHub Profile
@heroheman
heroheman / scrolling.js
Created March 19, 2014 09:59
JS: 60fps Scrolling
(function($) {
'use strict';
$(document).ready(function(){
// 60fps scrolling
// see: http://www.thecssninja.com/javascript/pointer-events-60fps
var body = document.body,
timer;
window.addEventListener('scroll', function() {
@heroheman
heroheman / .vimrc
Last active August 29, 2015 14:04
Vim Configurationjf:w
" vim:fdm=marker
" .vimrc
" v.0.2.0 - 28.10.2014 by Florenz Heldermann
" Based on the beginners vimrc by Philip Trasher
"
set nocompatible " Fuck VI... That's for grandpas.
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
@heroheman
heroheman / gulpfile.js
Created August 19, 2014 16:51
Patternlab Gulpfile (alpha)
/* jshint node:true */
'use strict';
// Load Gulp
var gulp = require('gulp'),
runSequence = require('run-sequence');
// Load plugins
var $ = require('gulp-load-plugins')();
@heroheman
heroheman / gist:979561
Created May 18, 2011 21:05
SASS: Cross Browser Transparency Mixin
@mixin opacity($value)
opacity: #{"." + $value}
filter: alpha(opacity=$value)
-ms-filter: "alpha(opacity=$value)"
-khtml-opacity: #{"." + $value}
-webkit-opacity: #{"." + $value}
-moz-opacity: #{"." + $value}
.opacity
@include opacity(80)
@heroheman
heroheman / heighttoggle.js
Created October 6, 2011 14:57
jQuery: Height Toggle
$('#toggleReiseziele').click(function(){
if($(this).hasClass('toggleUp')){
$('#footer').animate({height:'500'},'slow');
}else{
$('#footer').animate({height:'200'},'slow');
}
$('#toggleReiseziele').toggleClass('toggleUp');
});
@heroheman
heroheman / gist:1269937
Created October 7, 2011 09:58
jQuery: Scroller (bspw. für Akkordeons)
$('html, body').animate({
scrollTop: $(‘#element’).offset().top
}, 2000);
@heroheman
heroheman / placeholdit.sublime-snippet
Created February 21, 2012 09:41
Snippet: Sublime Placehold.it
<snippet>
<content><![CDATA[
<img src="http://placehold.it/${1:100}x${2:100}" alt="${3:Alt text}"/>
]]></content>
<tabTrigger>dummy</tabTrigger>
</snippet>
@heroheman
heroheman / label (1).less
Created February 22, 2012 09:38
Less: small label css declaration
.label{
display: inline-block;
position: relative;
text-transform: uppercase;
text-decoration: none;
color: white;
&:visited{color: @white;}
}
@heroheman
heroheman / gist:1922601
Created February 27, 2012 08:40
Misc: Using Less on a local windows machine
"C:\path\to\chrome.exe" --allow-file-access-from-files
@heroheman
heroheman / livereload.js
Created March 6, 2012 14:09
Javascript: LiveReload for Less CSS
<!-- Live Reload für Less -->
<script type="text/javascript" charset="utf-8">
less.env = "development";
less.watch();
</script>