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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace TaskParallelization | |
| { | |
| public class ParallelSender | |
| { | |
| private readonly IList<string> _contents; |
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
| This code use redis-sharp library by Miguel de Icaza. | |
| http://github.com/migueldeicaza/redis-sharp | |
| That's a very simple test of Redis 2.0.1, Mono 2.8 and C# together on Mac OS X Snow Leopard to rock! |
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
| This code use redis-sharp library by Miguel de Icaza. | |
| http://github.com/migueldeicaza/redis-sharp | |
| That's a very simple test of Redis 2.0.1, Mono 2.8 and F# together on Mac OS X Snow Leopard to rock! | |
| See also: http://gist.github.com/642656 |
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
| #light | |
| (* | |
| Sample code from the article "Asynchronous C# and F# (I.): Simultaneous introduction", avaliable at: | |
| http://tomasp.net/blog/csharp-fsharp-async-intro.aspx | |
| *) | |
| open System | |
| open System.Net |
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
| // Asynchronous Client Socket Example | |
| // http://msdn.microsoft.com/en-us/library/bew39x2a.aspx | |
| using System; | |
| using System.Net; | |
| using System.Net.Sockets; | |
| using System.Threading; | |
| using System.Text; | |
| // State object for receiving data from remote device. |
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
| leandro@codezone ~/.rvm/rubies/ironruby-1.0/bin | |
| $ gem update --system --debug | |
| Updating RubyGems | |
| Updating rubygems-updateERROR: While executing gem ... (ArgumentError) | |
| Invalid path | |
| mscorlib:0:in `GetDirectoryName' | |
| /Users/leandro/.rvm/rubies/ironruby-1.0/bin/../lib/ruby/1.8/fileutils.rb:237:in `fu_mkdir' | |
| /Users/leandro/.rvm/rubies/ironruby-1.0/bin/../lib/ruby/1.8/fileutils.rb:215:in `mkdir_p' | |
| mscorlib:0:in `reverse_each' | |
| mscorlib:0:in `CallSite.Target' |
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/bash | |
| dmcs -r:/opt/ironruby/bin/IronRuby.dll \ | |
| -r:/opt/ironruby/bin/IronRuby.Libraries.dll \ | |
| -r:/opt/ironruby/bin/Microsoft.Scripting.dll \ | |
| -r:/opt/ironruby/bin/Microsoft.Scripting.Core.dll \ | |
| program.cs |
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
| Sample code on how to parse command line options with Mono.Options. | |
| Mono.Options can be downloaded and compiled from: | |
| https://github.com/mono/mono/tree/master/mcs/class/Mono.Options/Mono.Options |
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
| using System; | |
| using System.Reflection; | |
| using System.Security.Permissions; | |
| [assembly:AssemblyVersionAttribute("1.0.2000.0")] | |
| public class Metadata | |
| { | |
| private int factor; | |
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/sh | |
| WEB2PY_APPDIR=/opt/web2py/applications | |
| APPNAME=`basename $PWD` | |
| if [ "$1" = "-d" ]; then | |
| echo Deploying $APPNAME application to web2py server at $WEB2PY_APPDIR | |
| ln -s $PWD $WEB2PY_APPDIR/$APPNAME; | |