This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$y = "function q(\$q) { | |
\$q = str_replace('\\\\', '\\\\\\\\', \$q); | |
\$q = str_replace('\$', '\\\\\$', \$q); | |
\$q = str_replace('\\n', '\\\\n', \$q); | |
\$q = str_replace('\"', '\\\\\"', \$q); | |
return \$q; | |
} | |
echo \"<?php\\n\"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.swp | |
*.swo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------- | |
! Xft settings | |
! ------------ | |
Xft.dpi: 96 | |
Xft.antialias: true | |
Xft.rgba: rgb | |
Xft.hinting: true | |
Xft.hintstyle: hintslight |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nitrix at meow in ~/Projects/testga/build | |
$ cmake .. && make && ./testga | |
-- The C compiler identification is GNU 4.7.1 | |
-- The CXX compiler identification is GNU 4.7.1 | |
-- Check for working C compiler: /usr/bin/gcc | |
-- Check for working C compiler: /usr/bin/gcc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Check for working CXX compiler: /usr/bin/c++ | |
-- Check for working CXX compiler: /usr/bin/c++ -- works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
urxvt*font: xft:terminus:pixelsize=8 | |
urxvt*boldFont: xft:terminus:pixelsize=8 | |
urxvt*termName: rxvt | |
urxvt*background: #212629 | |
urxvt*foreground: #737c80 | |
urxvt*scrollBar: false | |
urxvt*matcher.button: 1 | |
urxvt*cursorBlink: true | |
urxvt*cursorColor: #c1c8c9 | |
urxvt*colorBD: #9a7b88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function makeRandomPassword($length) { | |
$pass = ''; | |
$characters = 'abcdefghijkmnopqrstuvwxyz23456789'; | |
srand((double)microtime()*1000000); | |
for($i=0; $i<$length; $i++) { | |
$random = rand() % 33; | |
$pass .= substr($characters, $random, 1); | |
} | |
return $pass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
double getBMI (int h, int w, double s) | |
{ | |
cout << "h: " << h << endl; | |
cout << "w: " << w << endl; | |
cout << "s: " << s << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <iomanip> | |
using namespace std; | |
//This function needs floating point promotion to have a working division | |
//This way we don't lose precision in the division. | |
double getBMI(double h, double w, double s) | |
{ | |
return (w / (h*h)) * s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://slow.example.com'; | |
$stream = fopen($url, 'r'); | |
stream_set_timeout($stream, 20); | |
$response_body = stream_get_contents($stream); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$c = curl_init('http://slow.example.com/'); | |
curl_setopt($c, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 15); | |
$page = curl_exec($c); | |
curl_close($c); | |
?> |
OlderNewer