Functions
WebDev/*nix assorted functions & hacks
Search
find all
Array
-
Bash
-
Classes
-
Config
-
DateTime
-
Debug
-
dotjs
-
File
-
foooo
-
Git
-
HTML
-
Images
-
Javascript
-
Linux
-
Math
-
Misc
-
MySQL
-
OS X
-
Reading
-
Redis
-
Shell scripts
-
snippets
-
SQL
-
Strings
-
TextMate
-
Web
-
\(^o^)/ Fun!
-
_Misc hacks
-
_Pages
Misc
* Readme
** Meta: todo
bash colors. thing.
getset($key, $val=null)
get_vars_from_file($file)
googlinks($links, $total, $return=0)
header_404()
return_bytes($val)
valid_email($address)
9
found
auth
Name:
Category: Misc
Body:
<?php // bash colors, sort of. // these come close to whatever's in the shell, I think? Unless that shell is "full-color" or something fancy like that. echo "<table>\n"; // 43, 85, 128, 171, 213, 256 // 2b 55 80 ab d5 100 $vals = array(1=>'2a', '54', '7f', 'aa', 'd4', 'ff'); for ($r=1; $r <= 6; $r++) { for ($g=1; $g <= 6; $g++) { echo "<tr>\n"; for ($b=1; $b <= 6; $b++) { echo "<td style='background: #".$vals[$r].$vals[$g].$vals[$b].";'> </td>"; } echo "</tr>\n"; } } echo "</table>\n"; ?>
Footer