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
@using Prototyping.Ipsum; | |
@using Prototyping.Placeholdit; | |
//Ipsum examples | |
//Random paragraph | |
@Html.Ipsum() | |
//Paragraph | |
@Html.Ipsum().p() | |
//Four paragraphs, ten sentences | |
@Html.Ipsum().p(4, 10) | |
//Paragraph with the attribute class="fancy" |
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
optionsToAdd.forEach(function (item) { | |
$("<option></option>") | |
.html(item.myText) | |
.attr("value", item.myId) | |
.appendTo($("#targetDropDown")); | |
}) |
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
var targetType = typeof(Target); | |
targetType.GetMethods() | |
.Select(m => m.Name) | |
.Except(targetType.GetInterfaces() | |
.SelectMany(i => i.GetMethods() | |
.Select(im => im.Name))) | |
//---out | |
//ScoreGame |
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 static MvcHtmlString CustomTextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, | |
Expression<Func<TModel, TProperty>> expression, string customData) | |
{ | |
return htmlHelper.CustomTextBoxFor(expression, customData, (IDictionary<string, object>)null); | |
} | |
public static MvcHtmlString CustomTextBoxFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, | |
Expression<Func<TModel, TProperty>> expression, string customData, object htmlAttributes) | |
{ | |
IDictionary<string, object> attributes = HtmlHelper.AnonymousObjectToHtmlAttributes(htmlAttributes); |
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
var module = function () { | |
//private | |
var someFunction = function(message){ ... }, | |
privateFunction = function() { ... } | |
onInit = function(settings) { ... }; | |
return { | |
//public | |
init: onInit | |
publicFunction: someFunction |
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
$(document).foundation('reveal', { | |
//replace .secondary-close-reveal-modal with the class name of any element or button | |
dismissModalClass: 'close-reveal-modal, .secondary-close-reveal-modal' | |
}) |
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
#Must have extensions for Visual Studio 2013 | |
- [Entity Framework Power Tools (Beta)](http://msdn.microsoft.com/en-US/data/jj593170) | |
- [Git Diff Margin](http://visualstudiogallery.msdn.microsoft.com/cf49cf30-2ca6-4ea0-b7cc-6a8e0dadc1a8) | |
- [JavaScript Parser](https://code.google.com/p/js-addin/) | |
- [Web Essentials 2013](http://vswebessentials.com/) | |
- [Productivity Power Tools 2013](http://visualstudiogallery.msdn.microsoft.com/dbcb8670-889e-4a54-a226-a48a15e4cace?SRC=Home) | |
- [SideWaffle](http://t.co/MQXzCMPoVK) | |
# Nuget Packages |
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
// -------------------------------------------------------------------------------------- | |
// A More Modern Scale for Web Typography | |
// Based on this article: http://typecast.com/blog/a-more-modern-scale-for-web-typography | |
// -------------------------------------------------------------------------------------- | |
$body-font-size: 1em !default; | |
// Adjusts body typography to be default | |
// for each browser. | |
@mixin reset-body-font-size($size: 100%, $size-adjustment: 0.5) { |
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
class Player | |
def initialize | |
@max_health = 20 | |
@last_health = 20 | |
@critical_health = 10 | |
@direction = :forward | |
end | |
def play_turn(warrior) |
OlderNewer