This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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)): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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) { |