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
function isRockMelt() { | |
return (navigator.userAgent.indexOf("RockMelt") !== -1) | |
} |
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
/* | |
* Evan Hahn's Kod theme | |
* Copyright (c) 2011 Evan Hahn | |
* Free for any use. | |
*/ | |
/* General stuff */ | |
body { | |
font-family: "Monaco", monospace; |
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
/** | |
* Choose objects by weight. | |
* @author Evan Hahn | |
* @version 1.00 | |
* @param {Object[]} objects An array of objects that each have a "weight" property. | |
* @param {Number} howMany How many should I choose? | |
* @returns An array of chosen objects, containing howMany values. | |
* @example | |
* chooseByWeight([ | |
* { |
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
--[[ | |
TIC-TAC-TOE | |
by Evan Hahn (http://www.evanhahn.com/) | |
This is a program that allows you to play tic-tac-toe against the | |
computer. | |
You may change the configuration (below) to make the board more than 3x3, | |
or play with "white" and "black" instead of "x" and "o", and change how |
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
/* *************************** | |
EULER METHOD CALCULATOR | |
by Evan Hahn (evanhahn.com) | |
*************************** | |
This will use the Euler method to estimate values of a differential | |
equation. | |
Code licensed under a CC-BY 3.0 license: | |
http://creativecommons.org/licenses/by/3.0/ */ |
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
syntax on " syntax highlighting | |
set sw=4 " shift width | |
set ul=100 " undo level | |
set ai " auto indent | |
set si " smart indent | |
set ruler " show cursor position |
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
/* | |
Wolfram|Alpha, restyled | |
by Evan Hahn, | |
for URL patterns like: *wolframalpha.com/input* | |
Made for use with Stylebot for Google Chrome | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or |
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
<!-- | |
Quickly-made flashcards file, by Evan Hahn (evanhahn.com) | |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any |
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
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
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
/* | |
JavaScript Caesar shift | |
by Evan Hahn (evanhahn.com) | |
"Encrypt" like this: | |
caesarShift('Attack at dawn!', 12); // Returns "Mffmow mf pmiz!" | |
And "decrypt" like this: |
OlderNewer