Skip to content

Instantly share code, notes, and snippets.

View burakaykan's full-sized avatar
💻
Coding

Burak Aykan ÜRER burakaykan

💻
Coding
View GitHub Profile
@burakaykan
burakaykan / pdf.py
Created July 4, 2024 07:39
Rotate PDF with PyPDF2
#!/usr/bin/env python3
import PyPDF2
from PyPDF2 import PdfReader, PdfWriter
pdfIn = open('horizontal.pdf', 'rb') # exchange the 'original.pdf' with a name of your file
pdfReader = PdfReader(pdfIn)
pdfWriter = PdfWriter()
for pageNum in range(len(pdfReader.pages)):
@burakaykan
burakaykan / add_intellij_launcer
Created February 1, 2022 12:52 — forked from rob-murray/add_intellij_launcer
Add Intellij launcher shortcut and icon for ubuntu
// create file:
sudo vim /usr/share/applications/intellij.desktop
// add the following
[Desktop Entry]
Version=13.0
Type=Application
Terminal=false
Icon[en_US]=/home/rob/.intellij-13/bin/idea.png
Name[en_US]=IntelliJ
@burakaykan
burakaykan / Main.java
Created May 25, 2021 20:31
Numbers - Solution
// Implement a program that prints the numbers 1 .. 100 in ascending order
// Use two threads, one thread printing even numbers, the other printing odd numbers only
package me.burakaykan;
public class Main {
static int number = 100;
static int counter = 1;
public static void main(String[] args) {