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
/* | |
Three people are playing the following betting game. | |
Every five minutes, a turn takes place in which a random player rests and the other two bet | |
against one another with all of their money. | |
The player with the smaller amount of money always wins, | |
doubling his money by taking it from the loser. | |
For example, if the initial amounts of money are 1, 4, and 6, | |
then the result of the first turn can be either | |
2,3,6 (1 wins against 4); | |
1,8,2 (4 wins against 6); or |
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
# Three people are playing the following betting game. | |
# Every five minutes, a turn takes place in which a random player rests and the other two bet | |
# against one another with all of their money. | |
# The player with the smaller amount of money always wins, | |
# doubling his money by taking it from the loser. | |
# For example, if the initial amounts of money are 1, 4, and 6, | |
# then the result of the first turn can be either | |
# 2,3,6 (1 wins against 4); | |
# 1,8,2 (4 wins against 6); or | |
# 2,4,5 (1 wins against 6). |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Project : OWASP Code Crawler | |
Company : Open Web Application Security Project | |
Developer: Tripurari Rai / Alessio Marziali | |
Last Update : 05 25 2008 | |
--> | |
<CodeCrawlerDatabase> | |
<KeyPointer> | |
<k_name>Trace.Warn</k_name> |
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
#!/usr/bin/env python | |
from __future__ import division | |
"""flawfinder: Find potential security flaws ("hits") in source code. | |
Usage: | |
flawfinder [options] [source_code_file]+ | |
See the man page for a description of the options.""" |
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
import sun.misc.Unsafe; | |
import java.util.Arrays; | |
import java.util.Random; | |
/** | |
* @author mh | |
* @since 12.02.11 | |
*/ | |
public class StringSearcher { |
NewerOlder