Skip to content

Instantly share code, notes, and snippets.

View baohouse's full-sized avatar

Bao Thien Ngo baohouse

View GitHub Profile
@baohouse
baohouse / GraphiQLExplorer.tsx
Last active January 21, 2021 22:08
Fork of graphiql-explorer 0.4.5 to support list types and object-based custom args
/**
* Copied from https://github.com/OneGraph/graphiql-explorer (0.4.5)
* We fork because we need to support customizable fields and could not wait for
* the PR process to finish. Also converted Flow type to TypeScript.
*/
import { Tooltip } from 'antd';
import prettier from 'prettier/standalone';
import parserGraphql from 'prettier/parser-graphql';
import React, { Fragment } from 'react';
@baohouse
baohouse / sumo_logic.config
Created May 25, 2020 19:04 — forked from jorihardman/sumo_logic.config
Elastic Beanstalk Sumo Logic Config
# This will automatically install the Sumo Logic collector on AWS Elastic
# Beanstalk instances. Add this to the .ebextensions folder in your app root
# To add or remove tracked files, simply add or remove source hashes to the
# sources array.
packages:
rpm:
SumoCollector: https://collectors.sumologic.com/rest/download/rpm/64
files:
"/home/ec2-user/setup-sumo.sh":
@baohouse
baohouse / BgColorByTimeOfDay.js
Last active April 24, 2018 05:36
Set background color by time of day
document.addEventListener('DOMContentLoaded', function () {
/**
* Palette is ordered by time. The first color will be midnight (new day),
* and the last color will be just before midnight.
*/
var palette = [
'#f6ebcf',
'#fbfafb',
'#eff2ed'
];