Skip to content

Instantly share code, notes, and snippets.

View coskuntekin's full-sized avatar
:octocat:
Coding

Coskun TEKIN coskuntekin

:octocat:
Coding
View GitHub Profile
@coskuntekin
coskuntekin / .gitignore
Created October 29, 2013 07:23
middleman .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile ~/.gitignore_global
# Ignore bundler config
/.bundle
# Ignore the build directory
@coskuntekin
coskuntekin / humans.txt
Last active December 26, 2015 20:39
humans.txt
/* TEAM */
Front-End Developer: coskuntekin
Twitter: @coskuntekin
Company:
Web Sites: http://www.coskuntekin.com
/* THANKS */
HTML5 Bolireplate
Modernizr
Twitter Bootstrap
@coskuntekin
coskuntekin / config.rb
Last active December 27, 2015 13:39
Middleman Configuration for v3.4.0
###
# Compass
###
# Bootstrap
# First:
# gem install sass-rails
# gem install bootstrap-sass
# require 'bootstrap-sass'
/* ==========================================================================
=link_to '#', class:'btn btn-green' do
%span.btn-helper
Sign Up
* ==========================================================================
.btn
position: relative
+inline-block
+border-radius(5px)
/* ==========================================================================
* CSS3 Animate Mixin
* ==========================================================================
=animate($name: fadeIn, $duration: 0.5s, $delay: .2s, $function: linear, $mode: both)
+experimental(animation, $name $duration $delay $function $mode)
=keyframes($name)
@-webkit-keyframes #{$name}
@content
$icons: sprite-map('icons/*.png')
i
+inline-block
background-image: $icons
@each $icon in sprite_names($icons)
.icn-#{$icon}
+sprite-dimensions($icons, $icon)
background-position: sprite-position($icons, $icon)
@coskuntekin
coskuntekin / _mb.sass
Created June 2, 2015 07:28
margin-bottom Sass function
@for $i from 1 through 5
.mb-#{($i*10)}
margin-bottom: (($i*10)+px)
@coskuntekin
coskuntekin / byzanz_record.md
Last active August 29, 2015 14:23
Screen record on Linux

Install

sudo add-apt-repository ppa:fossfreedom/byzanz

sudo apt-get update && sudo apt-get install byzanz

sudo apt-get install byzanz

Record

byzanz-record --duration=15 --x=200 --y=300 --width=700 --height=400 out.gif

@coskuntekin
coskuntekin / setHeight.js
Last active August 29, 2015 14:24
Set any element height via DOM
(function () {
'use strict';
var querySelector = document.querySelector.bind(document);
function setSidebarHeight(){
var sidebar = querySelector('.sidebar');
var documentHeight = document.documentElement.scrollHeight;
sidebar.style.height = documentHeight+'px';
console.log(documentHeight);
@coskuntekin
coskuntekin / _animateDelay.sass
Last active October 22, 2015 06:52
Animate delay with Sass for directive
@for $i from 1 through 7
.list-btn
& > li:nth-child(#{$i})
+animation-delay(400ms + ($i*30))