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
<div class="flex flex-col gap-4 p-4 *:h-14 *:rounded-xl *w-full"> | |
<div class="bg-blue-500"></div> | |
<div class="bg-orange-400"></div> | |
<div class="bg-red-400"></div> | |
</div> |
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
//Load the packages | |
const twilio = require("twilio"); | |
require("dotenv").config(); | |
//Initiate the twilio client with Account SID, token, Phone Number and Receiver Number | |
//You will find the Account SID and token in your Twilio account page | |
// for testing create a test phone number in Twilio | |
// for receiver update your mobile number |
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
<div class="swiper"> | |
<div id="fraction" class="swiper-fraction"></div> | |
<div class="swiper-wrapper"> | |
<div class="swiper-slide"> | |
<img src="/asset/image/slide-01.jpg" alt=""> | |
</div> | |
<div class="swiper-slide"> | |
<img src="/asset/image/slide-02.jpg" alt=""> | |
</div> | |
<div class="swiper-slide"> |
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
/* Using Box shadow and box-reflect */ | |
<div class=a> | |
<style> | |
*{background:#926927} | |
.a{ | |
width: 20; | |
height:20; | |
background:#F8B140; | |
border-radius: 50%; |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Scratch card using HTML5 and Canvas</title> | |
<link rel="stylesheet" href="main.css"> | |
</head> | |
<body> |
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
from PIL import Image | |
Image.open('sunset.jpg') | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import matplotlib.image as mpimg | |
image = mpimg.imread('sunset.jpg') | |
w, h, d = tuple(image.shape) | |
pixels = np.reshape(image, (w * h, d)) |
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
// Before | |
Route::singleton(...)->creatable()->except('create', 'store'); | |
// After | |
Route::singleton(...)->destroyable(); |
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
numbers = [1, 2, 3, 4] | |
# Without the walrus operator | |
i = 0 | |
while i < len(numbers): | |
print(numbers[i]) | |
i += 1 | |
# With the walrus operator | |
while (i := 0) < len(numbers): |
NewerOlder