<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: Willpost's Code Snippets</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Fri, 25 Jul 2008 08:36:33 GMT</pubDate>
    <description>DZone Snippets: Willpost's Code Snippets</description>
    <item>
      <title>Using Scheme in ASP</title>
      <link>http://snippets.dzone.com/posts/show/1735</link>
      <description>;The following example is in VBScript.  Any scripting language that uses com objects will be similar&lt;br /&gt;;1 Install PLT Scheme - it will register the dlls&lt;br /&gt;;2 Control Panel &gt; Administrative Tools &gt; Component Services&lt;br /&gt;;   My Computer &gt; DCOM Config &gt; MzCOM&lt;br /&gt;;   Properties &gt; Security &gt; Launch and Activation Permissions &gt; Customize&lt;br /&gt;;   Add Everyone or IUSR_&lt;Computername&gt; Allow Local Launch, Local Activation&lt;br /&gt;&lt;br /&gt;;Output&lt;br /&gt;;(define test (lambda () (+ 1 2 3 4 5)))&lt;br /&gt;;15&lt;br /&gt;&lt;code&gt;&lt;br /&gt;strScheme = "(define test (lambda () (+ 1 2 3 4 5)))" 'Test Function&lt;br /&gt;    &lt;br /&gt;Set objScheme = Server.CreateObject("MzCOM.MzObj")   &lt;br /&gt;result = objScheme.Eval(strScheme) &lt;br /&gt;result = objScheme.Eval("(test)")  'It remembers the function&lt;br /&gt;Set objScheme = Nothing&lt;br /&gt;&lt;br /&gt;Response.Write(strScheme &amp; "&lt;br&gt;" &amp; result &amp; "&lt;br&gt;") 'Display Results&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 23 Mar 2006 13:23:16 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1735</guid>
      <author>willpost ()</author>
    </item>
    <item>
      <title>Factorial in Scheme</title>
      <link>http://snippets.dzone.com/posts/show/1734</link>
      <description>;Calculate the factorial of a number&lt;br /&gt;;(factorial 5) = 1 * 2 * 3 * 4 * 5 = 120&lt;br /&gt;;(factorial 50) = 30414093201713378043612608166064768844377641568960512000000000000&lt;br /&gt;&lt;code&gt;&lt;br /&gt;(define factorial&lt;br /&gt;  (lambda (n)&lt;br /&gt;    (if (= n 0) 1&lt;br /&gt;        (* n (factorial (- n 1))))))&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Thu, 23 Mar 2006 12:59:22 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/1734</guid>
      <author>willpost ()</author>
    </item>
  </channel>
</rss>
