Ctrl + V dump

  • (76 Pages)
  • +
  • « First
  • 21
  • 22
  • 23
  • 24
  • 25
  • Last »

1129 Replies - 83343 Views - Last Post: 30 January 2017 - 08:42 AM

#331 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Ctrl + V dump

Posted 31 May 2009 - 03:53 AM

44983592

#332 Flash0429   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 19
  • Joined: 08-May 07

Re: Ctrl + V dump

Posted 01 June 2009 - 07:32 PM

private DecimalFormat price = new DecimalFormat ("$0.00");

#333 searockruz   User is offline

  • D.I.C Regular

Reputation: 24
  • View blog
  • Posts: 460
  • Joined: 07-March 09

Re: Ctrl + V dump

Posted 01 June 2009 - 09:51 PM

 

else
			{
				Session["logerr"] = TextBoxName.Text;
				Response.Redirect("../include_gen/loginerror.aspx");
				Labelstatus.Text = "<font color = red> Authentication failed</font>";
			}
		}
		catch (Exception ex)
		{
			Labelstatus.Text = "<font color = 'red'>" + ex.Message +"</font>";
		}
	}

/*
  ____________________
/					\
| Searock Ruzario	|
| 2002-2009		  |
\___  _______________/
	|/
 (o_o)
 //\
 V_/_


*/



created by Jean-Michel Bechet

#334 Toxicterror   User is offline

  • blub

Reputation: 15
  • View blog
  • Posts: 687
  • Joined: 10-March 09

Re: Ctrl + V dump

Posted 02 June 2009 - 01:04 AM

*empty since 4 hours... WOW*

#335 chili5   User is offline

  • D.I.C Lover

Reputation: 20
  • View blog
  • Posts: 1,146
  • Joined: 28-December 07

Re: Ctrl + V dump

Posted 02 June 2009 - 03:17 AM

Dead Poet's Society

#336 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Ctrl + V dump

Posted 02 June 2009 - 03:28 AM

http://img220.images...47/sigforce.png

#337 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Ctrl + V dump

Posted 02 June 2009 - 06:30 AM

(String[] args)

#338 eZACKe   User is offline

  • Garbage Collector

Reputation: 120
  • View blog
  • Posts: 1,278
  • Joined: 01-June 09

Re: Ctrl + V dump

Posted 02 June 2009 - 11:40 AM

import random
import sys
import time

def drawBoard(board):
	hline = '	'
	for i in range(1,6):
		hline += (' ' * 9) + str(i)

	print hline
	print '   ' + ('0123456789' * 6)
	print

	for i in range(15):
		if i < 10:
			extraSpace = ' '
		else:
			extraSpace = ''
		print '%s%s %s %s' %(extraSpace, i, getRow(board, i), i )

	print
	print '   ' + ('0123456789' * 6)
	print hline


def getRow(board, row):
	boardRow = ''
	for i in range(60):
		boardRow += board[i][row]
	return boardRow

def getNewBoard():
	board = []
	for x in range(60):
		board.append([])
		for y in range(15):
			if random.randint(0,1) == 0:
				board[x].append('`')
			else:
				board[x].append('^')

	return board


def getRandomDragons(numDragons):
	dragons = []
	for i in range(numDragons):
		dragons.append([random.randint(0,59), random.randint(0,14)])
	return dragons


# could be wrong =======================
def getRandomTenCaves(numTenCaves):
	tenCaves = []
	for i in range(numTenCaves):
		tenCaves.append([random.randint(0,59), random.randint(0,14)])
	return tenCaves

# could be wrong =======================
def getRandomThreeCaves(numThreeCaves):
	threeCaves = []
	for i in range(numThreeCaves):
		threeCaves.append([random.randint(0,59), random.randint(0,14)])
	return threeCaves

# could be wrong =======================
def getRandomHolyGrail(numHolyGrails):
	holyGrail = []
	for i in range(numHolyGrails):
		holyGrail.append([random.randint(0,59), random.randint(0,14)])
	return holyGrail

						

