#!/usr/bin/ruby

# Makes a multidimension array (matrix) with the width and height of n
...

Ruby Multidimension array and math

by cmol, June 03, 2010 12:46, 2 refactorings, tagged with math, square, rules

Hi

I made this piece of ...

57501c8a3e6ab9ad33df9a6203df8860 Talk
#pragma once

#include <iostream>
...

C++ c++ templates, Vector2, Vec...

by rakkarage.myopenid.com, November 13, 2009 22:50, 4 refactorings, tagged with math, template, vector, C++, 3d

for my 3d game :) still wor...

55502f40dc8b7c769880b10874abc9d0 Talk
#!/usr/bin/python
# Criado em:Dom 12/Ago/2007 hs 10:49
# Last Change: Dom 12 Ago 2007 11:11:06 BRT
...

Python equação do segundo grau

by sergio, July 10, 2009 19:42, 1 refactoring, tagged with math, python

Equação do segundo graum ...

A5f3d249cc5053cdc1eb4ede60fd2f45 Talk
//e is the object, and 'op' is a parameter passed that tells us
//if we're increasing or decreasing the value.
function step_change(e, op) {
...

JavaScript An incrementor function tha...

by Danny Peck, June 08, 2009 15:58, 2 refactorings, tagged with javascript, math, increment

Essentially there is a text...

8f5553306c2cf7f4b14153f6117f8e9b Talk
import random

INFINITE=1000000000
...

Python Dijkstra to find two points...

by Mizipzor, January 25, 2009 15:43, 1 refactoring, tagged with math, algorithm, path, dijkstra, pathfinding

Discussed on: http://stacko...

9e9bb40f93094055bd09193eb3bccbb8 Talk
function formatCurrency(num) {
    num = num.toString().replace(/\\$|\\,/g,'');
    if (isNaN(num)) num = '0';
...

JavaScript Format Currency

by slf, January 20, 2009 20:01, 7 refactorings, tagged with math, regex, formatting

During a code review we fou...

098e5c1a565b47e9860539fbebc3fa98 Talk
# camera related
def frame_diagonal(frame_horizontal, frame_vertical)
	@frame_diagonal = Math.sqrt((frame_horizontal**2) + (frame_vertical**2))
...

Ruby Photograhy methods

by sfusion.myopenid.com, December 05, 2008 11:42, 4 refactorings, tagged with math, ruby, photography, camera, lens

Any comments, corrections, ...

4f5d54213efb6502baab202f3fb2f09e Talk
#formula_ga.rb

require 'equation'
...

Ruby Genetic algorithm for makin...

by naturalcode, June 09, 2008 01:55, 1 refactoring, tagged with math, genetic algorithm, evolution

I'm working on a genetic al...

8331396d01d101f09bd298cfb5a0fd5a Talk
<script type="text/javascript">
var feature_stuff = new Array(
'<li><a href="#">URL 1</a></li>',
...

JavaScript Random URL

by DeathfireD, October 29, 2007 15:21, 7 refactorings, tagged with random, url, math

Outputs one of the 5 urls r...

421453710d51d7daaea8069af0aa4126 Talk