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
| package be.thon.util.pdf; | |
| import static java.lang.Integer.valueOf; | |
| import java.io.File; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.util.ArrayList; | |
| import java.util.HashMap; | |
| import java.util.Iterator; |
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
| @if "%DEBUG%"=="" @echo off | |
| if [%1]==[test] goto test | |
| echo Setting the Java environment... & echo. | |
| if [%1]==[] set JAVA_HOME=C:\Progra~2\Java\jdk1.6.0_43 | |
| if [%1]==[6] set JAVA_HOME=C:\Progra~2\Java\jdk1.6.0_43 | |
| if [%1]==[7] set JAVA_HOME=C:\Progra~2\Java\jdk1.7.0_15 | |
| if [%1]==[8] set JAVA_HOME=C:\Progra~2\Java\jdk1.8.0_11 |
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
| #!/bin/sh | |
| sudo /etc/init.d/mysql stop | |
| # OR | |
| sudo /etc/init.d/mysqld stop | |
| sudo mysqld_safe --skip-grant-tables | |
| sudo mysql -u root << EOF |
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
| 'use strict'; | |
| var log = require('./log'); | |
| exports.slug = function(name) { | |
| return name || name. | |
| replace(/^[-\s_]*[\[\(]*[\s\d]+[\]\)]*[-\s_]*/g, ''). // remove eventual leading index / number in name | |
| replace(/^[-\s_]+|[-\s_]+$/g, ''). // remove leading and trailing spaces, dashes, underscores | |
| replace(/[-\s_]+/g, config.slugSeparator); // join by defined slug separator | |
| }; |
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
| 'use strict'; | |
| /** | |
| * Ideas compiled from multiple sources (but trying to keep things simple): | |
| * - https://github.com/h5bp/server-configs-apache/ | |
| * - https://github.com/jhermsmeier/node-mime (normally, I would use this one!) | |
| * - https://github.com/broofa/node-mime | |
| * - https://github.com/andris9/mimelib | |
| * | |
| * See also: |
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
| 'use strict'; | |
| var config = require('./config'); | |
| /** | |
| * @param {string} [level=INFO] by default, 'expected' (from a formatting point of view) values are: ERROR, WARN, | |
| * WARNING, INFO and DEBUG. | |
| */ | |
| function log(level, messageOrError /* messagePart1, messagePart2, ... */) { | |
| var |
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
| 'use strict'; | |
| var | |
| fs = require('fs'), | |
| path = require('path'), | |
| config = require('./config'), | |
| log = require('./log'), | |
| x = require('./xutil'); |
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
| 'use strict'; | |
| var | |
| EventEmitter = require('events').EventEmitter, | |
| util = require('util'), | |
| log = require('./log'), | |
| DEFAULT_OPTIONS = { capacity: 200, evictionCount: 10 }; | |
| function Cache(options) { |
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
| package net.codarium.util; | |
| import static java.awt.Font.BOLD; | |
| import static java.lang.Boolean.TRUE; | |
| import static java.lang.System.getProperty; | |
| import static javax.swing.JEditorPane.HONOR_DISPLAY_PROPERTIES; | |
| import static javax.swing.JFrame.EXIT_ON_CLOSE; | |
| import static javax.swing.SwingUtilities.invokeLater; | |
| import static javax.swing.UIManager.getSystemLookAndFeelClassName; | |
| import static javax.swing.UIManager.setLookAndFeel; |
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
| <?php | |
| class ThonResizer extends KokenPlugin | |
| { | |
| function __construct() | |
| { | |
| // Get information about the available graphics processing library: | |
| list($version, $lib) = Darkroom::processing_library_version(); | |
| // Only install the hook if Imagick is available (no GD support for the moment): |