def isValidMove(x,y):
	return x >= 0 and x <= 59 and y >= 0 and y <= 14

def makeMove(board, dragons, tenCaves, threeCaves, holyGrail, x, y):
	if not isValidMove(x,y):
		return False

	smallestDistance = 100
	for dx, dy in dragons:
		if abs(dx-x) > abs(dy-y):
			distance = abs(dx-x)
		else:
			distance = abs(dy-y)

		if distance < smallestDistance:
			smallestDistance = distance

		if smallestDistance == 0:
			print 'You have found a Dragon, prepare for Battle!'
			time.sleep(5)
			liveOrDie = random.choice('1 2 3 4'.split())
			if liveOrDie != '2':
				dragons.remove([x,y])
				return 'You beat the dragon and took his hide!'
				
			else:
				return 'The Dragon is stronger than you thought!'
				return 'You died and lost a node! But the Dragon remains in the same spot.'
		else:
			if smallestDistance < 10:
				board[x][y] = str(smallestDistance)
				return 'Dragon\'s cave detected at a distance of %s miles from the Magical Node.' %(smallestDistance)
			else:
				board[x][y] = '|'
				return 'Magical Node did not detect anything. All Dragons out of range.'
	for tx, ty in tenCaves:
		if abs(tx-x) > abs(ty-y):
			distance = abs(tx-x)
		else:
			distance = abs(ty-y)

		if distance < smallestDistance:
			smallestDistance = distance

		if smallestDistance == 0:
			print 'You step into the cave.....'
			time.sleep(2)
			friendOrFoe = random.choice('1'.split())
			if friendOrFoe == '1':
				tenCaves.remove([x,y])
				return 'This Cave doesn\'t have a Dragon in it. Instead you find 10 Magical Nodes!'
			else:
				return 'This code will never be seen by anyone!'
			
				
			
			 
		else:
			if smallestDistance < 10:
				board[x][y] = str(smallestDistance)
				return 'Dragon\'s cave detected at a distance of %s miles from the Magical Node.' %(smallestDistance)
			else:
				board[x][y] = '|'
				return 'Magical Node did not detect anything. All Dragons out of range.'

	for thx, thy in threeCaves:
		if abs(thx-x) > abs(thy-y):
			distance = abs(thx-x)
		else:
			distance = abs(thy-y)

		if distance < smallestDistance:
			smallestDistance = distance

		if smallestDistance == 0:
			print 'You step into the cave....'
			time.sleep(2)
			friendOrFoe = random.choice('1'.split())
			if friendOrFoe == '1':
				threeCaves.remove([x,y])
				return 'This Cave doesn\'t have a Dragon in it. Instead you find 3 Magical Nodes!' 
			else:
				return 'This code will never be seen by anyone!'
			 
		else:
			if smallestDistance < 10:
				board[x][y] = str(smallestDistance)
				return 'Dragon\'s cave detected at a distance of %s miles from the Magical Node.' %(smallestDistance)
			else:
				board[x][y] = '|'
				return 'Magical Node did not detect anything. All Dragons out of range.'
	for hx, hy in holyGrail:
		if abs(hx-x) > abs(hy-y):
			distance = abs(hx-x)
		else:
			distance = abs(hy - y)

		if distance < smallestDistance:
			smallestDistance = distance

		if smallesDistance == 0:
			print 'You step into the cave......'
			time.sleep(2)
			friendOrFoe = random.choice('1'.split())
			if friendOrFoe == '1':
				holyGrail.remove([x,y])
				return 'This Cave doesn\'t have a Dragon in it. Instead you find the Holy Grail!'
			else:
				return 'This code will never be seen by anyone!'

		else:
			if smallestDistance < 10:
				board[x][y] = str(smallestDistance)
				return 'Dragon\'s cave detected at a distance of %s miles from the Magical Node.' %(smallestDistance)
			else:
				board[x][y] = '|'
				return 'Magical Node did not detect anything. All Dragons out of range.'
			

	
	   
		 
		 
			

