Skip to content

Instantly share code, notes, and snippets.

View selcukakarin's full-sized avatar
🎯
Focusing

selcukakarin

🎯
Focusing
View GitHub Profile
@selcukakarin
selcukakarin / README.md
Created April 9, 2024 11:37 — forked from ajxchapman/README.md
Install Windows on Digital Ocean droplet
@selcukakarin
selcukakarin / degerlendir.js
Created July 3, 2021 19:36 — forked from EgehanGundogdu/degerlendir.js
sakarya universitesi degerlendirme
(() => {
for (let i = 1; i <= 30; i++) {
let radioClassName = `S${i}`
if (radioClassName === "S29" || radioClassName === "S30") {
$(`input:radio[name=${radioClassName}]`).last().prop('checked', true)
}
else {
$(`input:radio[name=${radioClassName}]`).first().prop('checked', true)
}
[
{
"status": "success",
"systemTime": 1485206254203,
"cardFamily": "Bonus",
"binNumber": "528293",
"bankName": "T\u00fcrkiye Finans Kat\u0131l\u0131m Bankas\u0131",
"locale": "tr",
"cardAssociation": "MASTER_CARD",
"conversationId": "123456789",
@selcukakarin
selcukakarin / info.md
Created December 24, 2020 14:04 — forked from marteinn/info.md
Using the Fetch Api with Django Rest Framework

Using the Fetch Api with Django Rest Framework

Server

First, make sure you use the SessionAuthentication in Django. Put this in your settings.py

# Django rest framework
REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
 'rest_framework.authentication.SessionAuthentication'
@selcukakarin
selcukakarin / info.txt
Last active January 28, 2023 17:42
ubuntu_commands
ubuntu useful commands
@selcukakarin
selcukakarin / settings.py
Created May 26, 2020 17:48 — forked from ipmb/settings.py
Django logging example
import logging.config
import os
from django.utils.log import DEFAULT_LOGGING
# Disable Django's logging setup
LOGGING_CONFIG = None
LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper()
logging.config.dictConfig({
"""
Django ORM Optimization Tips
Caveats:
* Only use optimizations that obfuscate the code if you need to.
* Not all of these tips are hard and fast rules.
* Use your judgement to determine what improvements are appropriate for your code.
"""
# ---------------------------------------------------------------------------