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
// ==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
// 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
<title>Search</title> | |
<script> | |
const name = 'AllMusic.com'; | |
const baseUrl = 'http://www.allmusic.com/'; | |
const searchRel = 'search/all/'; | |
var s = window.prompt('Search ' + name, ''); | |
window.location.href = s ? baseUrl + searchRel + s : baseUrl; | |
</script> |
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
<title>Search</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<style> | |
.hide { display: none; } | |
.search, #term, #go { | |
display: block; | |
font: 20px/50px sans-serif; | |
width: 100%; |
OlderNewer