Skip to content

Instantly share code, notes, and snippets.

View FallOutChonny's full-sized avatar
🍺
Focusing

Chonny Chu FallOutChonny

🍺
Focusing
View GitHub Profile
@FallOutChonny
FallOutChonny / Base.js
Created January 12, 2022 04:05 — forked from kjbrum/Base.js
React primitive components using styled-system.
import React, { forwardRef } from 'react'
import styled from 'styled-components'
import css, { get } from '@styled-system/css'
import {
system,
compose,
space,
color,
typography,
layout,
import React, { useState } from 'react'
import { DrawingManager, Rectangle } from '@react-google-maps/api'
import { useHistory } from 'react-router-dom'
import { isNil, length } from 'ramda'
import theme from 'shared/theme'
import { OverlayType } from 'shared/constants/types'
import { isEmpty } from 'shared/utils/validation'
import message from 'shared/utils/message'
import { useStreetLights, StreetLight } from 'shared/graphql/streetLight'
import {
@FallOutChonny
FallOutChonny / cloudSettings
Last active April 22, 2021 02:49
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-04-22T02:49:04.649Z","extensionVersion":"v3.4.3"}
#!/bin/sh
# Darkify Slack on Mac OS:
# curl https://gist.githubusercontent.com/ryanpcmcquen/8a7ddc72460eca0dc1f2dc389674dde1/raw/darkify_slack.sh | sh
SLACK_INTEROP_JS="/Applications/Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js"
# Thanks to: https://gist.github.com/DrewML/0acd2e389492e7d9d6be63386d75dd99#gistcomment-2358430
if [ -z "`grep tt__customCss ${SLACK_INTEROP_JS}`" ]; then
# Backup original CSS for reverts:
@FallOutChonny
FallOutChonny / dev.config.js
Created December 27, 2016 08:26 — forked from trueter/dev.config.js
DLL Bundles with webpack-isomorphic-tools
// Webpack config for development
var fs = require( 'fs' )
var path = require( 'path' )
var webpack = require( 'webpack' )
var WebpackIsomorphicTools = require( 'webpack-isomorphic-tools' )
var HappyPack = require( 'happypack' )
var assetsPath = path.resolve( __dirname, '../static/dist' )
var host = process.env.HOST || 'localhost'
@FallOutChonny
FallOutChonny / ReadMore.tsx
Last active August 30, 2016 00:14
ReadMore Component for React
/// <reference path="../../../typings/index.d.ts" />
import * as React from "react";
export interface IReadMoreProps {
text?: string
showChar?: number
}
export interface IReadMoreStates {