PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

Alex's Recent Pastes

"Untitled" (PHP) view

  1. <?php
  2.  
  3. class Application
  4. {
  5.   protected $text;
  6.  
  7.   function __construct()
  8.   {
  9.       $this->text = "Text";
  10.   }

"Untitled" (HTML) view

  1. <ul id="main-navigation">
  2.     <li id="home-link"><a href="/" title="Blah">Home</a></li>
  3.     <li><a href="/portfolio" title="Blah">View Portfolio</a></li>
  4.     <li><a href="/about" title="Blah">About Me</a></li>
  5.     <li><a href="/whats-new" title="Blah">What's New?</a></li>
  6.     <li><a href="/services" title="Blah">Services &amp; Quotes</a></li>
  7.     <li><a href="/affiliates" title="Blah">Affiliates</a></li>
  8.     <li><a href="/contact" title="Blah">Contact Me</a></li>
  9. </ul>

"Untitled" (Plain Text) view

  1. alex@Slacktop:~$ cat tmp.cpp                                                                                                                                                           
  2. #include <iostream>                                                                                                                                                                     
  3. #include <regex>                                                                                                                                                                       
  4. #include <string>                                                                                                                                                                       
  5.                                                                                                                                                                                        
  6. int main(int argc, char **argv)
  7. {
  8.   std::regex re("bar");
  9.   std::smatch results;
  10.   std::string target("foobar");

"Untitled" (PHP) view

  1. <?php
  2.  
  3. // If we assume we're dealing with an n-character hexadecimal, we'll provide a
  4. // hash table style implementation, and a random generation method and see how
  5. // long it takes each to come up with a result.
  6. //
  7. // Since we want to show different "random" results each time, we'll derive a
  8. // "remaining" spot by truncating a hash from a random string, and we'll provide
  9. // another random string as the initial input for the hash table insertion
  10.  

"Untitled" (PHP) view

  1. <?php
  2.  
  3. // This (what you were saying)
  4.  
  5. $row = mysql_fetch_assoc($result);
  6.  
  7. while($row !== false)
  8. {
  9.   // Do stuff...
  10.  

"Re: #30668" (Plain Text) view

  1. bash-4.1$ gcc tmp.c -o tmp -lmysqlclient -I/usr/include/mysql
  2. bash-4.1$ cat tmp.c
  3. #include <mysql.h>
  4.  
  5. int main()
  6. {
  7.         return 0;
  8. }

"Untitled" (PHP) view

  1. <?php
  2.  
  3. $rating = 3.456;
  4.  
  5. switch($rating)
  6. {
  7. case $rating < 0.25:
  8.     echo '0';
  9.     break;
  10. case $rating < 0.75:

"Untitled" (Plain Text) view

  1. bash-4.1$ pwd
  2. /home/alex/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest/baaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaartest/foooooooooooooooooooooooooooooooooooooooooooooooooootest

"Untitled" (Plain Text) view

  1. :vt.zymic.com NOTICE Auth :*** Looking up your hostname...
  2. :vt.zymic.com NOTICE Auth :*** Found your hostname (host-92-29-138-100.as13285.net)
  3. :vt.zymic.com NOTICE Auth :Welcome to zIRC!
  4. :vt.zymic.com 001 Steve :Welcome to the zIRC IRC Network Steve!Stevebot@host-92-29-138-100.as13285.net
  5. :vt.zymic.com 002 Steve :Your host is vt.zymic.com, running version InspIRCd-2.0
  6. :vt.zymic.com 003 Steve :This server was created 12:43:12 Dec  1 2011
  7. :vt.zymic.com 004 Steve vt.zymic.com InspIRCd-2.0 BIRSWcgiorsw BFJLMNOPRSYabcefhijklmnopqrstv FJLYabefhjkloqv
  8. :vt.zymic.com 005 Steve AWAYLEN=201 CALLERID=g CASEMAPPING=rfc1459 CHANMODES=be,k,FJLfjl,BMNOPRScimnprst CHANTYPES=# CHARSET=ascii ELIST=MU EXCEPTS=e EXTBAN=,BNORSc FNC KICKLEN=256 MAP MAXBANS=60 :are supported by this server
  9. :vt.zymic.com 005 Steve MAXCHANNELS=40 MAXPARA=32 MAXTARGETS=20 MODES=20 NETWORK=zIRC NICKLEN=32 OPERLOG PREFIX=(Yqaohv)!~&@%+ REMOVE SECURELIST SSL=72.20.23.121:6670 STARTTLS STATUSMSG=!~&@%+ :are supported by this server
  10. :vt.zymic.com 005 Steve TOPICLEN=308 USERIP VBANLIST WALLCHOPS WALLVOICES :are supported by this server

"Untitled" (Plain Text) view

  1. bash-4.1$ cat tmp.php
  2. <?php
  3. var_dump(preg_match('/[^a-z0-9_\\-]+/i','-'));
  4. var_dump(preg_match('/[^a-z0-9_-]+/i','-'));
  5. ?>
  6. bash-4.1$ php -f tmp.php
  7. int(0)
  8. int(0)

Page: 1, 2, 3.. »