def make_verts(s, r) a = Math::PI/s b = Math::PI/(s/2) ...
Ruby Dynamic Vertices Generation
Can somebody check my math?...
String foo = Request.QueryString["foo"];
if (!String.IsNullOrEmpty(foo))
{
...
C# Looking for a pattern to ha...
There is a page in a C# web...
function formatCurrency(num) {
var stripped = num.toString().replace("$","").replace(",",""); // strip off the $ and thousands seperators
var n = (isNaN(stripped)) ? 0 : stripped*1; // coerce into a number, default to zero
...
function formatCurrency(num) {
num = num.toString().replace(/\\$|\\,/g,'');
if (isNaN(num)) num = '0';
...
JavaScript Format Currency
During a code review we fou...
I hacked up a script to aut...