#!/usr/bin/ruby # Makes a multidimension array (matrix) with the width and height of n ...
#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...
#!/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
Equação do segundo graum ...
//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...
Essentially there is a text...
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...
function formatCurrency(num) {
num = num.toString().replace(/\\$|\\,/g,'');
if (isNaN(num)) num = '0';
...
JavaScript Format Currency
During a code review we fou...
# 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, ...
#formula_ga.rb require 'equation' ...
Ruby Genetic algorithm for makin...
I'm working on a genetic al...
<script type="text/javascript"> var feature_stuff = new Array( '<li><a href="#">URL 1</a></li>', ...
JavaScript Random URL
Outputs one of the 5 urls r...
Hi
I made this piece of ...