This file contains 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'), | |
newer = require('gulp-newer'), | |
imagemin = require('gulp-imagemin'), | |
notify = require('gulp-notify'), | |
webp = require('gulp-webp'); | |
gulp.task('images', function() { | |
var source = './source/images', | |
destination = './deploy/i'; |
This file contains 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'), | |
htmlmin = require('gulp-htmlmin'), | |
rename = require('gulp-rename'), | |
notify = require('gulp-notify'), | |
mustache = require('gulp-mustache'), | |
mustache_vars = require('../../source/data/mustache_vars.json'); | |
gulp.task('html', function() { | |
var source = './source/templates/*.mustache', | |
destination = './deploy', |
This file contains 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
* { | |
margin-top: 0; | |
margin-bottom: 0; | |
box-sizing: border-box; | |
} | |
* + * { | |
margin-top: 1.375rem; | |
} |
This file contains 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
* { | |
margin-top: 0; | |
margin-bottom: 0; | |
box-sizing: border-box; | |
} | |
* + * { | |
margin-top: 22px; | |
margin-top: 1.375rem; | |
} |
This file contains 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'), | |
sass = require('gulp-sass'), | |
autoprefixer = require('gulp-autoprefixer'), | |
minifycss = require('gulp-clean-css'), | |
notify = require('gulp-notify'), | |
rename = require('gulp-rename'), | |
csso = require('gulp-csso'), | |
shorthand = require('gulp-shorthand'), | |
uncss = require('gulp-uncss'); |
This file contains 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
$Table = Get-AzureStorageTable -Name $tableName -Context $Context | |
$entity = New-Object -TypeName Microsoft.WindowsAzure.Storage.Table.DynamicTableEntity -ArgumentList $partitionKey, $rowKey | |
$entity.Properties.Add("status", $status) | |
$Table.CloudTable.Execute([Microsoft.WindowsAzure.Storage.Table.TableOperation]::InsertOrMerge(($entity))) |
This file contains 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
$deploy = New-AzureRmResourceGroupDeployment -ResourceGroupName $(Get-ResourceGroupName) ` | |
-TemplateFile $TemplateFile ` | |
-TemplateParameterObject $parameters |
This file contains 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
$TemplateFile = Join-Path (pwd) "templates/deployment.json" | |
$parameters = @{ | |
"hostingPlanName" = "${siteName}-hostPlan"; | |
"repo" = $repo; | |
"siteName" = $siteName; | |
"python" = $python; | |
} |
This file contains 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
$Table = Get-AzureStorageTable -Name $tableName -Context $Context | |
$query = New-Object Microsoft.WindowsAzure.Storage.Table.TableQuery | |
$query.FilterString = "status eq '${status}'" | |
$entities = $Table.CloudTable.ExecuteQuery($query) |
This file contains 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"?> | |
<configuration> | |
<system.web> | |
<compilation debug="false" targetFramework="4.0" /> | |
</system.web> | |
<system.webServer> | |
<urlCompression doStaticCompression="true" doDynamicCompression="true" dynamicCompressionBeforeCache="false" /> | |
<!-- add a mime type for br, otherwise we get 404 --> | |
<staticContent> |