Skip to content

Instantly share code, notes, and snippets.

View ozknozsrt's full-sized avatar
🚀
Focusing

Özkan ÖZSERT ozknozsrt

🚀
Focusing
View GitHub Profile
@ozknozsrt
ozknozsrt / es6-element-ready.js
Created June 9, 2022 14:55 — forked from jwilson8767/es6-element-ready.js
Wait for an element to exist. ES6, Promise, MutationObserver
// MIT Licensed
// Author: jwilson8767
/**
* Waits for an element satisfying selector to exist, then resolves promise with the element.
* Useful for resolving race conditions.
*
* @param selector
* @returns {Promise}
*/
@ozknozsrt
ozknozsrt / code-tag.txt
Created May 26, 2022 14:46 — forked from brun0xff/code-tag.txt
TODO: FIXME, HACK, and REVIEW
# Use TODO to note missing features or functionality that should be added at a later date.
# Use FIXME to note broken code that needs to be fixed.
# Use OPTIMIZE to note slow or inefficient code that may cause performance problems.
# Use HACK to note code smells where questionable coding practices were used and should be refactored away.
# Use REVIEW to note anything that should be looked at to confirm it is working as intended.
@ozknozsrt
ozknozsrt / app.js
Last active January 16, 2024 16:48 — forked from itzikbenh/app.js
WordPress API - how to fetch and paginate posts with Vue.js
import Vue from 'vue';
import posts from './components/posts.vue';
window.axios = require('axios');
window.Vue = Vue;
Vue.component('posts', posts);
const app = new Vue({
el: '#app',
@ozknozsrt
ozknozsrt / slugify_tr.js
Created September 20, 2019 08:33 — forked from muratcorlu/slugify_tr.js
Javascript Türkçe karakter destekli slugify (url metni oluşturucu)
/**
* Metni url'de kullanılabilir hale çevirir. Boşluklar tireye çevrilir,
* alfanumerik olmayan katakterler silinir.
*
* Transform text into a URL path slug(with Turkish support).
* Spaces turned into dashes, remove non alnum
*
* @param string text
*/
slugify = function(text) {
@ozknozsrt
ozknozsrt / svg.js
Created February 12, 2019 08:59 — forked from schmidt1024/svg.js
Replace all SVG images with inline SVG using jQuery
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@ozknozsrt
ozknozsrt / ys.js
Created September 12, 2018 16:19 — forked from riza/ys.js
yemeksepeti random yemek seçici
/* Chrome eklentisi de şurada : https://github.com/riza/yemeksepeti-randomer */
var items = []; $('.ys-item').find('.head').find('.restaurantName').each(function(i,v) { items.push($(this).html()); });console.log(items[Math.floor(Math.random()*items.length)]);
@ozknozsrt
ozknozsrt / front-end-blogs.md
Created August 28, 2018 07:53 — forked from zamozniewicz/front-end-blogs.md
Front-end blogs worth reading

##Front-end blogs worth reading##

Even though for the last few years blogs have been losing popularity to Twitter, Facebook and Google Plus and so on, they're still not dead and have not been replaced with other media.

###Articles, showcases, resources###

  • A List Apart - articles design, development, and web standards
  • DailyJS - news, tips, examples and reviews of a variety of JavaScript frameworks and modules.
  • Mozilla Hacks - one of key resources for people developing for the Open Web
@ozknozsrt
ozknozsrt / media-query.css
Created August 13, 2018 11:22 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@ozknozsrt
ozknozsrt / set-cookie-good.php
Created May 5, 2018 23:31 — forked from kopiro/set-cookie-good.php
Set cookie for all pages PHP
@ozknozsrt
ozknozsrt / sehirler.html
Created February 1, 2018 06:54 — forked from aladagemre/sehirler.html
Türkiye Şehir Listesi HTML Select Option
<select name="Sehir">
<option value="0">------</option>
<option value="1">Adana</option>
<option value="2">Adıyaman</option>
<option value="3">Afyonkarahisar</option>
<option value="4">Ağrı</option>
<option value="5">Amasya</option>
<option value="6">Ankara</option>
<option value="7">Antalya</option>
<option value="8">Artvin</option>