Skip to content

Instantly share code, notes, and snippets.

View jongio's full-sized avatar

Jon Gallant jongio

View GitHub Profile
:: 1. KuduSync
IF /I "%IN_PLACE_DEPLOYMENT%" NEQ "1" (
call :ExecuteCmd "%KUDU_SYNC_CMD%" -v 50 -f "%DEPLOYMENT_SOURCE%/_site" -t "%DEPLOYMENT_TARGET%" -n "%NEXT_MANIFEST_PATH%" -p "%PREVIOUS_MANIFEST_PATH%" -i ".git;.hg;.deployment;deploy.cmd"
IF !ERRORLEVEL! NEQ 0 goto error
)
bash -c "curl -O https://raw.githubusercontent.com/ritterim/jekyll-azure-deploy/master/.deployment && curl -O https://raw.githubusercontent.com/ritterim/jekyll-azure-deploy/master/deploy.cmd && curl -O https://raw.githubusercontent.com/ritterim/jekyll-azure-deploy/master/getruby.cmd"
pbiviz start
{
"compilerOptions": {
"allowJs": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "ES5",
"sourceMap": true,
"out": "./.tmp/build/visual.js"
},
"files": [
@jongio
jongio / typingsd3
Last active December 15, 2016 11:26
typings install d3=github:DefinitelyTyped/DefinitelyTyped/d3/d3.d.ts#6e2f2280ef16ef277049d0ce8583af167d586c59 --global --save
npm i -g typings
@jongio
jongio / d3v35
Created November 17, 2016 15:04
npm i d3@3.5.5 --save
var crypto = require('crypto');
var https = require('https');
var generateSasToken = function (resourceUri, signingKey, policyName, expiresInMins) {
resourceUri = encodeURIComponent(resourceUri.toLowerCase()).toLowerCase();
// Convert mins to seconds and get expires code
var expires = (Date.now() / 1000) + expiresInMins * 60;
expires = Math.ceil(expires);
this.settings = {
minValue: getValue<number>(objects, 'text', 'minValue', 0), // The gauge minimum value.
maxValue: getValue<number>(objects, 'text', 'maxValue', 100), // The gauge maximum value.
circleThickness: getValue<number>(objects, 'circle', 'circleThickness', .05, .9), // The outer circle thickness as a percentage of it's radius.
circleFillGap: getValue<number>(objects, 'circle', 'circleFillGap', .05), // The size of the gap between the outer circle and wave circle as a percentage of the outer circles radius.
circleColor: getValue<Fill>(objects, 'circle', 'circleColor', { solid: { color: "#178BCA" } }).solid.color, // The color of the outer circle.
waveHeight: getValue<number>(objects, 'wave', 'waveHeight', .05), // The wave height as a percentage of the radius of the wave circle.
waveCount: getValue<number>(objects, 'wave', 'waveCount', 5), // The number of full waves per width of the wave circle.
waveRiseTime: getValue<number>(objects, 'wave', 'waveRi
{
"dataRoles": [
{
"displayName": "Value",
"name": "value",
"kind": "Measure"
}
],
"dataViewMappings": [