public string GetSomething()
{
return something;
}
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
| require.config({ | |
| baseUrl: '/backbone-tests/', | |
| paths: { | |
| 'jquery' : '/app/libs/jquery', | |
| 'underscore' : '/app/libs/underscore', | |
| 'backbone' : '/app/libs/backbone', | |
| 'mocha' : 'libs/mocha', | |
| 'chai' : 'libs/chai', | |
| 'chai-jquery' : 'libs/chai-jquery', | |
| 'models' : '/app/models' |
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
| // This is built on top of MarionetteJS' [Controller](https://github.com/marionettejs/backbone.marionette/blob/master/docs/marionette.controller.md) | |
| // object, which includes Backbone.Events in it, to | |
| // trigger events. | |
| // | |
| // I think this is a sort of statemachine. But honestly, I'm not entirely | |
| // sure about that. I've had very little luck / experience with statemachines | |
| // in my career. | |
| // | |
| // Would love to get feedback on this. |
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
| cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/ | |
| git clone git://github.com/wbond/sublime_package_control.git Package\ Control | |
| cd Package\ Control | |
| git checkout python3 | |
| # restart Sublime Text 3 and you should have Package Control working |
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
| { | |
| {I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It | |
| is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as | |
| you did, the {internet|net|web} will be {much more|a lot more} | |
| useful than ever before.| | |
| I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!| | |
| {I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch} | |
| your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any? | |
| {Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe. | |
| Thanks.| |
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
| // @license http://opensource.org/licenses/MIT | |
| // copyright Paul Irish 2015 | |
| // Date.now() is supported everywhere except IE8. For IE8 we use the Date.now polyfill | |
| // github.com/Financial-Times/polyfill-service/blob/master/polyfills/Date.now/polyfill.js | |
| // as Safari 6 doesn't have support for NavigationTiming, we use a Date.now() timestamp for relative values | |
| // if you want values similar to what you'd get with real perf.now, place this towards the head of the page | |
| // but in reality, you're just getting the delta between now() calls, so it's not terribly important where it's placed |
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
| // store.js | |
| App.Adapter = DS.RESTAdapter.reopen({ | |
| bulkCommit: false, | |
| url: 'http://localhost:5000', | |
| namespace: 'api', | |
| corsWithCredentials: true, | |
| headers: { | |
| 'Accept': 'application/vnd.vendor+json;version=1', | |
| 'Content-type': 'application/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
| The Ember Inspector is a plug-in for the Chrome developer tools that makes understanding and debugging your Ember.js application a snap. | |
| After installing this extension, you'll be able to easily: | |
| - View all of the routes defined in your application. | |
| - Reference Ember's naming conventions for your URLs, including what to name your controllers, templates, routes and more. | |
| - Overlay your application with information about what templates, controllers, and models are currently being rendered. | |
| - Inspect the objects in your application, such as models and controllers, with UI that fully supports Ember features such as bindings and computed properties. | |
| - Make your application's objects available in the console as the $E variable. |
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
| <HTabControl Grid.Row="1" ItemsSource="{Binding Path=OutNursingPartStatementFolderList}" SelectedItem="{Binding Path=SelectedNursingPartFolder}" | |
| SelectedValuePath="NRST_FLDR_CTG_CD" DisplayMemberPath="FLDR_NM" ItemContainerStyle="{StaticResource treeItemStyle}"> | |
| <i:Interaction.Triggers> | |
| <i:EventTrigger EventName="SelectionChanged"> | |
| <i:InvokeCommandAction Command="{Binding Path=SelectionFolderChangedCommand}" /> | |
| </i:EventTrigger> | |
| </i:Interaction.Triggers> | |
| </HTabControl> | |
Let's say we have a stream that represents the value of a property on some object.
var stream = new PathStream(post, 'title');When we subscribe to this stream, we want to get its current value right away, and then any subsequent changes to the value.
In order to do this, we implement PathStream to hold onto a reference to the current value, and implement its subscribe to always emit the current value right away.