Skip to content

Instantly share code, notes, and snippets.

/*
For the Slack Mac app, add this to Slack.app/Contents/Resources/app.asar.unpacked/src/static/ssb-interop.js
document.addEventListener('DOMContentLoaded', function() {
const cssURI = 'https://gist.githubusercontent.com/thienanle/c3322e9fbfff40e6c15e2c80beeb885b/raw/ty-slack-theme.css';
$.get(cssURI).then(function(css) {
$('<style />').text(css).appendTo('body');
});
});
*/
@thienanle
thienanle / pull_request.sh
Last active April 27, 2017 01:30 — forked from devongovett/pull_request.sh
Bash script to make a pull request from the current git repository. Tries the upstream remote if possible, otherwise uses origin.
# put this in your .bash_profile
pull_request() {
to_branch=$1
if [ -z $to_branch ]; then
to_branch="master"
fi
# try the upstream branch if possible, otherwise origin will do
# exit if there is no origin
upstream=$(git config --get remote.upstream.url)
@thienanle
thienanle / dabblet.css
Created October 17, 2012 20:55
A "deeper" indented text effect with the :before and :after pseudo-elements.
/**
* A "deeper" indented text effect with the :before and :after pseudo-elements.
*/
html, body {
height: 100%;
}
body {
margin: 0;