###Setting up a Google Cloud Git Repo
// now with SourceTree bonus!
*Note: this guide is relavent only to repos natively hosted on Google Cloud
**Prereq:** - OSX - SourceTree - git - A Google App Engine / Cloud project
application: your-app-name | |
version: 1 | |
runtime: python27 | |
api_version: 1 | |
threadsafe: true | |
default_expiration: "30d" | |
handlers: | |
# web files |
###Setting up a Google Cloud Git Repo
// now with SourceTree bonus!
*Note: this guide is relavent only to repos natively hosted on Google Cloud
application: your-app-cdn | |
version: 1 | |
api_version: 1 | |
runtime: python27 | |
threadsafe: true | |
handlers: | |
# web files | |
- url: /(.*\.css) | |
mime_type: text/css |
for(var g in window) { | |
if(window.hasOwnProperty(g)) console.log(g); | |
} | |
// replace window with custom namespace if needed |
@font-face { | |
font-family:"FontName"; | |
src:url("fonts/fontname.eot"); | |
src:url("fonts/fontname.eot?#iefix") format("eot"),url("fonts/fontname.woff") format("woff"),url("fonts/fontname.ttf") format("truetype"),url("fonts/fontname.svg#fontname") format("svg"); | |
font-weight: 400; | |
font-style: normal; | |
} | |
@media screen and (-webkit-min-device-pixel-ratio:0) { // android fix | |
@font-face { | |
font-family:"FontName"; |
Verifying that +dustintheweb is my openname (Bitcoin username). https://onename.io/dustintheweb |
<!doctype html> | |
<html ng-app="myApp"> | |
<head>...</head> | |
<body ng-controller="myController" ng-class="toggleClass ? 'click-active' : 'click-inactive'"> | |
<div ng-include="/path/myInclude.html"></div> | |
</body> | |
</html> |
<!doctype html> | |
<html ng-app="myApp"> | |
<head>...</head> | |
<body ng-controller="myController" ng-class="(toggleClass1 ? 'class-1' : '')+' '+(toggleClass2 ? 'class-2' : '')"> | |
<div> | |
stuff... | |
<div class="button1" ng-click="$toggleClass1 = !$toggleClass1"></div> | |
stuff... | |
<div class="button2" ng-click="$toggleClass2 = !$toggleClass2"></div> | |
</div> |
// -- headroom --------------- | |
(function($) { | |
var headOffset = (app.obj.$section.filter('.feature').height() / 2) - (app.obj.$header.height()); | |
app.obj.$header.headroom({ | |
'offset': headOffset, | |
'tolerance': 5, | |
'classes': { | |
'initial': 'animated', | |
'pinned': 'slideDown', | |
'unpinned': 'slideUp' |
Ok I finally have this figured out.
First off, if you aren't familiar with the way GAE handles templating... it's a bit different than you would expect, but a pillar of getting this to work correctly.
This is what you want at the bottom of your app.yaml
- url: /
static_files: dist/index.html
upload: dist/index.html
expiration: "15m"