Contact Shawn Biddle

x Cancel
posted 2 years ago

Bindr - customizable keybindings for Chrome

https://github.com/shawncplus/bindr

Been working on this for a GTUG competition and looking to get some feedback on it whether that feedback is for the UI/UX (I suck at design so mostly this), code (If you've dev'd a chrome extension before I'd love some tips), or feature suggestions.

Install it: chrome.google.com/webstore/detail/…

Docs: shawncplus.github.com/…

Example usage:

Add binding -> Set key to "l", set site to http:\/\/forrst.com\/posts\/[^\/]+, select type Custom, as the action choose jQuery('.likes').click(); Now on any post page on Forrst you can press \l to like it

posted 2 years ago

Google+ Profile style mod

http://userstyles.org/styles/50018/google-profile-prettify

Threw this together in a couple minutes while experimenting with the Google+ structure, lemme know what you think.

Have a couple half-finished bookmarklets/chrome extensions so should be releasing those in a few days. Thankfully Google didn't use any stupid randomly-generated ids for elements so the dom is super-easy to script.

Note: Chrome only at the moment, didn't feel like making it work in Firefox just for an experimental script

posted 2 years ago

256 Colors in GNU Screen Hardstatus

https://github.com/shawncplus/patches/tree/master/gnu_screen

one really annoying thing I found with GNU screen is that the vt supports 256 but the statusline didn't so I decided to add it myself.

Usage:

hardstatus alwayslastline "%202B%16G %H %0G"
Raw

would be your hostname in black on orange.

The # corresponds to the cterm index, you can convert any html color to a pretty close approximate using my toCterm script which you can find over here: shawncplus.github.com/Vim-toCterm/ (the rgb2cterm script in that package is what you need to use)

If you don't feel like downloading the script to get the cterm codes just run this command

for i in {1..255}; do echo -e "\e[38;5;${1};1m\e[48;5;${i}m    \e[48;5;0m $i\e[0m"; done
Raw

1) Download the GNU Screen source from here savannah.gnu.org/git/

2) Grab the patchfiles from the post link

3) Use git am to apply them, google around, not gonna give a tutorial on it here.

Screenshot of vim + 256 color Screen: i.imgur.com/…

posted 2 years ago

Hidden Git Feature

                git checkout branchA // on branch A
git checkout branchB // on branch B
git checkout -       // on branch A
git checkout -       // on branch B                
Raw

So if you're familiar with bash you'll know that cd - " changes to previous directory

Well git does the same thing with 'checkout' but after looking it's nowhere in the documentation. So simply, 'git checkout -' will change you to the branch you were previously on.

posted 2 years ago

Vim Scripts git mirror

http://vim-scripts.org/

How did I not know about this sooner? Git mirrors for the scripts on vim.org. For script devs it's unfortunate that you can link a script in the mirror to your actual git repo but it's still nicer than vim.org's interface.

posted 2 years ago

New HTML Logo

In light of the new HTML5 logo a coworker decided there was one version missing from the bunch.

http://www.reddit.com/r/programming/comments/f8wtm/hey_proggit_i_made_a_logo_for_my_favorite_brand/

In light of the new HTML5 logo a coworker decided there was one version missing from the bunch.

reddit.com/r/programming/comments/f8wtm/hey_proggit_i_made_a_logo_for_my_favorite_brand/

posted 2 years ago

Javascript HTML Helpers

https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String#HTML_wrapper_methods

I've tested these in Firefox and Chrome and they all seem to work. You can do stuff like

var stuff = "Hello World!";
var link = stuff.link("http://google.com");
console.log(link);
// "<a href="http://google.com">Hello World!</a>"
Raw

I only found link() and anchor() to actually be useful but it's still nice to know they're there.

posted 2 years ago

Javascript Game Engines

https://gist.github.com/768272

Comparative list of JS game and 3D engines.

posted 2 years ago

Self-guided Git intro

http://gitimmersion.com/

Really smooth, well designed git intro.

posted 2 years ago

Vim Indent Guides

http://www.vim.org/scripts/script.php?script_id=3361

Very cool plugin to give highlighted indent guides.

Screenshot: Indent guide