This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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> |
This file contains hidden or 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
// Caching fallback from ServiceWorker to sessionStorage | |
function setCacheItem(){} | |
function getCacheItem(){ return undefined; } | |
if ( ! ( 'serviceWorker' in window.navigator ) ) | |
{ | |
var cache = window.sessionStorage; | |
setCacheItem = function( key, text ) { | |
return cache.setItem( key, text ); | |
}; | |
getCacheItem = function( key ) { |
This file contains hidden or 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
(new Date()).getTime() + ''; |
This file contains hidden or 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
// Cache Key | |
const VERSION = '{{BUILD_TIME}}'; |
This file contains hidden or 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
function fetchRequest( req, options ) | |
{ | |
return fetch( req, options ).then(res => { | |
if ( res.ok || res.type === 'opaque' ) | |
{ | |
const clone = res.clone(); | |
openCacheFor(req).then(cache => { | |
return cache.put(req, clone); | |
}); | |
} |
This file contains hidden or 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
@keyframes count-issue { | |
0% { | |
background-color: #f5baba; | |
} | |
100% { | |
background-color: #fff; | |
} | |
} | |
@keyframes count-good { | |
0% { |
This file contains hidden or 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
<strong id="e-d" aria-live="polite" aria-atomic="true">Your description should be between 10 and 500 characters long.</strong> |