[ create a new paste ] login | about

tjw

Name: Justin Walsh
Email:
Site/Blog: http://thejustinwalsh.com
Location: Louisville, CO
Default language: C++
Favorite languages: C++, Lua, Actionscript, Javascript, D
About:

Saved pastes by tjw:

C++, pasted on Jan 22:
1
2
3
4
5
int main()
{
   unsigned int x = (('a' & 0xFF) << 24) + (('p' & 0xFF) << 16) + (('x' & 0xFF) << 8) + (('e' & 0xFF));

   const char sigma[16] = {'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'};
...
view (17 lines, 1 line of output)
C++, pasted on Jan 22:
1
2
3
4
5
int main()
{
   unsigned int x = (('a' & 0xFF) << 24) + (('p' & 0xFF) << 16) + (('x' & 0xFF) << 8) + (('e' & 0xFF));

   const char sigma[16] = {'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'};
...
view (10 lines, 1 line of output)
C++, pasted on Jan 22:
1
2
3
4
5
int main()
{
   unsigned int x = (('e' & 0xFF) << 24) + (('x' & 0xFF) << 16) + (('p' & 0xFF) << 8) + (('a' & 0xFF));

   const char sigma[16] = {'e','x','p','a','n','d',' ','3','2','-','b','y','t','e',' ','k'};
...
view (10 lines, 1 line of output)
Lua, pasted on Sep 13:
1
2
3
4
5
-- Example table merge

Shared = {
   tunableInt = 1,
   tunableFloat = 200,
...
view (21 lines, 3 lines of output)
C++, pasted on Jan 31:
1
2
3
4
5
// MSVC 8.0 Memory leak detection
// http://msdn.microsoft.com/en-us/library/e5ewb1h3(VS.80).aspx
// http://msdn.microsoft.com/en-us/library/1y71x448.aspx

#define _CRTDBG_MAP_ALLOC
...
view (16 lines)
C++, pasted on Aug 12:
1
2
3
4
#include <iostream>

int main (int argc, char * const argv[])
{
...
view (26 lines, 5 lines of output)
Ruby, pasted on Jan 5:
1
2
3
4
5
while true do
   99.times do |i|
      puts "#{99-i} bottle#{99-i>1 ? 's' : ''} of beer on the wall, #{99-i} bottle#{99-i>1 ? 's' : ''} of beer!"
      puts "   Take one down pass it around, #{98-i} bottle#{98-i==1 ? '' : 's'} of beer on the wall."
      puts ""
...
view (9 lines, 1672 lines of output)