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 { mockGQLResolver } from './mockGQLResolver'; | |
describe('mockGQLResolver demo', () => { | |
it('mocking a query with a plain object', async () => { | |
mockGQLResolver({ | |
queries: { | |
ExampleQueryName: { | |
users: [ | |
{ id: '1', name: 'John' }, | |
{ id: '2', name: 'Jane' }, |
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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
browse('https://meet.new') | |
let count = 1 | |
let tab = '' |
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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
async function sleep(time = 1000) { | |
return new Promise(resolve => setTimeout(resolve, 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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
async function sleep(time = 1000) { | |
return new Promise(resolve => setTimeout(resolve, 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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
async function sleep(time = 1000) { | |
return new Promise(resolve => setTimeout(resolve, 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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
async function sleep(time = 1000) { | |
return new Promise(resolve => setTimeout(resolve, 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
// Menu: Meet | |
// Description: Start new meet and paste on Slack | |
// Author: Valentin Hervieu | |
// Twitter: @ValentinHervieu | |
import "@johnlindquist/kit" | |
async function sleep(time = 1000) { | |
return new Promise(resolve => setTimeout(resolve, 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
{ | |
"Named import": { | |
"prefix": "ni", | |
"body": [ | |
"import {$2} from '$1'" | |
], | |
"description": "Named import" | |
} | |
} |
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
function decryptBigIpCookie(cookieValue) { | |
const [ipPart, portPart] = cookieValue.split('.') | |
const hexIp = parseInt(ipPart, 10) | |
.toString(16) | |
.padStart(8, '0') | |
const ip1 = parseInt(hexIp.toString().substring(6, 8), 16) | |
const ip2 = parseInt(hexIp.toString().substring(4, 6), 16) | |
const ip3 = parseInt(hexIp.toString().substring(2, 4), 16) | |
const ip4 = parseInt(hexIp.toString().substring(0, 2), 16) |
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
--- | |
version: 1.0 | |
domains: | |
- www.ricardo.ch | |
url_patterns: | |
- www.ricardo.ch/* | |
timestamp: '2018-08-03T18:06:21Z' | |
id: vts2 | |
redirect_url: https://www.ricardo.ch/fr/a/schoene-ohrstecker-1001262266/ | |
shared_via: StyleURL - (https://www.styleurl.app) import and export CSS changes from |
NewerOlder