###Read This http://rogerdudler.github.io/git-guide/
###Only Run First Time
git config --global user.name "BLAH"
git config --global user.email "[email protected]"
git init
###Run Everytime
git add -A
| 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) { |
| //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 |
| CREATE EXTERNAL TABLE 'path/to/flat/file.dat' | |
| USING ( delim ',' datestyle 'YMD' datedelim '-' REMOTESOURCE 'ODBC' requireQuotes true quotedvalue 'yes' LOGDIR 'path/to/log/directory/' nullvalue '') AS | |
| SELECT * | |
| FROM MonkeyPants |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Text.RegularExpressions; | |
| using System.Xml; | |
| using System.Xml.Linq; | |
| namespace Formix.Utils | |
| { | |
| class Program |
| # 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_=/.../...) |
###Read This http://rogerdudler.github.io/git-guide/
###Only Run First Time
git config --global user.name "BLAH"
git config --global user.email "[email protected]"
git init
###Run Everytime
git add -A
| Ext.define('App.controller.exampleController', { | |
| extend: 'Ext.app.Controller', | |
| init: function () { | |
| this.control({ | |
| '#someButton': { | |
| click: this.buttonAction | |
| } | |
| }); | |
| }, | |
| buttonAction: function (btn) { |
| (?<!//)(?>console.log)(.*)(?=;) |