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
| package main | |
| import ( | |
| "code.google.com/p/go.net/html" | |
| "fmt" | |
| iconv "github.com/sloonz/go-iconv" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "net/http" |
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
| # Add this 3 lines to your software sources /etc/apt/sources.list: | |
| #deb http://debian.meebey.net/experimental/mono / | |
| #deb http://http.us.debian.org/debian/ unstable main contrib non-free | |
| #deb-src http://http.us.debian.org/debian/ unstable main contrib non-free | |
| sudo apt-get remove mono-complete | |
| sudo apt-get autoremove | |
| sudo apt-get install debian-archive-keyring | |
| sudo apt-get update | |
| sudo apt-get install mono-complete | |
| sudo apt-get install fsharp |
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
| <script type="text/javascript"> | |
| var scrollEnabled = "@Model.CurrentPageItemsCount" == "@Consts.PageSize"; | |
| var page = 1; | |
| $(window).bind('scroll', function () { | |
| if (scrollEnabled) { | |
| if ($(this).scrollTop() + $(this).height() >= ($(document).height() - 100)) { | |
| scrollEnabled = false; | |
| var link = '@Model.PagedLink'.replace("page", page); | |
| $.get(link, function (html) { | |
| var data = $(html).find('.item'); |
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
| type Wrap<'a>(a:'a) | |
| type System.Int32 with | |
| static member Show(i:int) = | |
| System.Console.Write(i);; | |
| let inline show< ^a when ^a : (static member Show: ^a -> Unit) > (a:^a) = | |
| (^a: (static member Show: ^a -> Unit) a);; | |
| show<System.Int32>(1);; |
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.Text; | |
| using System.Threading.Tasks; | |
| namespace Union | |
| { | |
| class Union<A,B> | |
| { |
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
| class DtoUser { } | |
| class DtoUser2 : DtoUser | |
| { | |
| } | |
| //версионирование wcf с заменой dto | |
| interface Iapi1 | |
| { | |
| [ServiceKnownType(typeof(DtoUser2))] | |
| DtoUser GetUser(); //change returned dto in v2 | |
| DtoUserOld GetUserOld();//remove method in v2 |
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.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| namespace Metaphone | |
| { | |
| static class Helpers |
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.Diagnostics; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Text.RegularExpressions; | |
| using System.Threading.Tasks; | |
| //original https://github.com/bazhenov/naive-bayes-example | |
| namespace NaiveBayesianClasisifier | |
| { |
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.Configuration; | |
| using System.IO; | |
| using System.Net; | |
| using System.Reactive.Concurrency; | |
| using System.Reactive.Linq; | |
| using System.Text; | |
| using System.Web.Helpers; | |
| namespace TwitterStreamRX |
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; | |
| //http://jonasboner.com/2008/10/06/real-world-scala-dependency-injection-di/ | |
| namespace CakeDI | |
| { | |
| class MainClass | |
| { | |
| public static void Main (string[] args) | |
| { | |
| TestComponentRegistry.Current.UserService.Authenticate("hodza", "pass"); | |
| TestComponentRegistry.Current.UserService.Authenticate("hodza2", "pass"); |