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
(defadvice ace-jump-char-category (around adv-ace-jump-support-umlauts activate) | |
(unless (= (char-syntax (ad-get-arg 0)) ?w) | |
ad-do-it) | |
(setq ad-return-value 'alpha)) |
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
(defface php-annotations-annotation-face '((t . (:inherit 'font-lock-constant-face))) | |
"Face used to highlight annotations.") | |
(defconst php-annotations-re "\\(\\s-\\|{\\)\\(@[[:alpha:]]+\\)") | |
(defmacro php-annotations-inside-comment-p (pos) | |
"Return non-nil if POS is inside a comment." | |
`(eq (get-char-property ,pos 'face) 'font-lock-comment-face)) | |
(defun php-annotations-font-lock-find-annotation (limit) |
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 | |
require_once(realpath(__DIR__ . '/vendor/autoload.php')); | |
$sm = new \Zend\ServiceManager\ServiceManager(new \Zend\Mvc\Service\ServiceManagerConfig(array())); | |
$sm->setService( | |
'ApplicationConfig', | |
array( | |
'modules' => array('VuFindSearch'), | |
'module_listener_options' => array( |
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/zsh | |
### $Id:$ | |
### | |
### Pre-commit hook for VuFind2 | |
### | |
### Based on Z-Shell, maybe portable bash or sh. | |
### | |
### $Log:$ | |
### |
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
@startuml components.png | |
title VuFind 2.x Components | |
skinparam component { | |
BackgroundColor<< Pica >> red | |
BackgroundColor<< DB >> orange | |
} | |
[Search/Manager] as SM |
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
#!/usr/bin/env python | |
import os | |
import re | |
import subprocess | |
import sys | |
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)') | |
CHECKS = [ |
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
(defun dmaus/phix-project/jump-to-unit-test () | |
(interactive) | |
(let ((project-root (eproject-root))) | |
(when project-root | |
(let ((unit-test-file | |
(expand-file-name | |
(concat (file-name-sans-extension (file-relative-name (buffer-file-name) (expand-file-name "src/php" project-root))) | |
"Test." (file-name-extension (buffer-file-name))) | |
(expand-file-name "src/tests/unit-tests/php" project-root)))) | |
(switch-to-buffer (or (find-buffer-visiting unit-test-file) |
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
(defun dmaus/lexvo/language-code-pairs (lexvo-file) | |
"Return alist of language codes in LEXVO FILE. | |
LEXVO-FILE is the path to a lexvo data file. | |
Each element of the alist is a cons with the ISO639-3 language | |
code in car and the file-specific language code in cdr." | |
(let (code-pairs) | |
(with-current-buffer (find-file-noselect lexvo-file) | |
(save-excursion | |
(goto-char (point-min)) |
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 | |
if (count($argv) != 3) { | |
die(); | |
} | |
function load_schema ($path) | |
{ | |
if (!file_exists($path)) { | |
die(); |
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
;; Copyright 2011 Erik Hetzner | |
;; | |
;; This program is free software; you can redistribute it and/or modify | |
;; it under the terms of the GNU General Public License as published by | |
;; the Free Software Foundation; either version 2, or (at your option) | |
;; any later version. | |
;; | |
;; This program is distributed in the hope that it will be useful, | |
;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |