Skip to content

Instantly share code, notes, and snippets.

View hawz's full-sized avatar
🇬🇪

Alberto Masia hawz

🇬🇪
  • [:+:] Sardinia, Italy
View GitHub Profile
# Analyzer.rb - Getting input from user
p "What is your first name?"
first_name = gets.chomp
puts "What is your last name?"
last_name = gets.chomp
# String Interpolation
full_name = "#{first_name} #{last_name}"
{
"id" : 2,
"userName" : "John.Doctor",
"fullName" : "John Doctor",
"uuid" : null,
"roles" : [ "doctor" ],
"permissions" : null,
"email" : "fake embedded email",
"telephoneNumber" : "fake embedded telephoneNumber",
"ward" : "fake embedded ward",
public function actionDcc_send_pin_vocal() {
$medium = $this->validateRequestByMedium();
if(!($medium == 'web_customer' || $medium == 'dealer')) {
Response::forbidden()->output();
die;
}
$input = file_get_contents('php://input');
$input = json_decode($input, true);
$id_pratica = @$input['id_pratica'];