Skip to content

Instantly share code, notes, and snippets.

@buddharage
buddharage / thai.user.css
Last active June 4, 2020 19:22
Thai Google CSS Styles
/* ==UserStyle==
@name Thai styles - 6/4/2020, 1:55:31 PM
@namespace github.com/openstyles/stylus
@version 1.0.0
@description Thai's Google CSS Rules
@author Thai Le
==/UserStyle== */
/** Extension of Google Clean Dark - https://userstyles.org/styles/144028/google-clean-dark **/
@-moz-document domain("mail.google.com") {
// temp
@buddharage
buddharage / Loader.js
Created April 20, 2020 14:31
Loading component with (deprecated) react-loader
import React from 'react';
import PropTypes from 'prop-types';
import Loadable from 'react-loadable';
import Loading from 'Components/Loading/Loading';
import styled from 'styled-components';
import global from 'Styles/global';
export const LoadingContainer = styled.div`
align-items: center;
display: ${global.ifProp('pastDelay', 'flex', 'none')};
@buddharage
buddharage / prepare-commit-msg
Last active April 13, 2020 23:11
Prepend Commit Message with Jira Ticket ID
#!/bin/sh
# Get the current branch name and check if it is excluded
BRANCH_NAME=$(git symbolic-ref --short HEAD)
# Trim it down to get the parts we're interested in
TRIMMED="$(echo "$BRANCH_NAME" | grep -Eo "[A-Z]{3,10}-[0-9]+")"
# See if the ticket prepend is already in the commit message
JIRA_ID_IN_MSG="$(grep -Eo "[A-Z]{3,}-[0-9]+\s\|\s" "$1")"
@buddharage
buddharage / slack.css
Created March 21, 2019 15:24
Slack Dark Mode
/*
Copyright 2017 Bryan Keller (https://github.com/widget-)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software

Keybase proof

I hereby claim:

  • I am buddharage on github.
  • I am thaile (https://keybase.io/thaile) on keybase.
  • I have a public key whose fingerprint is 4F15 9B0D 918A C840 13BE 0EBD F468 8FED 481E 0FB7

To claim this, I am signing this object: