Skip to content

Instantly share code, notes, and snippets.

View canokay's full-sized avatar
🎯
Focusing

Can Okay canokay

🎯
Focusing
View GitHub Profile
@canokay
canokay / JavaConsoleLogin.java
Created November 15, 2018 09:04
Java Console Login Example
import java.util.Scanner;
public class JavaConsoleLogin {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
System.out.print("Kullanıcı Adı: ");
String username= input.nextLine();
System.out.print("Şifre: ");
String password= input.nextLine();
System.out.println("Kullanıcı adı: " + username);
@canokay
canokay / decorators.py
Last active May 29, 2022 17:44
Django Custom View Decorators
from django.http import HttpResponseRedirect
from django.core.exceptions import PermissionDenied
from django.urls import reverse
from django.shortcuts import render
from django.shortcuts import redirect
def role_required(allowed_roles=[]):
def decorator(view_func):
def wrap(request, *args, **kwargs):
@canokay
canokay / inputbox_1.vb
Created November 11, 2018 11:18
Visual Basic Inputbox Examples
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
ListBox1.Items.Add(InputBox("Ad ve Soyad giriniz", "Bilgi girisi", " "))
End Sub
End Class
pillow
django
django-colorfield
django-ckeditor
django-cleanup
djangorestframework
django-rest-auth
django-crispy-forms
django-extensions
django-filter

Kullanıcı Hesapları üzerine Uygulamalar-1

Kullanıcı hesabı eklemek: Kullanıcı eklemek için useradd kullnılır.

Ogrenci1 adlı user ekleyin:

Useradd ogrenci1

Ogrenci1 hesabının şifresini değiştirin:

@canokay
canokay / windows-10-install.md
Last active December 24, 2020 17:14
Windows 10 format atıldıktan sonra kurduğum programlar.
<form method="post" action="">
<input type="hidden" name="_method" value="put" />
<input type="text" name="title" value="content_or_not" />
<button type="submit">Save</button>
</form>