Skip to content

Instantly share code, notes, and snippets.

View Biostate's full-sized avatar
🏠
Working from home

Süleyman Özgür Özarpacı Biostate

🏠
Working from home
View GitHub Profile
@Biostate
Biostate / gist:6ee5606325f038c8bc3eeec2ca5441fd
Created October 17, 2020 14:49
Prerender.io Nginx Configuration for Laravel
server {
listen YOUR_IP_ADDRESS;
server_name YOUR_URL;
error_log /var/log/httpd/domains/YOUR_URL.error.log error;
location / {
try_files $uri @prerender;
proxy_pass YOUR_IP_ADDRESS;
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
root /home/admin/web/YOUR_URL/public_html;
access_log /var/log/httpd/domains/YOUR_URL.log combined;
@Biostate
Biostate / Depth First Search With Arrays (Python)
Created August 13, 2019 17:08
Problem Solved with Adjacency List Representation
class Stack:
def __init__(self):
self.nodes = []
def pop(self):
return self.nodes.pop()
def push(self,x):
self.nodes.append(x)
@Biostate
Biostate / Breadth First Search With Arrays (Python)
Last active August 11, 2019 22:05
Problem Solved with Adjacency List Representation
# A Simple Queue
class Queue:
def __init__(self):
self.nodes = []
def enqueue(self,x):
self.nodes = self.nodes + x
def dequeue(self):
if self.have():
@Biostate
Biostate / iller.js
Created December 8, 2017 18:39
Türkiye iller ve ilçeleri Array
var iller = {
"Ankara": ["Altındağ", "Ayaş", "Bala", "Beypazarı", "Çamlıdere", "Çankaya", "Çubuk", "Etimesgut", "Haymana", "Kalecik", "Keçiören", "Kızılcahamam", "Mamak", "Nallıhan", "Polatlı", "Şereflikoçhisar", "Sincan", "Yenimahalle"],
"İstanbul": ["Adalar", "Bağcılar", "Bahçelievler", "Bakırköy", "Beşiktaş", "Beykoz", "Beyoğlu", "Büyükçekmece", "Çatalca", "Eminönü", "Esenler", "Eyüp", "Fatih", "Gaziosmanpaşa", "Güngören", "Kadıköy", "Kağıthane", "Kartal", "Küçükçekmece", "Maltepe", "Pendik", "Sarıyer", "Silivri", "Şile", "Şişli", "Sultanbeyli", "Tuzla", "Ümraniye", "Üsküdar", "Zeytinburnu"],
"İzmir": ["Aliağa", "Balçova", "Bayındır", "Bergama", "Beydağ", "Bornova", "Buca", "Çeşme", "Dikili", "Foça", "Güzelbahçe", "Karaburun", "Karşıyaka", "Kemalpaşa", "Kınık", "Kiraz", "Konak", "Menderes", "Menemen", "Narlıdere", "Ödemiş", "Seferihisar", "Selçuk", "Tire", "Torbalı", "Urla"],
"Adana": ["Aladağ", "Ceyhan", "Feke", "Karaisalı", "Kozan", "Pozantı", "Saimbeyli", "Seyhan", "Yumurtalı", "Yüreğir"