Skip to content

Instantly share code, notes, and snippets.

View mymindleaks's full-sized avatar

Maheshwaran Subramaniya mymindleaks

View GitHub Profile
@mymindleaks
mymindleaks / gist:8126309
Created December 25, 2013 19:49
prolog rules for differential calculus symbolic computation
/****************** Differential Calculus ***************/
d( X, X, 1 ):- !. /* d(X) w.r.t. X is 1 */
d( C, X, 0 ):- atomic(C). /* If C is a constant then */
/* d(C)/dX is 0 */
d( U+V, X, R ):- /* d(U+V)/dX = A+B where */
d( U, X, A ), /* A = d(U)/dX and */
d( V, X, B ),
@mymindleaks
mymindleaks / gist:8126305
Created December 25, 2013 19:48
prolog rules for integral calculus symbolic computation
/****************** Integral Calculus ***************/
int( 0 , X , 0).
int( C , X , C * X ):-
atomic(C),
C \= X, !.
int( X , X , 0.5 * X^2 ):- !.
int( 1 / X , X , ln(X) ):- !.
@mymindleaks
mymindleaks / gist:2864590
Created June 3, 2012 18:50
Configure markdown mode for emacs
;add the path where all the user modules will be located
(add-to-list 'load-path "~/.emacs.d/")
(autoload 'markdown-mode "markdown-mode.el"
"Major mode for editing Markdown files" t)
(setq auto-mode-alist
(cons '("\\.md" . markdown-mode) auto-mode-alist)
)
@mymindleaks
mymindleaks / plugin-cfg.xml
Created January 26, 2012 01:58
Sample plugin-cfg.xml file
<?xml version="1.0"?>
<Config ASDisableNagle="false" AcceptAllContent="false" IISDisableNagle="false" IgnoreDNSFailures="false" RefreshInterval="60" ResponseChunkSize="64">
<Log LogLevel="Error" Name="/logs/http_plugin.log"/>
<VirtualHostGroup Name="default_host">
<VirtualHost Name="*:80"/>
</VirtualHostGroup>