Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am kristofir on github.
  • I am chriswan (https://keybase.io/chriswan) on keybase.
  • I have a public key ASBzv7OhH1GPNnKWtohfGsUPsnlgMuxk7F_q_FzwaZ71KAo

To claim this, I am signing this object:

// From http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/
// Start with a temperature, in Kelvin, somewhere between 1000 and 40000. (Other values may work,
// but I can't make any promises about the quality of the algorithm's estimates above 40000 K.)
function colorTemperatureToRGB(kelvin){
var temp = kelvin / 100;
@Kristofir
Kristofir / 0_reuse_code.js
Last active August 29, 2015 14:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console