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 / ffmpeg.sh
Last active October 19, 2022 07:28
ffmpeg
ffmpeg -protocol_whitelist file,http,https,tcp,tls,crypto -i "https://example-video-url.m3u8" -c copy video.mp4
@coskuntekin
coskuntekin / tasks.json
Created September 28, 2022 06:10
Rails tasks
{
"version": "2.0.0",
"tasks": [
{
"label": "ProjetName",
"dependsOn": ["Rails", "Webpack", "Redis", "Sidekiq"]
},
{
"label": "Rails",
"type": "shell",
// jshint esversion:6
let data = '';
const getSet = {
get: ()=> {
return data;
},
set: (val)=> {
data = val;
@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'
@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 / .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 / _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))
@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 / 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 / _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)