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
public class Thing | |
{ | |
[Key] | |
public int Id { get; set; } | |
public int ParentThingId { get; set; } | |
public virtual ParentThing Parent { get; set; } | |
} | |
public class ThingConfiguration : EntityTypeConfiguration<Thing> |
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
#!/usr/local/bin/ruby -w | |
require 'rubygems' | |
require 'rawline' | |
puts "*** Inline Editor Test Shell ***" | |
puts " * Press CTRL+X to exit" | |
puts " * Press CTRL+C to clear command history" | |
puts " * Press CTRL+D for line-related information" | |
puts "Press CTRL+E to view command history" |
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.Collections.Generic; | |
using System.ServiceModel; | |
using System.ServiceModel.Web; | |
using Rock.Models.Crm; | |
[ServiceContract] | |
public interface IPersonService | |
{ | |
/// <summary> | |
/// 'GET' /api/v1/people.json |
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.ComponentModel.Composition.Hosting; | |
using System.Data.Services; | |
using System.Linq; | |
using System.ServiceModel.Activation; | |
using System.Web; | |
using System.Web.Routing; | |
using System.Web.Security; | |
using System.Web.SessionState; |
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.Web.Mvc; | |
public interface IRestService<TEntity> | |
{ | |
ActionResult List(string format = ""); | |
ActionResult Show(int id, string format = ""); | |
ActionResult Show(Guid guid, string format = ""); | |
ActionResult Create(TEntity entity, string format = ""); | |
ActionResult Update(TEntity entity, int id, string format = ""); |
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
<ul class="summary-stats"> | |
<li class="odd"><span id="count">0</span>Riders</li> | |
<li><span id="dollars">0</span>Raised</li> | |
<li class="odd"><span id="days">0</span>Days Left</li> | |
<li><a href="http://207miles.com/the-ride" title="Register Here">Register Here</a></li> | |
</ul> |
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
error module.js:326 throw new Error("Cannot find module '" + request + "'"); ^ | |
error Error: Cannot find module '/usr/local/src/jasonoffutt/Jordan_Rift/jordan_rift/app.js' at Function._resolveFilename (module.js:326:11) at Function.resolve (module.js:359:19) at Object.rewrite (/root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/lib/cli.js:75:36) at EventEmitter.run (/root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/lib/carapace.js:164:16) at runAndReport (/root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/bin/carapace:68:12) at /root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/node_modules/async/lib/async.js:126:25 at /root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/bin/carapace:58:23 at [object Object]. (/root/haibu-orchestra/node_modules/haibu/node_modules/haibu-carapace/lib/plugins/coffee.js:31:11) at [object Object].emit (events.js:64:17) at fs.js:820:12 | |
error node.js:134 throw e; // process.nextTick error, or 'e |
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
// Models will house domain specific functionality. They should know how to do thing that are | |
// within their domain, authorize and validate themselves. Application logic, however, ought | |
// to be pushed out to the Presenter. | |
var BlogPost = Backbone.Model.extend({ | |
initialize: function(options) { | |
this.set({ foo: 'bar' }, { silent: true }); | |
}, | |
// Per Backbone's docs, `validate` should only return something if there is a validation error. | |
// If so, I've found it useful to return an array of hashes with the key equaling the property | |
// that threw an error. That way it can later be accessed via indexer. |
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
<configuration> | |
<appSettings> | |
<clear/> | |
<add key="RepositoryType" value="Rock.Tests.Fakes.FakeAttributeRepository,Rock.Tests"/> | |
</appSettings> | |
</configuration |
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 () { | |
$('.disable-on-edit').click(function () { | |
var id = $(this).parents('.block-instance').attr('id'); | |
$(document).trigger('EDIT_CLICKED', id); | |
}); | |
$('.save').click(function () { | |
$(document).trigger('EDIT_COMPLETE'); | |
}); |
OlderNewer