Skip to content

Instantly share code, notes, and snippets.

@mooz
mooz / set-mark-with-ctrl-space-mac.ks.js
Created October 18, 2010 10:29
Set mark with Ctrl+Space key on Mac
(function () {
const KeyCodes = {
Space : 32,
Ctrl : 17
};
let ctrlOn = true;
function keyDownHandler(ev) {
switch (ev.keyCode) {
@wadey
wadey / twitter-entities.js
Created June 17, 2010 17:50
JavaScript parser for Tweet Entities
/*
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
*
* See the documentation here: http://dev.twitter.com/pages/tweet_entities
* Basically, add ?include_entities=true to your timeline call
*
* Copyright 2010, Wade Simmons
* Licensed under the MIT license