Skip to content

Instantly share code, notes, and snippets.

View kingscott's full-sized avatar
🕺
hsl advocate

Scott King kingscott

🕺
hsl advocate
View GitHub Profile
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(package-initialize) ;; You might already have this line
(require 'multiple-cursors)
@leontastic
leontastic / fraction.js
Last active November 28, 2016 03:15
Fraction: an ES6 class to preserve decimal precision in rational number arithmetic
/*
Fraction: an ES6 class to preserve decimal precision in rational number arithmetic
Notes:
- reliably preserves decimal precision for floats that can be represented in decimal with 16 decimal places or less
- for decimals with more than 16 decimal places, precision is preserved up to 16 decimal places
CONSTRUCTOR:
constructor([a|Number|Fraction]) => [Fraction]: returns a Fraction from a number
/** @jsx React.DOM */
var SVGComponent = React.createClass({
render: function() {
return this.transferPropsTo(
<svg>{this.props.children}</svg>
);
}
});
@defunctzombie
defunctzombie / browser.md
Last active July 15, 2024 04:13
browser field spec for package.json

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: