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
{ | |
repository(owner: "microsoft", name: "powertoys") { | |
issues(first: 100, states: OPEN) { | |
totalCount | |
pageInfo { | |
startCursor | |
hasNextPage | |
endCursor | |
} | |
edges { |
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
{ | |
repository(owner: "microsoft", name: "powertoys") { | |
issues(first: 100, states: OPEN) { | |
totalCount | |
edges { | |
node { | |
title | |
url | |
timelineItems(first: 100, itemTypes: CROSS_REFERENCED_EVENT) { | |
nodes { |
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
Metric | Poor Measure of Output | Good for ... | |
---|---|---|---|
Commits | Commits != delivery | Understanding commit count | |
Pull Request Count | All PR's !same | Understanding PR Count & Grok team interaction | |
Lines of Code | More code isn't better | Size and scope of system | |
Impact | (see Lines of Code) | (see Lines of Code) | |
Story or Velocity Points | Used for sizing and estimation not output | Improving estimation skills |
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
{ | |
resource(url: "https://github.com/microsoft/vscode/issues/10121") { | |
... on Issue { | |
url | |
title | |
timelineItems(first: 50, itemTypes: [CROSS_REFERENCED_EVENT]) { | |
edges { | |
node { | |
... on CrossReferencedEvent { | |
source { |
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 compose = (...fns) => x => fns.reduceRight((y, f) => f(y), x); | |
function map(f) { | |
return async function*(values) { | |
for await (const x of values) { | |
yield f(x); | |
} | |
}; | |
} |
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
// setup | |
const wait = value => new Promise(resolve => { | |
setTimeout(() => resolve(value), 3000); | |
}); | |
const fetchFoo = () => wait('foo'); | |
const fetchBar = () => wait('bar'); | |
const fetchBaz = () => wait('baz'); | |
const fetchDataSlowly = async time => { |
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 React, { useEffect } from 'react'; | |
import hoistStatics from '../../HOCs/hoist-statics'; | |
import { connect } from 'react-redux'; | |
import { | |
getShouldSignOut, | |
setShouldSignOut, | |
getDidAuthFail, | |
signInStatusChanged, | |
setMagicUser, | |
} from './ethereum-authentication-reducer'; |
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 createUser = ({ | |
email = '', | |
publicAddress = '', | |
sessionToken = '', | |
isSignedIn = false, | |
} = {}) => ({ | |
email, | |
publicAddress, | |
sessionToken, | |
isSignedIn, |
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 { useState, useEffect, useRef } from 'react'; | |
import Web3 from 'web3'; | |
import Fortmatic from 'fortmatic'; | |
const usePromise = () => { | |
const ref = []; | |
const container = useRef(ref); | |
ref[0] = new Promise((resolve, reject) => { | |
ref[1] = resolve; |
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
create index on :Node(name); | |
//load the data in raw form | |
Load csv with headers from "https://docs.google.com/spreadsheets/u/0/d/17WuC_B8RWzsSS8pw-NtY8qWeFFQGCGnCR5uXmENOFUI/export?format=csv&id=17WuC_B8RWzsSS8pw-NtY8qWeFFQGCGnCR5uXmENOFUI&gid=112267709" as csv | |
Merge (n:Node {name: csv.Name, type: csv.Type, tags: csv.Tags, link: csv.Link}); | |
// move the 'type' property to a label and remove it as a property, USING APOC (not supported in Graphgist) | |
MATCH (n:Node) | |
with n, split(n.type, ",") AS futurelabels | |
unwind futurelabels as futurelabel |
NewerOlder