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
function hasItems(data) { | |
var value = ko.unwrap(data), | |
result = false; | |
if (value.length && value.length > 0) | |
result = true; | |
return result; | |
} |
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
<i class="loading-wave"></i> |
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/x-handlebars-template" id="tree-layout-group"> | |
<li> | |
<div class="tree-row tree-row-header" data-bind="click: $root.toggleTreeNode"> | |
<div class="tree-row-left"> | |
<hgroup> | |
<h2><i class="{{groupIconClass}}"></i>{{name}}</h2> | |
<h3>({{serverCount}})</h3> | |
</hgroup> | |
</div> | |
<div class="tree-row-right"> |
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
var model = ko.trackableObservable(value); | |
$(".cancel").click(function(){ | |
model.reset(); | |
}); |
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
<!-- Simple Binding --> | |
<input type="submit" value="OK" data-bind='widget: "button"' /> | |
<!-- Complex Binding with options --> | |
<input id='search' data-bind='widget: { name: "autocomplete", options: { source: searchCompletions(), delay: 500 } }, value: searchString' /> |
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
function _getWidgetBindings(element, valueAccessor, allBindingsAccessor) { | |
var value = valueAccessor(), | |
myBinding = ko.utils.unwrapObservable(value), | |
allBindings = allBindingsAccessor(); | |
if (typeof (myBinding) === 'string') { | |
myBinding = { 'name': myBinding }; | |
} | |
var widgetName = myBinding.name, |
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
namespace ConsoleApplication4 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var playlist = new List<string>{ @"c:\development\test\sound.MP3", | |
@"c:\development\test\sound2.MP3" }; | |
var playr = new playr(playlist); |
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
var formatters = { | |
errors: function (errors, lines, file) { | |
var i, error; | |
for (i = 0; i < errors.length; i++) { | |
error = errors[i]; | |
if (!error) continue; | |
lines.push(file + '(' + error.line + ',' + error.character + '): error JSHint: ' + error.reason); | |
} | |
}, |
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
if ($commitSha -eq $null) { | |
$commitSha = (& "$gitPath" rev-parse HEAD) | |
} | |
if ($commitBranch -eq $null) { | |
$commitBranch = (& "$gitPath" name-rev --name-only HEAD) | |
} |
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
<section class="release"> | |
<h2>NuGet 1.6 Coming Soon!</h2> | |
<p> | |
NuGet 1.6 is coming soon so stay tuned for more information! Why, wait though NuGet 1.5 has already been released so | |
head over to our docs site and <a href="http://docs.nuget.org/docs/release-notes/nuget-1.5">read all the details</a> of that release. | |
</p> | |
</section> |
NewerOlder