Skip to content

Instantly share code, notes, and snippets.

View alihanekiz's full-sized avatar

AE ⚡️ alihanekiz

View GitHub Profile
@alihanekiz
alihanekiz / grid.scss
Created August 26, 2024 12:42
Grid system like in bs
//include this scss if you want to use a grid, without importing a ui libary like bootstrap.
// Vars
$container-padding: 15px;
$container-max-width: 1200px;
$columns: 12;
// Mixins
@mixin make-col($size, $columns: 12) {
flex: 0 0 percentage($size / $columns);
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBGdl38kBEACp5gaHmvAyk2J9mfX0m08miHmO1dYnBOmrTm6gJZVcb3bCGwzG
vFkCij+kVITdOAWSD2JoKHDJtu/u/xBIqjem0HrPCR+Hf5adYEhpb1AHYlE8n8oE
Xc+pQ+1iLIfF3KyGepfVf3tQ1xFMZyZUadBbno2oOfAnAamXZlq8xPr3cF8YTsrF
OVCjAoE3etFNnQmowpETpGmAkDiDuzujMAL3Mu1R1HSuf/ctLJ3XTDKu6Nzk/76G
s70L6xG/DKp0Hr6iut6sTSUw9DAWo6F1bqpP1QaG7YObuF9GHy0vD3EIVsI9F5fC
y0rkkqraidvQvZUA87bDyFSm5c1ypidrrh0R0TeITeQTAuhJp0IdBjLdLvMSKvuL
DpScXRq5qMb4rzVwg9xptphjvAHpkYNdrT9oNeJYp6/8OeroB/ep4wZS4dQR521+
7EM0p/FsrZDasRsTazTtsJN6jXWOH2ck0jLgB0KK7w1NjhKTf/+sHH2oVEkmKAMv
@alihanekiz
alihanekiz / httpCodes.md
Created January 16, 2024 16:06
HTTP Status Codes

HTTP Status Codes

1xx Informational

  • 100 Continue: The initial part of a request has been received, and the client should continue with the request.
  • 101 Switching Protocols: The server is switching protocols as requested by the client.

2xx Success

  • 200 OK: Standard response for successful HTTP requests.
  • 201 Created: The request has been fulfilled and resulted in a new resource being created.
  • 204 No Content: The server successfully processed the request, but is not returning any content.
@alihanekiz
alihanekiz / main.py
Created February 13, 2023 17:26
PDF2TXT in Python
# importing required modules
from PyPDF2 import PdfReader
txtFilename = ''
pdfFilename = ''
text = ''
f = open(txtFilename, 'w')
reader = PdfReader(pdfFilename)
for page in reader.pages:
@alihanekiz
alihanekiz / index.js
Created January 13, 2018 16:26
get location inside of a browser.
(that => {
navigator.geolocation.getCurrentPosition(pos => {
console.log(pos);
});
})(this);