This file contains 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
public abstract class StreamCompressor : ICompressor | |
{ | |
protected abstract Stream CreateStream(Stream inputStream, CompressionMode compressionMode); | |
public byte[] Compress(byte[] data) | |
{ | |
var inputStream = new MemoryStream(data, writable:false); | |
var outputStream = new MemoryStream(data.Length); | |
var compressionStream = CreateStream(outputStream, CompressionMode.Compress); | |
inputStream.CopyTo(compressionStream); |
This file contains 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 LiveDomain::Proxy; | |
sub new() | |
{ | |
my ($package,$system) = @_; | |
return bless {system => $system}; | |
} | |
sub AUTOLOAD | |
{ |
This file contains 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
# list of letters | |
my @letters = qw(a b c d e); | |
#each regex is associated with a list of indicies into the list of letters | |
my @puzzle = | |
( | |
['.*g.*v.*h.*' => [0..6]], | |
['[cr]*' => [7..14]], | |
['.*xexm*' => [15..23]], | |
['.*dd.*ccm.*' => [24..33]], |
This file contains 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
[Serializable] | |
public class Puzzle | |
{ | |
public string Author{ get; set; } | |
public DateTime Created{ get; set; } | |
public string[] Rows{ get; set; } | |
public string[] Cols { get; set; } | |
public String[] RowConstraints { get; set; } | |
public String[] ColumnConstraints { get; set; } | |
This file contains 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
PM> install-package validation | |
Successfully installed 'Validation 2.0.2.13022'. | |
Successfully uninstalled 'Validation 2.0.2.13022'. | |
Install failed. Rolling back... | |
Install-Package : Could not install package 'Validation 2.0.2.13022'. You are trying to install this package into a | |
project that targets '.NETFramework,Version=v4.0', but the package does not contain any assembly references that are | |
compatible with that framework. For more information, contact the package author. | |
At line:1 char:16 | |
+ install-package <<<< validation | |
+ CategoryInfo : NotSpecified: (:) [Install-Package], InvalidOperationException |
This file contains 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
<html> | |
<head> | |
<link | |
href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" | |
rel="stylesheet" /> | |
</head> | |
<body> | |
</body> | |
</html> |
This file contains 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
<div class="navbar navbar-inverse"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<button type="button" class="btn btn-navbar" | |
data-toggle="collapse" data-target=".nav-collapse"> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
<span class="icon-bar"></span> | |
</button> | |
<a class="brand" href="#">Lizzy</a> |
This file contains 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 src="http://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script src="http://code.jquery.com/ui/1.10.2/jquery-ui.js"></script> | |
<script src="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.0/js/bootstrap.min.js"></script> |
This file contains 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
<div class="list-title"> | |
<input class="title" value="Techs demonstrated"> | |
</div> | |
<div id="list-items-container" style="padding-top:20px;padding-bottom:10px;"> | |
<ul class="list" id="sortable" style="padding-top:4px"> | |
<li id="1"><input class="list-item" value="jQuery"></li> | |
<li id="2"><input class="list-item" value="Bootstrap"></li> | |
<li id="3"><input class="list-item" value="OrigoDB"></li> | |
<li id="4"><input class="list-item" value="ASP.NET MVC"></li> | |
</ul> |
This file contains 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
$(function(){ | |
// ---------------------------------------------------------------------------------------------- | |
// set up drag and drop reordering using jquery-ui sortable function | |
// ---------------------------------------------------------------------------------------------- | |
$("#sortable").sortable( | |
{ | |
axis:'y', | |
containment:'#list-items-container', | |
handle:'.drag-handle' | |
} |