def enterPlayerMove():
	print 'Where do you want to drop the next Magical Node? (0-59 0-14) (or type quit)'
	while True:
		move = raw_input()
		if move.lower() == 'quit':
			print 'Thanks for playing!'
			sys.exit()

		move = move.split()
		if len(move) == 2 and move[0].isdigit() and move[1].isdigit() and isValidMove(int(move[0]), int(move[1])):
			return [int(move[0]), int(move[1])]
		print 'Enter a number from 0 to 59, a space, then a number from 0 to 14.'


def playAgain():
	print 'Do you want to play again? (yes or no)'
	return raw_input().lower().startswith('y')


def showInstructions():
	 print '''Instructions:
 You are a brave Knight from Camelot who was sent on a dangerous quest to rid
 the world of three Dragons. You know the dragons are in the land of Camelot,
 but not exactly sure where. Luckily for you, Merlin has given you 16 Magical
 Nodes that are capable of telling you if a Dragon is near by.
 
 To play, enter the coordinates of the point in Camelot you wish to drop a
 Magical Node. The Node can find out how far away the closest Dragon is to it.
 For example, the n below marks where the node was dropped, and the 2's
 represent distances of 2 away from the node. The 4's represent
 distances of 4 away from the node.

	 444444444
	 4	   4
	 4 22222 4
	 4 2   2 4
	 4 2 n 2 4
	 4 2   2 4
	 4 22222 4
	 4	   4
	 444444444
 Press enter to continue...'''
	 raw_input()

	 print '''For example, here is a dragon (the d) located a distance of 2 away
 from the magical node (the n):

	 22222
	 d   2
	 2 n 2
	 2   2
	 22222

 The point where the node was dropped will be marked with a 2.

 The Dragons stay in their caves, so you don't have to worry abou them moving
 around. Magical Nodes can detect Dragons up to a distance of 9 miles. If all
 Dragons are out of range, the point will be marked with |

 If a node is directly dropped on a cave that has a Dragon in it, you have
 discovered the location of the Dragon, and you will have to fight it. Once
 you defeat the Dragon, you will collect his hide for proof and the Magical
 Node will remain there.

 Press enter to continue...'''
	 raw_input()
	 print
			

print 'D R A G O N ~ H U N T !'
print
print 'Would you like to view the instructions? (yes/no)'
if raw_input().lower().startswith('y'):
	showInstructions()
						

		
while True:
	magicalNodes = 16
	theBoard = getNewBoard()
	theDragons = getRandomDragons(3)
	drawBoard(theBoard)
	previousMoves = []
	#could be wrong===============
	tenNodes = getRandomTenCaves(20)
	threeNodes = getRandomThreeCaves(20)
	grail = getRandomHolyGrail(10)

	while magicalNodes > 0:
		if magicalNodes > 1: extraSnode = 's'
		else: extraSnode = ''
		if len(theDragons) > 1: extraSdrag = 's'
		else: extraSdrag = ''
		print 'You have %s Magical Node%s left. %s Dragon%s remaining.' %(magicalNodes, extraSnode, len(theDragons), extraSdrag)

		x, y = enterPlayerMove()
		previousMoves.append([x,y])

		moveResult = makeMove(theBoard, theDragons, tenNodes, threeNodes, grail, x, y)
		if moveResult == False:
			continue
		elif moveResult == 'You have found a Dragon, prepare for Battle!':
			for x, y in previousMoves:
					makeMove(theBoard, theDragons, tenNodes, threeNodes, grail, x, y)
			drawBoard(theBoard)
			print moveResult
			if moveResult == 'The Dragon is stronger than you thought!':
				magicalNodes -= 1
				time.sleep(5)
				print 'You died and lost a node!'
				time.sleep(3)
				print 'Merlin revived you.'
				time.sleep(3)
				print 'The Dragon remains in the same spot.'


		elif moveResult == 'You step into the cave.....':
			for x, y in previousMoves:
					makeMove(theBoard, theDragons, tenNodes, threeNodes, grail, x, y)
			drawBoard(theBoard)
			print moveResult
			if moveResult == 'This Cave doesn\'t have a Dragon in it. Instead you find 10 Magical Nodes!':
				magicalNodes += 10
				time.sleep(5)
				print 'You now have 10 more nodes to help you in your search!'


		elif moveResult == 'You step into the cave....':
			for x, y in previousMoves:
					makeMove(theBoard, theDragons, tenNodes, threeNodes, grail, x, y)
			drawBoard(theBoard)
			print moveResult
			if moveResult == 'This Cave doesn\'t have a Dragon in it. Instead you find 3 Magical Nodes!':
				magicalNodes += 3
				time.sleep(5)
				print 'You now have 3 more nodes to help you in your search!'


		else:
			if moveResult == 'You step into the cave......':
				for x, y in previousMoves:
					makeMove(theBoard, theDragons, tenNodes, threeNodes, grail, x, y)
			drawBoard(theBoard)
			print moveResult
			if moveResult == 'This Cave doesn\'t have a Dragon in it. Instead you find the Holy Grail!':
				print 'You pick up the glass......'
				time.sleep(5)
				print 'You feel weightless for a second, and then all you see is a flash of white!'
				time.sleep(5)
				print 'The Holy Grail teleported you to the Cave of the King Dragon!'
			
				
				
			
				
			
			
				
				   
		


		if len(theDragons) == 0:
			print 'You found and killed all the Dragons! Congratulations and good game!'
			break

		magicalNodes -= 1

	if magicalNodes == 0:
		print 'We\'ve run out of Magical Nodes! You now must report your'
		print 'misfortune to King Arthur!'
		print 'He will not be happy. It\'ll probably be off with your head!'
		print 'GAME OVER.'
		print '	The remaining Dragons were here:'
		for x, y in theDragons:
			print '	%s, %s' %(x,y)

	if not playAgain():
		sys.exit()






	
				
			
																			



