What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-03-14 19:35:15
Image react native
//Local import (relative path) <Image source={require("./assets/snack-icon.png")} /> //External import (web path) you should specify the width and height <Image source={{uri:"https://picsum.photos/200", width:200,height:200 }}... Add solution -
Python 2022-03-11 19:20:18
python pillow resize image
from PIL import Image # Image.open() can also open other image types img = Image.open("some_random_image.jpg") # WIDTH and HEIGHT are integers resized_img = img.resize((WIDTH, HEIGHT)) resized_img.save("resized_image.jpg") Add solution -
Html 2022-02-28 01:15:02
video values in html
<!-- video attributes --> <video src="(link)" poster="(thumbnail's link)" controles autoplay loop muted preload="auto|metadata|none">(video's alt)</video> <!-- you can adjust width and height with css--> Add solution -
Javascript 2022-02-01 22:10:41
extended class call method from super in javascript
class Rectangle { constructor(height, width) { this.name = 'Rectangle'; this.height = height; this.width = width; } sayName() { console.log('Hi, I am a ', this.name + '.'); } get area() { return this.height * this.width; } ... Add solution -
Javascript 2022-01-26 07:00:10
photo in React native
//Local import (relative path) <Image source={require("./assets/snack-icon.png")} /> //External import (web path) you should specify the width and height <Image source={{uri:"https://picsum.photos/200", width:200,height:200 }}... Add solution -
Other 2022-01-24 16:06:06
Drawing a rectangle in Canvas with user input
<!doctype html> <html> <head> <link rel="stylesheet" type="text/css" media="all" href="css/reset.css" /> <!-- reset css --> <script type="text/javascript" src="http://... Add solution