This file contains hidden or 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
<!DOCTYPE html> | |
<!-- converted from php http://www.geekpedia.com/tutorial213_Creating-a-UPS-Shipping-Calculator.html --> | |
<html> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<meta charset=utf-8 /> | |
<title>Unofficial UPS Shipping Calculator</title> | |
</head> |
This file contains hidden or 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
// usage: $("#price").priceField(); | |
$.fn.getCaret = function() { // adapted from http://blog.vishalon.net/index.php/javascript-getting-and-setting-caret-position-in-textarea | |
var ctrl = this[0]; | |
var CaretPos = 0; // IE Support | |
if (document.selection) { | |
ctrl.focus(); | |
var Sel = document.selection.createRange(); | |
Sel.moveStart('character', -ctrl.value.length); |
This file contains hidden or 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
.no-select { | |
-webkit-user-select: none; | |
-khtml-user-select: none; | |
-moz-user-select: none; | |
-o-user-select: none; | |
user-select: none; | |
} | |
.no-drag { | |
-webkit-touch-callout: none; |
This file contains hidden or 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
var sin = Math.sin; | |
var cos = Math.cos; | |
var tan = Math.tan; | |
var ln = Math.log; | |
var log = Math.LOG10E; | |
var pi = Math.PI; | |
var wi,hi; | |
var n; |
This file contains hidden or 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
var sin = Math.sin; | |
var cos = Math.cos; | |
var tan = Math.tan; | |
var ln = Math.log; | |
var log = Math.LOG10E; | |
var pi = Math.PI; | |
onmessage = function (event) { | |
var n = event.data; | |
var p = []; |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge;chrome=1" /> | |
<style type="text/css"> | |
body {padding:0;margin:0;} | |
#codearea { | |
width: 80%; | |
border-radius: 10px; |
This file contains hidden or 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
# | |
# so far as I can tell you need to do at least this much to install node on a new rackspace cloud instance of ubuntu 10.10 | |
# | |
sudo su #to save time, if not root | |
apt-get update | |
apt-get install build-essential openssl pkg-config git-core libssl-dev python | |
git clone https://github.com/joyent/node.git | |
cd node | |
./configure |
NewerOlder