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
| exports.config = | |
| files: | |
| javascripts: | |
| joinTo: | |
| 'javascripts/app.js': /^app/ | |
| 'javascripts/vendor.js': /^vendor/ | |
| 'test/javascripts/test.js': /^test[\\/](?!vendor)/ | |
| 'test/javascripts/test-vendor.js': /^test[\\/](?=vendor)/ | |
| order: | |
| before: [ |
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
| class FilteringAndPagingCollection extends Collection | |
| pagesize: 25 # overriden in the child class | |
| constructor: (args) -> | |
| Backbone.Collection.prototype.constructor.apply(@, arguments) # called so backbone wires up & calls initialize | |
| @filteredmodels = @models | |
| @on 'reset', @resetfilteredmodels, @ # if the collection is reset, we need to reset the filtered version too | |
| @on 'search sort', @resetpaging, @ | |
| resetfilteredmodels: -> | |
| @filteredmodels = @models | |
| @resetpaging() |
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
| <head> | |
| <title>Your meteor app</title> | |
| </head> | |
| <body> | |
| {{> setup}} | |
| </body> | |
| <template name="setup"></template> |
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
| Template.hacks_detail.hack = -> Hacks.findOne({ _id : Session.get('hack_id') }) | |
| Template.hacks_detail.creatorName = -> | |
| owner = Meteor.users.findOne @owner | |
| if owner then displayName(owner) else '' |
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 WebApplication : System.Web.HttpApplication | |
| { | |
| protected void Application_Start() | |
| { | |
| RouteTable.Routes.MapRoute("HttpProxy", "proxy/{*path}", new { controller = "Proxy", action = "Http" }) | |
| } | |
| } |
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
| WebSecurity.InitializeDatabaseConnection("fbRealtimeWebContext", "UserProfile", "UserId", "UserName", autoCreateTables: true); |
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 UsersContext : DbContext | |
| { | |
| public UsersContext() | |
| : base("cf5WebContext") | |
| { | |
| } | |
| public DbSet<UserProfile> UserProfiles { get; set; } | |
| } |
NewerOlder