#339 Nikhil_07n   User is offline

  • The cheese stands alone..
  • member icon

Reputation: 54
  • View blog
  • Posts: 2,490
  • Joined: 09-January 09

Re: Ctrl + V dump

Posted 02 June 2009 - 07:43 PM

Kinzie Kenner

#340 Toxicterror   User is offline

  • blub

Reputation: 15
  • View blog
  • Posts: 687
  • Joined: 10-March 09

Re: Ctrl + V dump

Posted 03 June 2009 - 12:16 AM

xenophobia

#341 xDutchGunn   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 113
  • Joined: 25-May 09

Re: Ctrl + V dump

Posted 03 June 2009 - 02:06 AM

De eerste supersonische transcontinentale vlucht van Californië naar New York in 3 uur, 23 minuten en 8 seconden door John Glenn.

Dutch line, was going to translate for count to a million..

#342 NeoTifa   User is offline

  • NeoTifa Codebreaker, the Scourge of Devtester
  • member icon





Reputation: 4935
  • View blog
  • Posts: 20,264
  • Joined: 24-September 08

Re: Ctrl + V dump

Posted 19 July 2009 - 11:20 AM

THREADCROMANCY!!1!!!!!!! :splat:

I just had to, this was funny.

8:32 PM - Dude_OU812: hey neotifa
8:33 PM - Dude_OU812: im sorry i think ivr been meant o u latly
9:42 PM - Dude_OU812: please let me join
9:42 PM - Dude_OU812: please
9:42 PM - NeoTifa: no n00b
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: ds
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: sd
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: sd
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: ds
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: sd
9:42 PM - Dude_OU812: sd
9:42 PM - Dude_OU812: dd
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: dd
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: d
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: f
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: ad
9:42 PM - Dude_OU812: asd
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: a
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:42 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - Dude_OU812: s
9:43 PM - NeoTifa: what
9:43 PM - Dude_OU812: how about now
9:43 PM - NeoTifa: no
9:43 PM - Dude_OU812: well do u hate me
9:43 PM - NeoTifa: i do now
9:43 PM - NeoTifa: you keep fucking bugging me
9:43 PM - NeoTifa: while im in the middle of hordes
9:43 PM - NeoTifa: in expert
9:43 PM - NeoTifa: im trying to get an achievement
9:43 PM - Dude_OU812: im sorry can i have ur respect again
9:44 PM - Dude_OU812: kick 1 of ur players for me
9:44 PM - NeoTifa: no
9:44 PM - Dude_OU812: please i love you
9:44 PM - NeoTifa: tbh theres a spot open
9:44 PM - NeoTifa: but youre a fucking n00b
9:44 PM - Dude_OU812: no ive gotten alot better trust me
9:45 PM - Dude_OU812: please
9:45 PM - Dude_OU812: i like u alot
9:45 PM - NeoTifa: you dont even know me
9:45 PM - Dude_OU812: as an online friend
9:45 PM - Dude_OU812: im really good please
9:46 PM - Dude_OU812: im only 10 bbut i have a heart and soul of a 36 year old
9:46 PM - NeoTifa: oh wtf ever
9:46 PM - Dude_OU812: come on
9:47 PM - Dude_OU812: do u like
9:47 PM - Dude_OU812: me
9:47 PM - NeoTifa: i already fuckign told you theres a spot open
9:47 PM - Dude_OU812: do u like me
9:47 PM - NeoTifa: no youre annoying
9:47 PM - Dude_OU812: u wanna mic chat ......together
9:48 PM - Dude_OU812: u wanna mic chat ......together
9:48 PM - NeoTifa: no
9:48 PM - NeoTifa: im in game for the 10th fucking time
9:48 PM - Dude_OU812: wait hoe old r u
9:48 PM - NeoTifa: too old for you
9:48 PM - Dude_OU812: come on are u married
9:48 PM - NeoTifa: yes
9:48 PM - NeoTifa: and have 3 kids
9:49 PM - Dude_OU812: but ur my friend im young
9:49 PM - NeoTifa: youre not my friend
9:49 PM - Dude_OU812: come on weres ur husband
9:49 PM - NeoTifa: in bed
9:49 PM - Dude_OU812: so how old r u
9:50 PM - NeoTifa: 29
9:50 PM - Dude_OU812: crap i feel really bad
9:50 PM - NeoTifa: good im mid horde
9:50 PM - Dude_OU812: i just wanted to..u know
9:51 PM - Dude_OU812: ok

