Skip to content

Instantly share code, notes, and snippets.

View birol's full-sized avatar
🐢
:)

Birol Köklü birol

🐢
:)
View GitHub Profile
@birol
birol / intersectionObserverExample2.js
Created August 6, 2019 06:46
Intersection Observer Example 2
let images = document.querySelectorAll(".imageObserve");
let observer = new IntersectionObserver((images) => {
images.forEach((image) => {
if (image.isIntersecting) {
image.target.src = image.target.dataset.src;
}
})
}, {
root: null,
@birol
birol / intersectionObserverExample1.js
Last active August 6, 2019 06:49
Intersection Observer Example 1
let observer;
let observerOptions = {
root: null,
rootMargin: "0px",
threshold: 0.5
}
let images = document.querySelectorAll(".imageObserve ");
@birol
birol / Product Sans
Created June 6, 2018 04:26
Product Sans
/*
* See: https://www.google.com/fonts/license/productsans
*/
/* cyrillic */
@font-face {
font-family: 'Product Sans';
font-style: normal;
font-weight: 400;
src: local('Product Sans'), local('ProductSans-Regular'), url(https://fonts.gstatic.com/s/productsans/v9/HYvgU2fE2nRJvZ5JFAumwRdwxCXfZpKo5kWAx_74bHs.woff2) format('woff2');
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
@birol
birol / airports.json
Created July 20, 2017 07:22 — forked from tdreyno/airports.json
JSON data for airports and their locations
This file has been truncated, but you can view the full file.
[
{
"code": "AAA",
"lat": "-17.3595",
"lon": "-145.494",
"name": "Anaa Airport",
"city": "Anaa",
"state": "Tuamotu-Gambier",
"country": "French Polynesia",
@birol
birol / csv-to-json.php
Last active August 29, 2015 14:26 — forked from robflaherty/csv-to-json.php
Convert CSV to JSON
<?php
/*
* Converts CSV to JSON
* Example uses Google Spreadsheet CSV feed
* csvToArray function I think I found on php.net
*/
header('Content-type: application/json');
// Set your CSV feed