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 T MakeNewTest<T>(Expression<Func<T, string>> details) where T : class, new() | |
| { | |
| var obj = new T(); | |
| details.UnwrapPropertyExpression().SetValue(obj, "initial", null); | |
| return obj; | |
| } | |
| public void Main() | |
| { | |
| var it = MakeNewTest<Test>(_ => _.MyValue); |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Moving a Segment</title> | |
| <script type="text/javascript" src="http://paperjs.org/static/js/paper.js"></script> | |
| <script type="text/paperscript" canvas="canvas"> | |
| var center = new Point(200, 200); | |
| var house = null; |
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
| routes = require('./routes').addRoutes(app, storage) |
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 DocumentStoreRegistry : Registry | |
| { | |
| public DocumentStoreRegistry() | |
| { | |
| For<IDocumentStore>().Singleton() | |
| .AddInstances(_ => | |
| _.ConstructedBy(ctor => | |
| { | |
| var store = new DocumentStore { Url = ConfigurationManager.AppSettings["RAVENHQ_CONNECTION_STRING"] }; | |
| store.Initialize(); |