Skip to content

Instantly share code, notes, and snippets.

View alimertcakar's full-sized avatar
💭
🏍️

Ali Mert Çakar alimertcakar

💭
🏍️
View GitHub Profile
#
# Recommended minimum configuration:
#
# Example rule allowing access from your local networks.
# Adapt to list your (internal) IP networks from where browsing
# should be allowed
acl localnet src 0.0.0.1-0.255.255.255 # RFC 1122 "this" network (LAN)
acl localnet src 10.0.0.0/8 # RFC 1918 local private network (LAN)
acl localnet src 100.64.0.0/10 # RFC 6598 shared address space (CGN)
let str = "aAbBcCddDfgGFj";
function isUpperCase(c){
return c === c.toUpperCase();
}
let strArr = str.split("");
console.log(strArr)
let answer = "";
@alimertcakar
alimertcakar / gist:aaee661260aa0fecf0cecd62bd0485f7
Created December 5, 2020 16:04
Javascript Block Alt+Tab Logging
(
function () {
setTimeout(() => {
clearInterval(window.tekrarlayici);
window.tekrarlayici = setInterval(function (
) {
window.onblur = function () { document.title = "Please update Internet Explorer 9.0"; document.hidden = false; };
window.onfocus = function () { document.title = "Please update Internet Explorer 9.0" };
Object.defineProperty(document, 'hidden', { value: false, writable: false });
document.addEventListener('visibilitychange', function (e) {
function isFastClick(){
let startMousePos = []
let endMousePos = []
$(".glide__slide").click(function(){
//startMousePos = ...
})
$(".glide__slide").delay(200).click( function(){
@alimertcakar
alimertcakar / farmaborsa__sepette indirim
Created February 12, 2021 10:49
Generated by SassMeister.com.
.sepette-indirimli-urun{
.urun-adi.sepet__urun{
margin-bottom: 0px!important;
}
.urun-adi.sepet__urun > a{
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
Ali Mert Çakar
@alimertcakar
alimertcakar / satıcı getir
Last active July 30, 2021 06:08
satıcı getir fz
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.farmazon.com.tr/cart
// @icon https://www.google.com/s2/favicons?domain=farmazon.com.tr
// @grant none
// ==/UserScript==

First cd src Then find . -type f | xargs wc -l | awk -F "." '$1>100'

Filter files with 100+ lines in react project or filter files with 100+ lines in nodejs project or filter files with 100+ lines in dotnet project or filter files with 100+ lines in any project.

source for script.

@alimertcakar
alimertcakar / History\-100f66cc\entries.json
Last active May 23, 2023 11:16
My visual studio code settings & extensions
{"version":1,"resource":"file:///c%3A/Users/Monst/OneDrive/Belgeler/GitHub/javascript-playground/misc-js/queue.mjs","entries":[{"id":"HV2x.mjs","timestamp":1652128075383},{"id":"CVoT.mjs","timestamp":1652130690672},{"id":"Pcjt.mjs","timestamp":1652130701048},{"id":"9zcL.mjs","source":"Renaming StackNode to QueueNode","timestamp":1652130822411},{"id":"9UH2.mjs","timestamp":1652130839485},{"id":"IqLw.mjs","timestamp":1652130860673},{"id":"7MJV.mjs","timestamp":1652131260307},{"id":"ta1v.mjs","timestamp":1652131281664},{"id":"236X.mjs","timestamp":1652131386757},{"id":"b5Yo.mjs","timestamp":1652131460560},{"id":"Hc4a.mjs","timestamp":1652131833530},{"id":"PmdU.mjs","timestamp":1652131850787},{"id":"VA87.mjs","timestamp":1652132008130},{"id":"tDzm.mjs","timestamp":1652132113725},{"id":"ASkp.mjs","timestamp":1652132166260},{"id":"dvZt.mjs","timestamp":1652132179166},{"id":"CPnd.mjs","timestamp":1652132198409},{"id":"BY1N.mjs","timestamp":1652132238510},{"id":"lsmD.mjs","timestamp":1652132253345},{"id":"7NjM.mjs","
@alimertcakar
alimertcakar / gist:1fa9b062a925641a475ad63a0f1bfa9b
Created December 28, 2023 12:38
VS Code find component with prop using regex
<Spinner[ \w=\{\}>\(\)\n;".-:]* loading
finds Spinner components containing the prop loading
<section[ \w=\{\}>\(\)\n;".-:]* className
finds section's containing the prop className
so on