This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Checking if an image exist in your image folder | |
*/ | |
let loadImage = function(variable){ | |
var image = new Image(); | |
var url_image = './ImageFolder/' + variable + '.jpg'; | |
image.src = url_image; | |
if (image.width == 0) { | |
return `<img src='./ImageFolder/defaultImage.jpg'>`; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"telegram": { | |
"text": "[.](https://media.giphy.com/media/2IFXZDePUQAAU/giphy.gif).", | |
"parse_mode": "Markdown" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class LongUnsigned { | |
public static void main(String[]args){ | |
//Este método acepta como parámetro una cadena de caracteres, lo que permite el uso de un valor mayor | |
long number = Long.parseUnsignedLong("17916881237904312345"); | |
//Para poder visualizar esta variable tenemos que hacer uso del método toUNsignedString() | |
String numberStr = Long.toUnsignedString(number); | |
System.out.println(numberStr); | |
System.out.println(number); |