What do you want to save?
Add Code snippet
New code examples
-
Java 2022-03-27 16:10:41
example patch request java
@PatchMapping(path = "/{id}", consumes = "application/json-patch+json")public ResponseEntity<Customer> updateCustomer(@PathVariable String id, @RequestBody JsonPatch patch) { try { Customer customer = customerService.fi... Add solution -
PHP 2022-03-27 15:55:01
bindparam php
<?php /* Exécution d'une requête préparée en liant des variables PHP */ $calories = 150; $couleur = 'rouge'; $sth = $dbh->prepare('SELECT nom, couleur, calories FROM fruit WHERE calories < ? AND couleur = ?'); $... Add solution -
Python 2022-03-27 11:25:12
chech box in tkinter
from tkinter import * master = Tk() var1 = IntVar() Checkbutton(master, text="male", variable=var1).grid(row=0, sticky=W) var2 = IntVar() Checkbutton(master, text="female", variable=var2).grid(row=1, sticky=W) mainloop() Add solution -
Other 2022-03-27 10:45:04
godot platformer movement
extends KinematicBody2D # The player is a kinematic body, hence extends Kine.. # Adjustable variables of the player # export is used to allow to edit the values outside the script export var speed = 500 # The speed of the character export var gravity = 3... Add solution -
Shell/Bash 2022-03-27 09:45:49
terraform env variables
#Terraform Environment Variables:- export TF_CLI_CONFIG_FILE="$HOME/.terraformrc-custom" export TF_INPUT=0 export TF_LOG_PATH=./terraform.log export TF_LOG=TRACE TF_CLI_ARGS="-input=false" terraform apply -force is the equivalent to ... Add solution -
Kotlin 2022-03-27 07:40:17
var and val in kotlin
val and var both are used to declare a variable. var is like general variable and it's known as a mutable variable in kotlin and can be assigned multiple times. val is like Final variable and it's known as immutable in kotlin and can be initialized only s... Add solution