What do you want to save?
Add Code snippet
New code examples
-
Java 2021-09-24 09:07:02
api process flow
I HAVE FOUR DIFFERENT PROCESS TO IMPLEMENT 1. Checking API contract 2. Creating test cases 3. Executing test cases 4. Implementing different test flows 1. Checking API Contract An API is essentially a contract between the client and the server or betwee... Add solution -
C# 2021-09-24 04:13:03
C# get all child classes of a class
//through reflection using System.Reflection; //as a reusable method/function Type[] GetInheritedClasses(Type MyType) { //if you want the abstract classes drop the !TheType.IsAbstract but it is probably to instance so its a good idea to keep it. ret... Add solution -
Javascript 2021-09-23 05:05:04
javascript compare object arrays keep only entries not in both
var result = result1.filter(function (o1) { return result2.some(function (o2) { return o1.id === o2.id; // return the ones with equal id }); }); // if you want to be more clever to find those in common: let result = result1.filter(o1 => ... Add solution -
Python 2021-09-22 20:06:02
python try else pass
try: # Code to test / execute print('Test') except (SyntaxError, IndexError) as E: # specific exceptions # Code in case of SyntaxError for example print('Synthax or index error !') except : # Code for any other exception print('Other er... Add solution -
Assembly 2021-09-21 11:14:04
enter 64 bit mode
If paging is enabled, disable paging. If CR4.PAE is not already set, set it. Set IA32_EFER.LME = 1. Load CR3 with a valid PML4 table. Enable paging. At this point you will be in compatibility mode. A far jump may be executed to switch to long mode. Howeve... Add solution -
PHP 2021-09-21 09:12:03
odk with php mysql
<?php //With default Collect Submission path setting, this script would be located at https://your.server/submission/index.php //this is where all the uploaded files will eventually be stored. $datapath='/path/to/your/datafiles/'; //Set a variable to t... Add solution -
PHP 2021-09-21 07:39:05
php get screen width
//Save in cookie to access with $_COOKIE["screenXYZ"]; //SetScreenResToCookie.php <?php if (isset($_POST)) { echo "success"; setcookie("screenW", $_POST["screenWidth"], time() + (86400 * 30), '/'); s... Add solution