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
| error_reporting(E_ALL); | |
| ini_set('display_errors', '1'); |
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
| AddDefaultCharset utf-8 |
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
| REM LISTA DE FORMATOS | |
| REM --------------------------- | |
| convert -list format | |
| REM DE UN FORMATO A OTRO | |
| REM --------------------------- | |
| convert input output | |
| REM REDIMENSIONAR | |
| REM --------------------------- |
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
| REM Para unir dos documentos diferentes podemos ejecutar lo siguiente desde la consola: | |
| pdftk archivo1.pdf archivo2.pdf cat output salida.pdf | |
| REM Tambien podemos unirlos utilizando etiquetas: | |
| pdftk A=archivo1.pdf B=archivo2.pdf cat A B output salida.pdf | |
| REM Y por supuesto podemos usar comodines: | |
| pdftk *.pdf cat output salida.pdf | |
| REM Para separar páginas de varios documentos y crear un documento nuevo con estas hacemos lo siguiente: |
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
| REM PS TO PDF | |
| gswin32c -sDEVICE=pdfwrite -dPDFSETTINGS=/prepress -sOutputFile=test.pdf -dBATCH -dNOPAUSE test.ps | |
| REM PDF TO PNG | |
| gswin32c -sDEVICE=png16m -sOutputFile=salida.png -r300 entrada.pdf | |
| REM Devices disponibles | |
| gswin32c -h | |
| gswin32c -dPrinted -dBATCH -dNOPAUSE -dNOSAFER -q -dNumCopies=1 -sDEVICE=ljet4 -sOutputFile="\\spool\\\Server_Name\Printer_name" "C:\test.pdf" |
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
| string ftpServerIP = "ftp.example.com"; | |
| string ftpUserName = "username"; | |
| string ftpPassword = "password"; | |
| string filename = Server.MapPath("example.txt"); | |
| FileInfo objFile = new FileInfo(filename); | |
| FtpWebRequest objFTPRequest; | |
| // Create FtpWebRequest object |
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
| function hexToRgb (hex) { | |
| var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex); | |
| return result ? { | |
| r: parseInt(result[1], 16), | |
| g: parseInt(result[2], 16), | |
| b: parseInt(result[3], 16) | |
| } : null; | |
| } |
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
| var image = document.createElement( 'img' ); | |
| var texture = new THREE.Texture( image ); | |
| image.onload = function() { | |
| texture.needsUpdate = true; | |
| ... | |
| }; | |
| image.src = 'data:image/png;base64,XXXXX'; |
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
| $("#<%= txtMultipleName.ClientID %>").autocomplete({ | |
| source: function (request, response) { | |
| $.getJSON("AutoComplete.ashx", { | |
| term: extractLast(request.term) | |
| }, response); | |
| }, | |
| search: function () { | |
| // custom minLength | |
| var term = extractLast(this.value); | |
| if (term.length < 1) { |
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
| # ionice -c 3 -p 89 Sets process with PID 89 as an idle I/O process. | |
| # ionice -c 2 -n 0 bash Runs 'bash' as a best-effort program with highest priority. | |
| # ionice -p 89 91 Prints the class and priority of the processes with PID 89 and 91. | |
| system ("ionice -c 2 -n 7 pdftk $tmp1 $tmp2 output -"); |