1 2 3 4
/* Lets say we have two numbers: 27 and 145 (just two random values) into two separate variable */ int min = 27; // 00011011 binary 8bit for 27 ...
C On How to find max, min of thr...
by Eineki,
November 20, 2008 00:52
1 2 3 4
int max = rand(); // or any init value int min = rand(); // or any init value int tmp = rand(); // or any init value ...
C On How to find max, min of thr...
by Eineki,
November 18, 2008 23:55
Try this code, it's a kind ...
1 2 3 4
<? /* E.g: ...
PHP On remove http from url string
by Eineki,
November 11, 2008 10:49
Hi, you can use preg_replac...
1 2 3 4
<?php function get_next_seat($table_id, $start_seat) { $player_data=$this->admin->get_player_data($table_id); ...
1 2 3 4
<?php function get_next_seat($table_id, $start_seat) { $player_data=$this->admin->get_player_data($table_id); ...
1 2 3 4
<?php function array_to_tablerows($array = array(), $cols = 2) { if (!is_array($array) || $cols < 1) return false; ...
1 2 3 4
<?php function get_next_seat($table_id, $start_seat) { $player_data=$this->admin->get_player_data($table_id); ...
1 2 3 4
<?php function __autoload($class_name) { $include_dirs = array('models/', 'generic/' ); // fill the array with appropiate dirs ...
Bash On store string from terminal ...
by Eineki,
July 08, 2008 06:09
Why don't you use the comma...
1 2 3
$.fn.textNodes = function() { return this.find(*).filter(function(index) { return (this.nodeType==3)||(this.nodeName="br")}).andSelf(); }
JavaScript On [jQuery] All descendent tex...
by Eineki,
June 30, 2008 10:43
Let me say that I'm rather ...
1 2 3 4
<?php $board = str_repeat("\n",100) . "TICTACTOE\n\n\n\n" . " + + \n %s + %s + %s \n + + \n+++++++++++\n" . " + + \n %s + %s + %s \n + + \n+++++++++++\n + + \n %s + %s + %s \n + + \n\n"; ...
1 2 3 4
#include <math.h> #define BASE 2 ...
C On Quanti bit per rappresentar...
by Eineki,
February 20, 2008 22:35
it:Il numero di cifre neces...
PHP On Removing Parameters from an...
by Eineki,
February 08, 2008 12:09
If you call parse_url witho...



It is quite simple, once yo...