What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-11 11:35:19
Java program to print prime numbers from 2 to n
// Java program to print prime numbers from 2 to n import java.util.Scanner; public class PrimeNumberFrom2Ton { public static void main(String[] args) { int loop, max; System.out.print("Please enter highest (maximum) number: "... Add solution -
Python 2022-03-11 09:20:04
print input in python
# Take input from user and store it as a variable. E.g. I store the input as 'user_inp' user_inp = input("Enter anything you want: ") #Now you can print it by using print function print("You entered ", user_inp) # If you don't want &q... Add solution -
Other 2022-03-11 08:25:12
Rejetto HTTP File Server
#!/usr/bin/python # Exploit Title: HttpFileServer 2.3.x Remote Command Execution # Google Dork: intext:"httpfileserver 2.3" # Date: 04-01-2016 # Remote: Yes # Exploit Author: Avinash Kumar Thapa aka "-Acid" # Vendor Homepage: http://re... Add solution -
Other 2022-03-10 09:05:07
how do you generate test data
When=> sprint planning meeting Who=> Mostly I get test data from PO However in some instances, especially in negative test scenario I may need to generate test data. I use java faker to generate data How => Faker faker=new Fak... Add solution -
Python 2022-03-10 07:20:02
hwo to except every error in python try statemen
try: print "Performing an action which may throw an exception." except Exception, error: print "An exception was thrown!" print str(error) else: print "Everything looks great!" finally: print "Finally... Add solution -
Other 2022-03-08 06:35:17
how to get a variable outside the foreach loop
$date_array = array(); if( !empty($row_edit) ){ $stageDates = explode(', ',$row_edit['placement_stage_date']); foreach( $stageDates as $stageDate ){ //echo $stageDate.'<br/>'; $date_array[] = $stageDate; } } // print $sta... Add solution