#343 Kandayo   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 48
  • Joined: 17-July 09

Re: Ctrl + V dump

Posted 19 July 2009 - 08:54 PM

lol, I have this from when I was copying over a question:

Write a program that asks how many miles you have driven and how many gallons of
gasoline you have used and then reports the miles per gallon your car has gotten. Or, if
you prefer, the program can request distance in kilometers and petrol in liters and then
report the result European style, in liters per 100 kilometers.

#344 [email protected]   User is offline

  • JMP *0x0(%RIP)
  • member icon

Reputation: 37
  • View blog
  • Posts: 1,019
  • Joined: 20-February 09

Re: Ctrl + V dump

Posted 21 July 2009 - 02:44 AM

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> Browser Info </title>
</head>
<script language="C#" runat="server">
System.Web.HttpBrowserCapabilities browser;

void Page_Load(Object sender, EventArgs e) {
browser = Request.Browser;
}
</script>
<body>
<b>User Agent:</b> <%= Request.UserAgent %><br/>
<b>Browser:</b> <%= browser.Browser %><br/>
<b>Id:</b> <%= browser.Id %><br/>
</body>
</html>

... LAME :(

#345 paperclipmuffin   User is offline

  • Disassembling...
  • member icon

Reputation: 13
  • View blog
  • Posts: 944
  • Joined: 16-April 09

Re: Ctrl + V dump

Posted 21 July 2009 - 03:18 AM

<html>
<title>Source</title>
<head>
<img src="
</head>
<body bgcolor="skyblue" link="maroon">
<div align=left>
<table bgcolor="white" border="2">
<tr>
<th>
<font size="5">
Sources
</font>
</th>
</tr>
<td>
<br />
<a href="http://www.source.webs.com/85.htm">

  • (76 Pages)
  • +
  • « First
  • 21
  • 22
  • 23
  • 24
  • 25
  • Last »