Skip to content

Instantly share code, notes, and snippets.

@postromantic
postromantic / spotify_link_labels.tampermonkey.js
Last active February 10, 2018 23:22 — forked from schuyberg/spotify_link_labels.tampermonkey.js
Browse Spotify by Label! -- a Tampermonkey script to make copyright statements into hyperlinks in Spotify web player
@postromantic
postromantic / index.js
Last active May 19, 2017 16:21
hyper-statusline (cwd from bash prompt workaround)
// Require
const { shell } = require('electron');
const { exec } = require('child_process');
const tildify = require('tildify');
// Config
exports.decorateConfig = (config) => {
const hyperStatusLine = Object.assign({
footerTransparent: true,
dirtyColor: config.colors.lightYellow,
@postromantic
postromantic / index.js
Created May 19, 2017 16:07
hyper-statusline (windows experiment 1)
// Require
const { shell } = require('electron');
const { exec } = require('child_process');
const tildify = require('tildify');
// Config
exports.decorateConfig = (config) => {
const hyperStatusLine = Object.assign({
footerTransparent: true,
dirtyColor: config.colors.lightYellow,
@postromantic
postromantic / gist:959c02344a0480a46bea
Created October 6, 2014 07:49
Helper class to show TFS history dialog
public class TfsHistoryDialogWrapper
{
private Type _dialogHistoryType;
private object _historyDialogInstance;
public TfsHistoryDialogWrapper(string tfsHistoryItem, string tfsServerUri)
{
var fullyQualifiedUriForName = TfsTeamProjectCollection.GetFullyQualifiedUriForName(tfsServerUri);
var tfsClientCredentials = TfsClientCredentials.LoadCachedCredentials(fullyQualifiedUriForName, false, false);
var tfs = new TfsTeamProjectCollection(fullyQualifiedUriForName, tfsClientCredentials);