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
import { LocalStorageService } from 'angular-2-local-storage'; | |
import { NgModule } from '@angular/core'; | |
import { ApolloModule, APOLLO_OPTIONS, Apollo } from 'apollo-angular'; | |
import { HttpLinkModule, HttpLink } from 'apollo-angular-link-http'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import { ApolloLink } from 'apollo-link'; | |
// const uri = 'https://o5x5jzoo7z.sse.codesandbox.io/graphql'; //our test Graphql Server which returns rates | |
const uri = 'https://localhost:5001/graphql'; |
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
using System; | |
using System.Threading.Tasks; | |
using GraphQL; | |
using GraphQL.Types; | |
using Microsoft.AspNetCore.Authorization; | |
using Microsoft.AspNetCore.Mvc; | |
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
import { LocalStorageService } from 'angular-2-local-storage'; | |
import { NgModule } from '@angular/core'; | |
import { ApolloModule, APOLLO_OPTIONS, Apollo } from 'apollo-angular'; | |
import { HttpLinkModule, HttpLink } from 'apollo-angular-link-http'; | |
import { InMemoryCache } from 'apollo-cache-inmemory'; | |
import { ApolloLink } from 'apollo-link'; | |
import { environment } from 'src/environments/environment'; | |
// const uri = 'https://o5x5jzoo7z.sse.codesandbox.io/graphql'; //our test Graphql Server which returns rates | |
const uri = environment.serverUrl + '/graphql'; |
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
import { Component } from '@angular/core'; | |
import { AngularFireAuth } from '@angular/fire/auth'; | |
import { HttpClient, HttpHeaders } from '@angular/common/http'; | |
import gql from 'graphql-tag'; | |
import { Apollo } from 'apollo-angular'; | |
const gqlTestHelloWorld = gql` | |
query{ | |
helloworld(newArg: 21) | |
} |
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
import { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { MatButtonModule } from '@angular/material/button'; | |
import { MatCheckboxModule } from '@angular/material/checkbox'; | |
import { MatListModule } from '@angular/material/list'; | |
import { MatToolbarModule } from '@angular/material/toolbar'; | |
import { MatCardModule } from '@angular/material/card'; | |
import { MatInputModule } from '@angular/material/input'; | |
import { MatDividerModule } from '@angular/material/divider'; | |
import {MatBadgeModule} from '@angular/material/badge'; |
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
#Part 1 - Set up credentials | |
$VMLocalAdminUser = "LocalAdminUser" | |
$VMLocalAdminSecurePassword = ConvertTo-SecureString "NotARealPassword!@#$%433" -AsPlainText -Force | |
$Credential = New-Object System.Management.Automation.PSCredential ($VMLocalAdminUser, $VMLocalAdminSecurePassword); | |
#Part 2 - create RG and VM | |
New-AzResourceGroup -Name todeleteRG -Location EastUS |
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
// part 1 - get this query from advanced find | |
var xml = `<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> | |
<entity name="new_widget"> | |
<attribute name="new_widgetid" /> | |
<attribute name="createdon" /> | |
<attribute name="new_isblue" /> | |
<order attribute="createdon" descending="false" /> | |
</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
// part 1 - get this query from advanced find | |
var xml = `<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"> | |
<entity name="new_widget"> | |
<attribute name="new_widgetid" /> | |
<attribute name="createdon" /> | |
<attribute name="new_isblue" /> | |
<order attribute="createdon" descending="false" /> | |
</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
git config --global user.email $(Build.RequestedForEmail) | |
git config --global user.name $(Build.RequestedFor) | |
git switch $(Build.SourceBranchName) | |
git add -A | |
git commit -m "changes exported from dev" | |
git push https://$env:SYSTEM_ACCESSTOKEN@dev.azure.com/wai0211/TestProj/_git/Zoo |
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
try | |
{ | |
"Logging in to Azure..." | |
Connect-AzAccount -Identity | |
} | |
catch { | |
Write-Error -Message $_.Exception | |
throw $_.Exception | |
} |