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
'use server' | |
export async function signUpAction() { | |
const { data, error } = await authClient.signUp.email({ | |
email: "[email protected]", | |
password: "password", | |
name: "John Doe", | |
}); | |
return { data, error }; |
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
""" | |
This script scrapes discussions from the Yoast SEO plugin's public forum on | |
WordPress (https://wordpress.org/support/plugin/wordpress-seo/). The script | |
fetches discussion titles and URLs from all available pages. | |
The script also features lazy loading by adding a delay between requests. This | |
helps ensure responsible web scraping by not overwhelming the server. | |
The fetched URLs are then saved to multiple CSV files, each containing a | |
specified number of URLs (default is 500). The CSV files are saved in the 'dist/' |
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
#!/usr/bin/env python3 | |
""" | |
Workday Random Numbers Generator | |
This script generates random floating-point numbers between 8 and 10, | |
rounded to 2 decimal places, only for workdays in a specified month and year. | |
Since the script usually runs from the first week of the following month, the | |
default month and year are set to the previous month and year. The script also | |
highlights weekends in red. The output is printed to the console and copied to | |
your clipboard. |
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
## | |
# You should look at the following URL's in order to grasp a solid understanding | |
# of Nginx configuration files in order to fully unleash the power of Nginx. | |
# https://www.nginx.com/resources/wiki/start/ | |
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/ | |
# https://wiki.debian.org/Nginx/DirectoryStructure | |
# | |
# In most cases, administrators will remove this file from sites-enabled/ and | |
# leave it as reference inside of sites-available where it will continue to be | |
# updated by the nginx packaging team. |
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
;;;;;;;;;;;;;;;;;;;;; | |
; FPM Configuration ; | |
;;;;;;;;;;;;;;;;;;;;; | |
; All relative paths in this configuration file are relative to PHP's install | |
; prefix (/usr). This prefix can be dynamically changed by using the | |
; '-p' argument from the command line. | |
;;;;;;;;;;;;;;;;;; | |
; Global Options ; |
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
{ | |
"editor.fontSize": 13, | |
"editor.fontFamily": "JetBrains Mono", | |
"workbench.colorTheme": "GitHub Light Default", | |
"breadcrumbs.enabled": false, | |
"editor.codeLens": false, | |
"editor.formatOnSave": true, | |
"editor.formatOnPaste": true, | |
"editor.fontLigatures": true, | |
"editor.minimap.enabled": false, |
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 time import sleep | |
from signal import pause | |
from gpiozero import LED, MotionSensor | |
ledNorthRed = LED(21) | |
ledNorthYellow = LED(20) | |
ledNorthGreen = LED(16) | |
ledSouthRed = LED(26) | |
ledSouthYellow = LED(19) |
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
module.exports = { | |
purge: [], | |
theme: { | |
extend: { | |
gridTemplateColumns: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', | |
'auto-fill': 'repeat(auto-fill, minmax(0, 1fr))', | |
}, | |
gridTemplateRows: { | |
'auto-fit': 'repeat(auto-fit, minmax(0, 1fr))', |
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
CREATE DATABASE `dbms`; | |
USE `dbms`; | |
-- 1 | |
CREATE TABLE `college`( | |
`cname` varchar(50), | |
`state` varchar(10), | |
`enrollment` INT | |
); |
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
-- 1 | |
CREATE TABLE `teachers` ( | |
`teacher_id` INT NOT NULL AUTO_INCREMENT, | |
`name` VARCHAR(50) NOT NULL, | |
`designation` VARCHAR(50) NOT NULL, | |
`department` VARCHAR(50) NOT NULL, | |
`phone_number` INT NOT NULL, | |
PRIMARY KEY(`teacher_id`) | |
); |
NewerOlder