This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Less Wrong print formatter | |
// @version 1.0.1 | |
// @namespace http://thunderguy.com | |
// @description Remove cruft from LessWrong when printing | |
// @include http://lesswrong.com/* | |
// ==/UserScript== | |
// Add required GM APIs if they aren't present (they were broken in Chrome 27) | |
if ( ! GM_addStyle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifest_version": 2, | |
"content_scripts": [ { | |
"exclude_globs": [ ], | |
"include_globs": [ "BLOG_URL/wp-admin/post*" ], | |
"js": [ "script.js" ], | |
"matches": [ "http://*/*", "https://*/*" ], | |
"run_at": "document_idle" | |
} ], | |
"converted_from_user_script": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Pure CSS menu demo */ | |
body { | |
font-family: "Trebuchet MS", sans-serif; | |
font-size: 30px; | |
line-height: 1.4 | |
} | |
/* CSS 2 */ | |
.menu-bar { | |
background-color: #666; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Pure CSS menu demo result | |
*/ | |
html { | |
height: 100%; | |
} | |
body { | |
font-family: "Trebuchet MS", sans-serif; | |
font-size: 30px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Use this with the Git-SVN workflow | |
# See http://thunderguy.com/semicolon/2012/01/25/a-spoonful-of-git-helps-the-subversion-go-down/ | |
# Use this when getting ready to commit to SVN: | |
# > git checkout master | |
# > svnup | |
# git rebase master yourBranch | |
branch_name="$(git symbolic-ref HEAD 2>/dev/null)" || |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Google link cleaner | |
// @description Make Google SERPs links go straight to their target, not via Google | |
// @include https://www.google.com/* | |
// @namespace http://thunderguy.com/ | |
// @author Bennett McElwee, bennett@thunderguy.com | |
// ==/UserScript== | |
/* | |
When you click a link in a Google SERPs page, JavaScript redirects you to Google (to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright (c) 2013 Bennett McElwee. All rights reserved. | |
// This is a Chrome extension. | |
// The onClicked callback function. | |
function onClickHandler(info, tab) { | |
// console.log("Info: " + JSON.stringify(info)); | |
if (info.menuItemId == "bookup-amazon-to-fishpond") { | |
var isbn = getAmazonIsbn(info.pageUrl); | |
chrome.tabs.update(tab.id, {url: getFishpondUrl(isbn)}); | |
} else if (info.menuItemId == "bookup-fishpond-to-amazon") { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Bookmarkleteer</title> | |
<script> | |
/** | |
* Bookmarklet Compiler | |
* | |
* Inspired by Moxley Stratton - http://www.moxleystratton.com/ | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Add a popup menu to the post screen that allows you to quickly choose a date within the last two weeks. | |
* | |
* @wordpress-plugin | |
* Plugin Name: Date Quick Pick | |
* Plugin URI: http://thunderguy.com/bennett/ | |
* Description: Quickly choose a post date for posts. | |
* Version: 1.0.0 | |
* Author: Bennett McElwee |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -f ~/bin/sensible.bash ]; then | |
source ~/bin/sensible.bash | |
fi | |
if [ -f ~/bin/git-completion.bash ]; then | |
source ~/bin/git-completion.bash | |
fi | |
export EDITOR="open -t -n -W" |
OlderNewer