What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 12:00:11
unity make raycast ignore object
Transform targetTransform = null; // target assigned in inspector RaycastHit[] hits; // returned hits LayerMask mask = new LayerMask(); // set in inspector - USE LAYER MASK TO FILTER hits = Physics.RaycastAll(transform.position, transform.forward, ma... Add solution -
Javascript 2022-03-27 11:30:14
how to check consecutive characters in javascript
var password = '5236aaa121'; for(var i = 0; i< password.length; i++) { var numberOfRepeats = CheckForRepeat(i, password, password.charAt(i)); //do something } function CheckForRepeat(startIndex, originalString, charToCheck) { var repeatC... Add solution -
PHP 2022-03-27 10:40:13
wordpress check if class exists
if(class_exists('dbinfo')){ //do something } Add solution -
C++ 2022-03-27 10:20:12
why exceptions can lead to memory leaks
//If an exception is raised between allocation and deallocation, memory leak will occur. void f1() { int* ptr = new int; // do something which may throw an exception // we never get here if an exception is thrown delete ptr; } Add solution -
TypeScript 2022-03-27 08:30:01
unit test naming convention
MethodName_StateUnderTest_ExpectedBehavior Example: add_twoPositiveIntegers_returnsTheirSum() Variant: Add_TwoPositiveIntegers_ReturnsTheirSum() Note: This is not camel case, so the question of whether to start each new chunk with a capital is up... Add solution -
Other 2022-03-27 07:25:32
adding redirect_uri in octorate testing
In the following example you will find a param that is called redirect_uri, that uri needs to be whitelisted from Octorate. So write [email protected] asking for add the page you can host on your website. This step in mandatory to go in producti... Add solution -
Javascript 2022-03-27 07:05:02
queue data structure in javascript 2018
var Queue = (()=>{ const map = new WeakMap(); let _items = [] class Queue{ constructor(...items){ //initialize the items in queue map.set(this, []); _items = map.get(this); // enqueuing the items passed to the construc... Add solution
Best helpers
User 768576
+10
Viki
+5
Riptiki
+5
Suraj tiwari
+5
Johnno Nolan
+5
Bmcl
+5
Nuno
+5
AllenG
+5
Hong
+5
Hugh Zang
+5
Marcel Souza
+5
Rosey28
+5