This file contains 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
<?php | |
/** | |
* Create a thumbnail image from the specified file | |
* | |
* @param int $height output image height | |
* @param int $width output image width | |
*/ | |
function create_preview($height, $width) |
This file contains 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
(function($){ | |
$.fn.extend({ | |
center: function () { | |
return this.each(function() { | |
var top = ($(window).height() - $(this).outerHeight()) / 2; | |
var left = ($(window).width() - $(this).outerWidth()) / 2; | |
$(this).css({position:'absolute', margin:0, top: (top > 0 ? top : 0)+'px', left: (left > 0 ? left : 0)+'px'}); | |
}); | |
} | |
}); |
This file contains 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
.modal { | |
position: absolute; | |
top:0; | |
left:0; | |
z-index: 2000; | |
height:300px; | |
width:400px; | |
background-color: white; | |
border-radius:10px; | |
border: 1px solid rgba(0, 0, 0, 0.3); |
This file contains 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
#!/bin/bash | |
# | |
# Developed by Fred Weinhaus 5/1/2009 .......... revised 4/12/2010 | |
# | |
# USAGE: cylinderize [-m mode] [-r radius] [-l length] [-w wrap] [-f fcolor] [-a angle] [-p pitch] [-n narrow] [-v vpmethod] [-b bgcolor] [-t] infile outfile | |
# USAGE: cylinderize [-h or -help] | |
# | |
# OPTIONS: | |
# | |
# -m mode mode of orientation for cylinder axis; options are |
This file contains 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
pdftk file1.pdf file2.pdf file3.pdf cat output newfile.pdf |
This file contains 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
# Compresses a pdf file | |
# Compression level can be adjusted by changing -dPDFSETTINGS | |
# Possible values: | |
# -dPDFSETTINGS=/screen (screen-view-only quality, 72 dpi images) | |
# -dPDFSETTINGS=/ebook (low quality, 150 dpi images) | |
# -dPDFSETTINGS=/printer (high quality, 300 dpi images) | |
# -dPDFSETTINGS=/prepress (high quality, color preserving, 300 dpi imgs) | |
# -dPDFSETTINGS=/default (almost identical to /screen) | |
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
NewerOlder