Skip to content

Instantly share code, notes, and snippets.

Avatar

Maheshwaran Subramaniya mymindleaks

View GitHub Profile
@mymindleaks
mymindleaks / gist:8126309
Created Dec 25, 2013
prolog rules for differential calculus symbolic computation
View gist:8126309
/****************** 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 Dec 25, 2013
prolog rules for integral calculus symbolic computation
View gist:8126305
/****************** 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 Jun 3, 2012
Configure markdown mode for emacs
View gist:2864590
;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 Jan 26, 2012
Sample plugin-cfg.xml file
View plugin-cfg.xml
<?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>