- npm i graphql-voyager
- npm i express-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
const extensions = document.querySelectorAll('.carousel-item'); | |
extensions.forEach(e => { | |
const image = e.querySelector('img'); | |
if (image === null) return; | |
addDownloadLink(image); | |
}); | |
/** | |
* @param image {HTMLImageElement} |
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 Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.Diagnostics; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using Microsoft.CodeAnalysis.CSharp; | |
using Microsoft.CodeAnalysis.CodeFixes; | |
using System.Collections.Generic; | |
using System.Collections.Immutable; | |
using System.Threading.Tasks; | |
using System.Threading; | |
using System.Linq; |
This file has been truncated, but you can view the full file.
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
[ | |
"https://registry.npmjs.org/1to2/-/1to2-1.0.0.tgz", | |
"https://registry.npmjs.org/7zip-bin/-/7zip-bin-0.0.3.tgz", | |
"https://registry.npmjs.org/7zip-bin-win/-/7zip-bin-win-2.1.0.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-2.2.3.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-2.4.1.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-2.4.10.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-2.4.6.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-2.4.7.tgz", | |
"https://registry.npmjs.org/@angular/compiler-cli/-/compiler-cli-4.0.0.tgz", |
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
const glob = require("glob"); | |
const fs = require('fs'); | |
const mainDir = 'angular-cli-demo'; | |
const dups = {}; | |
const packageJsons = glob.sync(`${mainDir}/node_modules/**/package.json`); | |
for (const packageJson of packageJsons) { | |
try { | |
const json = require(packageJson); | |
if(!json.name || !json.version) { |
Program.cs
using BenchmarkDotNet.Running;
namespace Benchmarks
{
class Program
{
static void Main()
{
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
class PromiseQueue { | |
constructor(tasks = []) { | |
this.task = Promise.resolve(); | |
for (const { func, args } of tasks) { | |
this.run(func, ...args); | |
} | |
} | |
run(func, ...args) { | |
return new Promise((resolve, reject) => { |
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
PuppeteerSharp.Connection:Trace: Send ► 1 Method Target.setDiscoverTargets Params { discover = True } | |
PuppeteerSharp.Connection:Trace: ◀ Receive {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"16F8C8D2425EDAD67F349F4F844618FA","type":"page","title":"","url":"about:blank","attached":false}}} | |
PuppeteerSharp.Connection:Trace: ◀ Receive {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"1f75e057-6e9a-4456-aff8-735039c07889","type":"browser","title":"","url":"","attached":false}}} | |
PuppeteerSharp.Connection:Trace: ◀ Receive {"method":"Target.targetCreated","params":{"targetInfo":{"targetId":"8c58be72-6ec7-4363-866f-166d44212a72","type":"browser","title":"","url":"","attached":true}}} | |
PuppeteerSharp.Connection:Trace: ◀ Receive {"id":1,"result":{}} | |
PuppeteerSharp.Connection:Trace: Send ► 2 Method Target.attachToTarget Params { targetId = 16F8C8D2425EDAD67F349F4F844618FA } | |
PuppeteerSharp.Connection:Trace: ◀ Receive {"method":"Target.targetInfoChanged","params":{"targetInfo":{"tar |
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
type TimeSpanCtorArguments = number | |
| [number, number, number] | |
| [number, number, number, number] | |
| [number, number, number, number, number]; | |
export class TimeSpan { | |
public static readonly ticksPerMillisecond = 10000; | |
private static readonly millisecondsPerTick = 1.0 / TimeSpan.ticksPerMillisecond; | |
public static readonly ticksPerSecond = TimeSpan.ticksPerMillisecond * 1000; // 10,000,000 | |
private static readonly secondsPerTick = 1.0 / TimeSpan.ticksPerSecond; // 0.0000001 |
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
interface IBrowser | |
{ | |
string WebSocketEndpoint {get;} | |
Process Process {get;} | |
bool IgnoreHTTPSErrors {get;set;} | |
bool IsClosed | |
{get;} | |
BrowserContext DefaultContext {get;} | |
int DefaultWaitForTimeout {get;set;}= Puppeteer.DefaultTimeout; | |
Task<Page> NewPageAsync(); |
OlderNewer