Skip to content

Instantly share code, notes, and snippets.

This file has been truncated, but you can view the full file.
{
"openapi": "3.0.3",
"info": {
"title": "Support API",
"description": "Zendesk Support API endpoints",
"version": "2.0.0"
},
"tags": [
{
"name": "Attachments"
@ntziolis
ntziolis / @graphql-mesh+graphql++@graphql-tools+url-loader+6.8.2.patch
Created May 1, 2021 10:36
This patch uses the legacy `ws-graphql` protocol for subscriptions to grphql sources
diff --git a/node_modules/@graphql-mesh/graphql/node_modules/@graphql-tools/url-loader/index.cjs.js b/node_modules/@graphql-mesh/graphql/node_modules/@graphql-tools/url-loader/index.cjs.js
index 41a64e5..ccf8ec0 100644
--- a/node_modules/@graphql-mesh/graphql/node_modules/@graphql-tools/url-loader/index.cjs.js
+++ b/node_modules/@graphql-mesh/graphql/node_modules/@graphql-tools/url-loader/index.cjs.js
@@ -37,6 +37,7 @@ const FormData = _interopDefault(require('form-data'));
require('eventsource/lib/eventsource-polyfill');
const sseZ = require('sse-z');
const url = require('url');
+const subscriptionsTransportWs = require('subscriptions-transport-ws');
@ntziolis
ntziolis / gist:4ddfd83e5e2b478d4e4b14831464a5a1
Last active October 6, 2020 08:45
Strava Swagger file issues
This is relating the v3 swagger file:
https://developers.strava.com/swagger/swagger.json
The following issues prevent generation of a client that can
- update an athlete
- or download gpx/tcx data for routes
Put - /athlete
- weight parameter is defined as in path
- but weight is part of the path
@ntziolis
ntziolis / TopologySqlServerFormatter.cs
Created June 1, 2020 06:51
MiniProfiler SqlServerFormatter that can handle NetTopologySuite values when generating parameters
using System.Linq;
using NetTopologySuite.Geometries;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Text;
using System.Threading.Tasks;
using StackExchange.Profiling.SqlFormatters;
using StackExchange.Profiling;
diff --git a/node_modules/print-js/src/js/print.js b/node_modules/print-js/src/js/print.js
index 636eb17..0848ce6 100644
--- a/node_modules/print-js/src/js/print.js
+++ b/node_modules/print-js/src/js/print.js
@@ -59,6 +59,9 @@ function performPrint (iframeElement, params) {
} else {
// Other browsers
iframeElement.contentWindow.print()
+ if(Browser.isChrome()){
+ window.dispatchEvent(new Event("focus"));
import { FormArray, FormControl, Validators } from '@angular/forms';
import {
ArrayPropertyKey,
ArrayPropertyValue,
NgxFormWithArrayControls
} from 'ngx-sub-form';
import {
NgxSingleFieldSubFormComponent,
WrappedControlForm
@ntziolis
ntziolis / CustomAuthSPBatch.ts
Last active April 5, 2019 16:35
Multi Context Sharepoint
import { combine, getGUID, hOP, isUrlAbsolute, mergeHeaders } from '@pnp/common';
import { Logger, LogLevel } from '@pnp/logging';
import { BearerTokenFetchClient } from '@pnp/nodejs';
import { SPBatch, toAbsoluteUrl } from '@pnp/sp';
import { IAuthResponse } from 'node-sp-auth';
export class CustomAuthSPBatch extends SPBatch {
constructor(baseUrl: string, private headers: IAuthResponse["headers"]) {
super(baseUrl);