What do you want to save?
Add Code snippet
New code examples
-
Other 2022-01-22 08:45:05
Discord Webhook Java Usage
DiscordWebhook webhook = new DiscordWebhook("https://discordapp.com/api/webhooks/..."); webhook.setContent("Any message!"); webhook.setAvatarUrl("https://your.awesome/image.png"); webhook.setUsername("Cus... Add solution -
Other 2021-11-18 22:36:14
PDO::FETCH_OBJ
It should be mentioned that this method can set even non-public properties. It may sound strange but it can actually be very useful when creating an object based on mysql result. Consider a User class: <?php class User { // Private prope... Add solution -
Other 2021-11-18 19:39:18
https://stackoverflow.com/questions/27420014/how-to-filter-json-object
public class Test { public static void main(String[] args) throws Exception { Type type = new TypeToken<List<Student>>() {}.getType(); Gson gson = new GsonBuilder().registerTypeAdapter(type, new Student.StudentListDeseria... Add solution -
Javascript 2021-11-18 19:15:22
http-proxy-middleware option.onProxyReq:
'use strict'; var express = require('express'); var router = express.Router(); var proxy_filter = function (path, req) { return path.match('^/docs') && ( req.method === 'GET' || req.method === 'POST' ); }; var proxy_options = { target: ... Add solution -
PHP 2021-11-14 22:45:12
get current page slug
$slug = get_queried_object()->post_name; Add solution -
Javascript 2021-11-13 09:28:13
how to add functionality inside js object
// four variables are created and assigned in a single go, // separated by commas var myObj = new Object(), str = 'myString', rand = Math.random(), obj = new Object(); myObj.type = 'Dot syntax'; myObj['date created'] = 'String ... Add solution -
Java 2021-11-11 00:08:07
check if object is equal to another object java in hashest
public class EqualsAndHashCodeExample { public static void main(String... equalsExplanation) { System.out.println(new Simpson("Homer", 35, 120) .equals(new Simpson("Homer",35,120))); Syst... Add solution
Best helpers
Ranking is empty