Skip to content

Instantly share code, notes, and snippets.

View fatihturan's full-sized avatar
👨‍💻
¯\_(ツ)_/¯

Fatih Turan fatihturan

👨‍💻
¯\_(ツ)_/¯
View GitHub Profile
@fatihturan
fatihturan / Optimize the Video(s).workflow
Created December 1, 2022 13:22
Optimize the videos with Handbrake CLI
for f in "$@"
do
name=$(echo $f | cut -f 1 -d '.')
/usr/local/bin/HandBrakeCLI -f mp4 -e x264 -r 30 -q 22.0 -i "$f" -o "$name.mp4"
done
osascript -e 'display notification "All videos are optimized" with title "Job(s) Done!" sound name "Submarine"'
@fatihturan
fatihturan / blocks.css
Created February 14, 2021 19:31
Wordpress Block Styles
:root {
--wp-admin-theme-color:#007cba;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-20:#005a87}
#start-resizable-editor-section {
display: none
}
.wp-block-audio figcaption {
margin-top: .5em;
margin-bottom: 1em
.video {
width: 100%;
position: relative;
overflow: hidden;
}
.video:before {
content: "";
position: relative;
padding-bottom: 56.25%;
@fatihturan
fatihturan / gist:99a5113b6e58ed468bbd248b3678d847
Created December 27, 2020 18:07
Wordpress / Contact Form 7 Country Select Dropdown Values Shortcode
[select country "Afghanistan" "Albania" "Algeria" "American Samoa" "Andorra" "Angola" "Anguilla" "Antigua and Barbuda" "Argentina" "Armenia" "Armenia" "Aruba" "Australia" "Austria" "Azerbaijan" "Azerbaijan" "Bahamas" "Bahrain" "Bangladesh" "Barbados" "Belarus" "Belgium" "Belize" "Benin" "Bermuda" "Bhutan" "Bolivia" "Bonaire" "Bosnia and Herzegovina" "Botswana" "Bouvet Island (Bouvetoya)" "Brazil" "British Indian Ocean Territory (Chagos Archipelago)" "British Virgin Islands" "Brunei Darussalam" "Bulgaria" "Burkina Faso" "Burundi" "Canada" "Cambodia" "Cameroon" "Cape Verde" "Cayman Islands" "Central African Republic" "Chad" "Chile" "China" "Christmas Island" "Cocos (Keeling) Islands" "Colombia" "Comoros" "Congo" "Congo" "Cook Islands" "Costa Rica" "Cote d'Ivoire" "Croatia" "Cuba" "Curaçao" "Cyprus" "Cyprus" "Czech Republic" "Denmark" "Djibouti" "Dominica" "Dominican Republic" "Ecuador" "Egypt" "El Salvador" "Equatorial Guinea" "Eritrea" "Estonia" "Ethiopia" "Falkland Islands (Malvinas)" "Faroe Islands" "Fiji" "
"emmet.preferences": {
"filter.commentAfter": "<!-- end [#ID][.CLASS] -->"
},
"emmet.syntaxProfiles": {
"html": {
"filters": "html, c"
}
}

Bir çalışma detayı sayfası aşağıdaki parametrelere göre oluşturulmaktadır:

---
layout: work-detail
title:  "KOÇ University KOLT"
sub-title:  "Web Design & Development"
summary: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean commodo dictum purus, sit amet tempor mi ornare sit amet. Nam vel nisi hendrerit, facilisis felis vel, tempor nunc. Nullam leo lectus, ultricies a tellus ut, faucibus vestibulum lacus. Suspendisse potenti."
tags: [ ui/ux, front-end, service development ]
thumb-image: "work-page-thumb-ku-kolt"
{% assign ordered_works = site.works | sort:"work-order" %}
{% for work in ordered_works reversed limit: 3 %}
<div class="scene">
<div class="featured-works__item featured-works__item--blue tween-animation">
<picture class="featured-works__item-thumb">
<source
media="(min-width: 768px)"
srcset="/assets/images/works/{{ work.thumb-image }}.png 1x, /assets/images/works/{{ work.thumb-image }}@2x.png 2x"
>
if($('body').hasClass('page-about')) {
var controller = new ScrollMagic.Controller();
for(var i=0; i<6; i++) {
var teamPerson = $(".team__person").eq(i);
var tween = new TimelineMax()
.from(teamPerson, 1, {y: "20%", opacity: 0, ease:Strong.easeOut}, 1)
new ScrollMagic.Scene({
@fatihturan
fatihturan / settings.json
Last active October 21, 2018 18:01
VS Code — Change the Blue Statusbar Background with New One
"workbench.colorCustomizations": {
"[Default Dark+]": {
"statusBar.background" : "#333333",
"statusBar.foreground" : "#ADADAD",
"statusBar.noFolderBackground" : "#333333",
"statusBar.debuggingBackground": "#333333"
},
"[Visual Studio Dark]": {
"statusBar.background" : "#333333",
"statusBar.foreground" : "#ADADAD",
var Book = require('../models/book');
exports.index = function(req, res) {
res.send('NOT IMPLEMENTED: Site Home Page');
};
// Display list of all books.
exports.book_list = function(req, res) {
res.send('NOT IMPLEMENTED: Book list');
};