Skip to content

Instantly share code, notes, and snippets.

View matthewkastor's full-sized avatar

Kastor matthewkastor

  • Atropa Inc. Intl.
  • Michigan
View GitHub Profile
@GerHobbelt
GerHobbelt / grammar-extract.jison
Last active February 13, 2024 13:50
snip&snap extracts from our major JISON grammar file, showcasing 'code sections' a la BISON plus a few other bits & tricks. Note the %{ ... %} sections which are JISON's 'code sections'. Also note the code following that last '%%' marker: that is another 'code section' - and the most important one.
%options ranges
%options backtrack_lexer
/*
* lexical grammar
* ===============
*
* This section defines the lexer rules for our formula parser. The rules are checked from top to bottom, so order is import
* here!
*
@matthewkastor
matthewkastor / CKEditor.SourceViewReplacer.js
Last active June 1, 2017 12:12
This class allows you to easily replace the source view in CKEditor with any web based code editor e.g. Ace, Code Mirror, etc.
/*jslint
indent: 4,
maxerr: 50,
white: true,
browser: true,
vars: true
*/
/*global
CKEDITOR
*/
anonymous
anonymous / altered_xampp_shell.bat
Created January 29, 2012 22:58
Continuous Integration for PHP on XAMPP
@ECHO OFF
GOTO weiter
:setenv
SET ANT_HOME=\xampp\apache_ant
SET JAVA_HOME=\xampp\jdk
SET CLASSPATH=
SET PATH=%ANT_HOME%\bin;%JAVA_HOME%\bin;%PATH%