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
| define(function () { | |
| 'use strict'; | |
| /** | |
| * @author Octavian Theodor NITA (http://github.com/octavian-nita) | |
| * @version 1.0, August 24, 2015 | |
| * | |
| * @constructor | |
| * @augments Error | |
| * @param {string} [message] |
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
| ## This is a directory/file filter for WinMerge | |
| name: gitignore++ | |
| desc: Ignore .git and IDE-specific files and directories | |
| ## Select if filter is inclusive or exclusive | |
| ## Inclusive (loose) filter lets through all items not matching rules | |
| ## Exclusive filter lets through only items that match to rule | |
| ## include or exclude | |
| def: include |
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): |
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
| '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
| '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 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'; | |
| /** | |
| * 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 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
| #!/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 |