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 / _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)
$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)
/* ==========================================================================
* 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
/* ==========================================================================
=link_to '#', class:'btn btn-green' do
%span.btn-helper
Sign Up
* ==========================================================================
.btn
position: relative
+inline-block
+border-radius(5px)