Skip to content

Instantly share code, notes, and snippets.

View jvanderbiest's full-sized avatar

Jonas Van der Biest jvanderbiest

View GitHub Profile
@jvanderbiest
jvanderbiest / OrganizeDropArtifacts.ps1
Created December 20, 2014 12:43
Organize Drop Artifacts for Codit.Blog.JsVsoBuild
Write-Host "Executing Script OrganizeDropArtifacts"
$PackageFolder = $env:TF_BUILD_BINARIESDIRECTORY + "\Package"
new-item $PackageFolder -itemtype directory
Write-Host "Created new folder $PackageFolder"
# Copy package directories + rename (generic for all packages)
Get-ChildItem -Path $env:TF_BUILD_BINARIESDIRECTORY -Filter "*_Package" -Recurse | Where-Object { $_.Attributes -eq "Directory"} | ForEach-Object {
Write-Host $_.FullName
$apicontext = New-AzureApiManagementContext -ResourceGroupName "Api-Default-West-Europe" -ServiceName "***"
Import-AzureApiManagementApi -SpecificationUrl "http://***.azurewebsites.net/swagger/docs/v1" -SpecificationFormat Swagger -Path "suffix" -ApiId importedid -Context $apicontext
param([string]$link, [string]$sas, [string]$tenantName)
Start-Sleep -s 15
$contentType = "application/vnd.swagger.link+json"
$apiId = $sas.substring($sas.indexOf("uid=") + 4);
$apiId = $apiId.substring(0, $apiId.indexOf("&ex="));
$apiUri = "https://$tenantName.management.azure-api.net/apis/{0}?api-version=2014-02-14-preview&import=true" -f $apiId
@jvanderbiest
jvanderbiest / bootstrap.ts
Last active April 12, 2020 18:13
Cordova webpack default configuration file
import * as Phaser from 'phaser';
import IntroScene from './scenes/intro.scene';
export class PhaserGame {
gameConfig = {
type: Phaser.AUTO,
width: 800,
height: 600,
physics: {
default: 'arcade',