Skip to content

Instantly share code, notes, and snippets.

View aarongustafson's full-sized avatar
👋
he/him/his

Aaron Gustafson aarongustafson

👋
he/him/his
View GitHub Profile
{
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"siteName": {
"type": "string",
"metadata": {
"description": "The name of the web app that you wish to create."
}
},
var render = function (encoding) {
return function (page, req, res) {
if (encoding && !req.acceptsEncodings(encoding)) {
return false;
}
var content = getContent(page, encoding);
if (content) {
res.set('Content-Encoding', encoding);
res.set('Content-Type', 'text/html');
res.end(content, encoding ? 'binary' : null);
var gulp = require('gulp');
gulp.task('watch', function() {
gulp.watch('source/scss/**', ['styles']);
gulp.watch('source/js/**', ['scripts']);
gulp.watch('source/images/**', ['images']);
gulp.watch('source/templates/**', ['html']);
gulp.watch('source/data/**', ['html']);
gulp.watch('source/webconfigs/**/*', ['webconfigs']);
gulp.watch('deploy/*.html', ['a11y']);
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';
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',
var gulp = require('gulp'),
path = require('path'),
folder = require('gulp-folders'),
gulpIf = require('gulp-if'),
insert = require('gulp-insert'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
notify = require('gulp-notify'),
rename = require('gulp-rename'),
source_folder = 'source/js',
* {
margin-top: 0;
margin-bottom: 0;
box-sizing: border-box;
}
* + * {
margin-top: 1.375rem;
}
* {
margin-top: 0;
margin-bottom: 0;
box-sizing: border-box;
}
* + * {
margin-top: 22px;
margin-top: 1.375rem;
}
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');
$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)))