Skip to content

Instantly share code, notes, and snippets.

View ilkermutlu's full-sized avatar

Ilker Mutlu ilkermutlu

View GitHub Profile
@ilkermutlu
ilkermutlu / .vimrc
Last active June 7, 2016 11:29 — forked from mattstauffer/.vimrc
Vimscripts to easily create PHP class and easily add dependency to PHP classTweaked versions of a script by Jeffrey Way
" Note: To add this to your .vimrc, you'll have to delete any character that is written with a caret (e.g. "^M") and enter the real value; to enter ^M, enter insert mode and type CTRL-V CTRL-M.
" Easily create class.
function! Class()
let name = input('Class Name? ')
let namespace = input('Any Namespace? ')
if strlen(namespace)
exec 'normal i<?php namespace ' . namespace . ';^M^M^['
else
@ilkermutlu
ilkermutlu / convert.md
Last active April 9, 2024 11:23
Convert PDF file to v1.4
// Not much of PHP magic
// This just takes a PDF file from a path
// and executes Ghostscript to convert your
// PDF to version 1.4

// You need to have Ghostscript installed
// See https://www.ghostscript.com/Documentation.html

$PDFFile = '/path/to/your/pdf.pdf';
@ilkermutlu
ilkermutlu / extractPages.vba
Created March 5, 2018 16:31
Extract Pages From Word Document
' Found in https://www.datanumen.com/blogs/2-quick-ways-extract-individual-pages-word-document/
Sub SaveEachPageAsADoc()
Dim objNewDoc As Document
Dim objDoc As Document
Dim nPageNumber As Integer
Dim strFolder As String
Dim objFileName As Range
' Initialization