What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-14 21:08:15
custom block transparent textures are appearing black in game
// WORKS WITH FABRIC /* in client mod initializer: */ BlockRenderLayerMap.INSTANCE.putBlock(ExampleMod.MY_BLOCK, RenderLayer.getCutout()); // Replace `RenderLayer.getCutout()` with `RenderLayer.getTranslucent()` if you have a translucent texture. /* use... Add solution -
Javascript 2021-09-06 12:19:02
sequelize query result
sequelize.query("UPDATE users SET y = 42 WHERE x = 12").spread(function(results, metadata) { // Results will be an empty array and metadata will contain the number of // affected rows. }) /* In cases where you don't need to access the m... Add solution -
C# 2021-09-03 07:25:01
ternary operator in c#
/* In C#, if condition is true, the first expression is evaluated and becomes the result; if false, the second expression is evaluated and becomes the result. */ // The syntax of ternary operator is: Condition ? Expression1 : Expression2; // Here... Add solution -
PHP 2021-08-27 10:06:02
get previous url symfony 4 in formpage
/* in form */ <input type="hidden" name="referer" value="{{app.request.headers.get('referer')}}"/> /* in controller */ if ($form->isSubmitted() && $form->isValid()) { $em->persist($thisEntity); ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5