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
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
| //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 |
| 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) { |
| <?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. |
| class Base : INotifyPropertyChanged | |
| { | |
| public event PropertyChangedEventHandler PropertyChanged; | |
| protected virtual void OnPropertyChanged(string propertyName) | |
| { | |
| this.VerifyPropertyName(propertyName); | |
| PropertyChangedEventHandler handler = this.PropertyChanged; | |
| if (handler != null) | |
| { |
Git BashC:\Program Files (x86)\Git\bin\sh.exe--login -i$(SolutionDir)| 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({ |
| 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')); |
| (&(anr=someName)(&(objectCategory=person)(objectClass=user)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))) |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using System.Web.Http; | |
| using System.Web.Security; | |
| using System.Web.SessionState; | |
| namespace TestyMesty | |
| { |