- Tools > External Tools
- Add
- Settings:
- title:
Git Bash - command:
C:\Program Files (x86)\Git\bin\sh.exe - arguments:
--login -i - initial directory:
$(SolutionDir)
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
| var express = require('express'), | |
| app = express(), | |
| bodyParser = require('body-parser'), | |
| compress = require('compression'); | |
| app.use(bodyParser.urlencoded({ extended: true })); | |
| app.use(compress()); | |
| app.use(express.static('public')); |
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
| var gulp = require('gulp'), | |
| msbuild = require('gulp-msbuild'), | |
| githubRelease = require('gulp-github-release'), | |
| zip = require('gulp-zip'), | |
| series = require('run-sequence'), | |
| fs = require('fs'); | |
| gulp.task('build', function () { | |
| return gulp.src('./SOLUTION_NAME.sln') | |
| .pipe(msbuild({ |
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 Base : INotifyPropertyChanged | |
| { | |
| public event PropertyChangedEventHandler PropertyChanged; | |
| protected virtual void OnPropertyChanged(string propertyName) | |
| { | |
| this.VerifyPropertyName(propertyName); | |
| PropertyChangedEventHandler handler = this.PropertyChanged; | |
| if (handler != 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
| <?xml version="1.0"?> | |
| <!-- | |
| For more information on how to configure your ASP.NET application, please visit | |
| http://go.microsoft.com/fwlink/?LinkId=169433 | |
| --> | |
| <configuration> | |
| <!-- | |
| For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367. | |
| The following attributes can be set on the <httpRuntime> tag. |
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
| var fs = require('fs'), | |
| //root url to start crawl from, it will only look for hashes in a links for the specified baseUrl | |
| //so for instance, if you had a link to some other website http://www.abc.com/something-here it's NOT going to parse it | |
| baseUrl = 'http://localhost:3000/', | |
| //folder to save the html pages to | |
| saveFolder = 'public/_escaped_fragment_/', | |
| //array containing every link already parsed | |
| parsedLinks = []; | |
| //method to parse given url/hash and iterator that recursively calls the additional pages | |
| var checkPage = function (page, url, hash) { |
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
| //declarations | |
| var express = require('express'); | |
| var app = express(); | |
| var bodyParser = require('body-parser'); | |
| var compress = require('compression'); | |
| //catch all get requests and determine if there is an escaped_fragment, if so reroute to a relative folder public/_escaped_fragment_/{}.html | |
| //if you have more complex hashes than `#!Something` then you may have to mod this logic to suit your needs. | |
| app.get("*", function (req, res, next) { | |
| if (req.query._escaped_fragment_) { | |
| //pull file from escaped fragments folder and serve it |
http://www.slidequest.com/Taboca/70ang
node is now "nodejs" so you'll receive errors with forever unless you add simlink: sudo ln -s "$(which nodejs)" /usr/bin/node
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 should be inserted into the server {...} block. | |
| # These lines rewrite the url to access the snapshots folder, or where ever you keep | |
| # you prerendered pages (mainly used when working with pages rendered by JavaScript). | |
| # | |
| # example.com/?_escaped_fragment_= --> example.com/snapshots/index.html | |
| # example.com/?_escaped_fragment_=/blog --> example.com/snapshots/blog.html | |
| # example.com/?_escaped_fragment_=/blog/post --> example.com/snapshots/blog/post.html | |
| # Captures URLs with any amount of levels (?_escaped_fragment_=/.../...) |
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
| msbuild myproject.csproj /p:DeployOnBuild=true /p:PublishProfile=MyPublishProfile |