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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 16, | |
// font family with optional fallbacks | |
fontFamily: 'Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
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 Model = Backbone.Model.extend({ | |
validation: { | |
dependsOn: function(value, attributeName, computedState) { | |
// computedState is the model's state after the current operation completes. | |
// You need to get the value of the other attribute from this, and not from the | |
// model it self because if both attributes are being set at the same time, | |
// model's value is not yet updated. | |
if(computedState.someAttribute === 'someValue') { |
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
<UserSettings> | |
<ApplicationIdentity version="10.0"/> | |
<ToolsOptions> | |
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/> | |
</ToolsOptions> | |
<Category name="Database Tools" RegisteredName="Database Tools"/> | |
<Category name="Environment_Group" RegisteredName="Environment_Group"> | |
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package"> | |
<PropertyValue name="Version">2</PropertyValue> | |
<FontsAndColors Version="2.0"> |
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
Get["/embedded"] = x => { | |
var model = new RatPack { FirstName = "Embedded" }; | |
return View[model]; | |
}; | |
// in the view factory | |
public Action<Stream> this[dynamic model] | |
{ | |
get { return this.GetRenderedView(model.GetType().Name, model); } | |
} |
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
# Remove stuff we don't want | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
# Add jQuery | |
run "curl http://code.jquery.com/jquery-1.4.2.min.js > public/javascripts/jquery-1.4.2.min.js" | |
run "curl http://github.com/rails/jquery-ujs/raw/master/src/rails.js > public/javascripts/rails.js" | |
# Create a readme file | |
run "echo TODO: Explain yourself! > README.md" |
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
/// <summary> | |
/// FBId | |
/// </summary> | |
/// <param name="__">List</param> | |
/// <param name="___">Booking</param> | |
/// <returns>ID</returns> | |
internal int FBId(ArrayList __,IWBSBooking ___) | |
{ | |
int ____=-1;if(__!=null&&___!=null)foreach(IWBSBooking _ in __){if((_.CreatedUser_Id==___.CreatedUser_Id)&&(_.CreatedDateTime==___.CreatedDateTime)&&(_.StartDateTime==___.StartDateTime)&&(_.EndDateTime==___.EndDateTime)&&(WSys.BitFlag.CheckFlag(_.Flag,(int)(0x01 << 5)))){return _.WBSBookingID;}}return ____; | |
} |
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 interface IPresenter | |
{ | |
void Initialize(); | |
object UI { get; } | |
} |
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 class Prescription | |
{ | |
public DateTime? CeasedAt { 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
public class BlogService | |
{ | |
private Repository _repository; | |
public BlogService() | |
{ | |
_repository = new Repository(); | |
} | |
public void ProcessComment(Comment comment) |
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 partial class Form : System.Windows.Forms.Form | |
{ | |
public Form() | |
{ | |
InitializeComponent(); | |
} | |
private void buttonStart_Click(object sender, EventArgs e) | |
{ | |
StartAsyncJob(); |