I hereby claim:
- I am aweigold on github.
- I am weigold (https://keybase.io/weigold) on keybase.
- I have a public key ASAb_1RI8NanhU7ECEJ9Y9Y4aqdosflDQqoFBBUGa2idDgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
$rootScope.$on('$stateChangeStart', function(evt, to, params){ | |
var isError = $windowProvider.$get().document.querySelector("meta[name='yourErrorPageTag']"); | |
if (isError) { | |
evt.preventDefault(); | |
$windowProvider.$get().location = "/apppath/index.html" + $windowProvider.$get().location.hash; | |
} | |
}); |
<meta name="yourErrorPageTag" content="true" /> | |
<base href="/apppath/" /> |
<!-- build:include:error404,error404 error/base.html --><!-- /build--> |
<div class="page-container"> | |
<div class="site-content"> | |
<!-- build:remove:error400,error404 --> | |
<div ui-view="mainBody"></div> | |
<!-- /build --> | |
<!-- build:include:error400 error/400.html --><!-- /build--> | |
<!-- build:include:error404 error/404.html --><!-- /build--> | |
</div> | |
</div> |
// 'paths' is setup earlier in my grunt file | |
processhtml: { | |
mainapp: { | |
options: { | |
strip: true, | |
data: { | |
year: new Date().getFullYear(), | |
localCssPath: paths.minCssName, | |
localJsPath: paths.minJsName | |
} |
--run_test=<test_name> |
language: java | |
after_success: | |
- "./gradlew jacocoTestReport coveralls" | |
- "./gradlew groovydoc buildSite" | |
- ".travis/deploy_ghpages.sh" | |
env: | |
global: | |
- GH_REF: github.com/aweigold/lemming.git | |
- secure: abcAB..... |
#!/bin/bash | |
cp -Rvf build/resources/site gh-pages | |
cd gh-pages | |
git init | |
git config user.name "travis-ci" | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "Publishing site from Travis CI build $TRAVIS_BUILD_NUMBER" | |
git push --force --quiet "https://${GH_TOKEN}@${GH_REF}" master:gh-pages > /dev/null 2>&1 | |
echo "Published site to gh-pages. See http://aweigold.github.io/lemming" |
<script type="text/javascript"> | |
var req = new XMLHttpRequest(); | |
req.onload = function() { | |
var markdownString = this.responseText; | |
marked.setOptions({ | |
highlight: function (code, lang) { | |
if (lang == undefined){ | |
return code; | |
} |