I hereby claim:
- I am mwjackson on github.
- I am mwjackson (https://keybase.io/mwjackson) on keybase.
- I have a public key whose fingerprint is 7850 E420 1BD3 4BA1 CED7 7B64 DBB8 1926 0183 C2A3
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| /** @jsx React.DOM */ | |
| var CommentBox = React.createClass({ | |
| loadCommentsFromServer: function() { | |
| $.ajax({ | |
| url: '/data/', | |
| dataType: 'json', | |
| success: function(data) { | |
| this.setState({commentData: data}); | |
| }.bind(this), | |
| error: function(xhr, status, err) { |
| public class StructureMapConfiguration | |
| { | |
| public static void Initialise(IEnumerable<Assembly> assembliesToScan, params Action<IInitializationExpression>[] extraConfigs) | |
| { | |
| ObjectFactory.Initialize(config => | |
| { | |
| config.Scan(scan => | |
| { | |
| foreach(var assembly in assembliesToScan) | |
| { |
| // first register all your routes with names | |
| MapRouteWithName(routes, | |
| "Homepage", // Route name | |
| "home", // URL with parameters | |
| new {controller = "Home", action = "Index"} // Parameter defaults | |
| ); | |
| private static void MapRouteWithName(RouteCollection routes, string name, string url, object defaults) | |
| { | |
| var route = routes.MapRoute(name, url, defaults); |
| /* | |
| Extending Backbone.js with a Controller class to place logic not belonging in either Models or Views | |
| */ | |
| Backbone.Controller = function (options) { | |
| this.model = (options && options.model) || {}; | |
| }; | |
| var controllerMixin = _.pick(Backbone.Model, "extend", "constructor"); | |
| _.extend(Backbone.Controller, controllerMixin); | |
| #!/usr/bin/env python | |
| from datetime import datetime | |
| import subprocess | |
| starttime = datetime.now() | |
| print "start time:", starttime | |
| numIterations = 1 |
| [diff] | |
| tool = p4merge | |
| [difftool "p4merge"] | |
| path = C:/Program Files/Perforce/p4merge.exe | |
| [merge] | |
| summary = true | |
| tool = p4merge | |
| [mergetool "p4merge"] | |
| path = C:/Program Files/Perforce/p4merge.exe | |
| keepBackup = false |