Skip to content

Instantly share code, notes, and snippets.

View w01fgang's full-sized avatar

Denis Sumin w01fgang

View GitHub Profile
@w01fgang
w01fgang / index.ts
Created July 27, 2022 10:09
Deno firebase test
import 'https://deno.land/x/xhr@0.1.1/mod.ts';
import { installGlobals } from 'https://deno.land/x/virtualstorage@0.1.0/mod.ts';
import { initializeApp } from 'https://cdn.skypack.dev/@firebase/app';
import { getStorage, ref, list, getDownloadURL } from "https://cdn.skypack.dev/@firebase/storage";
installGlobals();
const config = Deno.env.get('FIREBASE_CONFIG') || '{}';
@w01fgang
w01fgang / reducer.test.ts
Created October 21, 2021 07:58
POC domains testing
import { ICommunityServer } from '@faceit/faceit-api/communityServers'
import reducer from './reducer';
import { getCommunityServer } from './actions';
interface IParams {
requestId: string;
data: { id: string };
state?: typeof initialState;
}
const initialState = { entities: {}, requests: {} };
@w01fgang
w01fgang / graphql.js
Last active December 10, 2019 20:22
serverless graphql with fauna
const faunadb = require('faunadb');
const {
graphql,
buildSchema
} = require('graphql');
const graphqlHTTP = require('express-graphql');
const { query: q } = faunadb;
const secret = 'FAUNA_API_KEY';
// flow-typed signature: 128fc71797635f21ea9f847e186646a2
// flow-typed version: npm/pluralize_v8.0.0/flow_v0.110.1
declare module 'pluralize' {
declare module.exports: {
(word: string, count?: number, inclusive?: boolean): string;
plural: (word: string) => string;
singular: (word: string) => string;
addPluralRule: ( rule: string | RegExp, replacemant: string) => void;
addSingularRule: (rule: string | RegExp,replacemant: string) => void;

Keybase proof

I hereby claim:

  • I am w01fgang on github.
  • I am w01fgang (https://keybase.io/w01fgang) on keybase.
  • I have a public key ASARKEZZC88MU9_3qC_ie7iu1fFr56AXHFJYM6yRyUaZHwo

To claim this, I am signing this object:

@w01fgang
w01fgang / designer.html
Last active August 29, 2015 14:08
designer
<link href="../core-scaffold/core-scaffold.html" rel="import">
<link href="../core-header-panel/core-header-panel.html" rel="import">
<link href="../core-menu/core-menu.html" rel="import">
<link href="../core-item/core-item.html" rel="import">
<link href="../core-icon-button/core-icon-button.html" rel="import">
<link href="../core-toolbar/core-toolbar.html" rel="import">
<link href="../core-menu/core-submenu.html" rel="import">
<link href="../google-map/google-map.html" rel="import">
<polymer-element name="my-element">