This file contains hidden or 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 express from 'express'; | |
| import { ApolloServer } from 'apollo-server-express'; | |
| import { ApolloServerPlugin } from 'apollo-server-plugin-base'; | |
| import * as Sentry from '@sentry/node'; | |
| Sentry.init({ | |
| environment: process.env.APP_ENV, | |
| // see why we use APP_NAME here: https://github.com/getsentry/sentry-cli/issues/482 | |
| release: `${process.env.APP_NAME}-${process.env.APP_REVISION}` || '0.0.1', | |
| dsn: process.env.SENTRY_DSN, |
This file contains hidden or 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
| /** | |
| * @author Freddie Mercury | |
| * @copyright Sony/ATV Music Publishing LLC | |
| */ | |
| let BohemianRhapsody = function(){ | |
| // Is this the real life? | |
| // Is this just fantasy? | |
| try { |
This file contains hidden or 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
| #!/bin/bash | |
| # if we are testing a PR, merge it with the latest master branch before testing | |
| # this ensures that all tests pass with the latest changes in master. | |
| set -eu -o pipefail | |
| PR_NUMBER=${CI_PULL_REQUEST//*pull\//} | |
| err=0 | |
| if [ -z "$PR_NUMBER" ]; then |
This file contains hidden or 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
| // Add any other logic here as needed. | |
| import { CacheableResponsePlugin } from 'workbox-cacheable-response/CacheableResponsePlugin'; | |
| import { CacheFirst } from 'workbox-strategies/CacheFirst'; | |
| import { createHandlerForURL } from 'workbox-precaching/createHandlerForURL'; | |
| import { ExpirationPlugin } from 'workbox-expiration/ExpirationPlugin'; | |
| import { NavigationRoute } from 'workbox-routing/NavigationRoute'; | |
| import { precacheAndRoute } from 'workbox-precaching/precacheAndRoute'; | |
| import { registerRoute } from 'workbox-routing/registerRoute'; |
This file contains hidden or 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 { ApolloClient, QueryOptions, MutationOptions } from 'apollo-client'; | |
| import { DocumentNode } from 'graphql'; | |
| import { getSdk, Requester } from '.generated/schema-typedefs'; | |
| import { ApolloRequestError } from './ApolloRequestError'; | |
| export type ApolloRequesterOptions<V, R> = | |
| | Omit<QueryOptions<V>, 'variables' | 'query'> | |
| | Omit<MutationOptions<R, V>, 'variables' | 'mutation'>; |
This file contains hidden or 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
| export default function createCrudHooks({ | |
| baseKey, | |
| indexFn, | |
| singleFn, | |
| createFn, | |
| updateFn, | |
| deleteFn, | |
| }) { | |
| const useIndex = (config) => useQuery([baseKey], indexFn, config) | |
| const useSingle = (id, config) => |
This file contains hidden or 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 cache = {} | |
| export default function useGlobalMemo (key, fn, deps) { | |
| if (!cache[key]) { | |
| cache[key] = { | |
| subs: 0, | |
| deps, | |
| value: fn(), | |
| } |
This file contains hidden or 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
| #!/bin/bash | |
| S3_BUCKET_NAME=$1 | |
| CF_ID=$2 | |
| # Sync all files except for service-worker and index | |
| echo "Uploading files to $S3_BUCKET_NAME..." | |
| aws s3 sync build s3://$S3_BUCKET_NAME/ \ | |
| --acl public-read \ | |
| --exclude service-worker.js \ |
This file contains hidden or 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
| // ==UserScript== | |
| // @name IG denoiser | |
| // @namespace https://noromanba.github.com | |
| // @description hidden user comments on instagram.com for UserScript | |
| // @include https://www.instagram.com/* | |
| // @grant none | |
| // @noframes | |
| // @run-at document-start | |
| // @version 2019.5.28.1 | |
| // @homepage https://gist.github.com/noromanba/1f369b316c1b43bdf0e337c6c5af1c80 |
This file contains hidden or 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
| // ==UserScript== | |
| // @name İnstagram ext | |
| // @namespace Violentmonkey Scripts | |
| // @match https://www.instagram.com/* | |
| // @grant none | |
| // @version 1.2 | |
| // @grant GM_addStyle | |
| // @author @mmnyldrm | |
| // @description İnstagram yardımcı eklenti | |
| // ==/UserScript== |