Skip to content

Instantly share code, notes, and snippets.

View 2wce's full-sized avatar
🏠
Working from home

Kudakwashe Mupeni 2wce

🏠
Working from home
View GitHub Profile
import { CodegenConfig } from '@graphql-codegen/cli';
const config: CodegenConfig = {
schema: [
{
[process.env.API_URL]: {
headers: {
Authorization: `Bearer ${process.env.TOKEN}`
}
}
@2wce
2wce / split-json.js
Created February 3, 2021 13:33 — forked from tlync/split-json.js
Split large json file
if(process.argv.length < 3){
console.log('target file path is required.')
process.exit(1)
}
var target = process.argv[2]
console.log('file: ' + target)
var fs = require('fs')
fs.readFile(target, function (err, data) {
@2wce
2wce / README.md
Created March 23, 2020 16:05 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


@2wce
2wce / Elements.tsx
Created December 12, 2019 12:20
Custom modal component
import { X } from 'react-feather';
import { animated } from 'react-spring';
import styled, { css } from 'styled-components';
import { color, space, width } from 'styled-system';
export const ModalWrap = styled(animated.div)`
top: 0;
left: 0;
right: 0;
bottom: 0;