Skip to content

Instantly share code, notes, and snippets.

View alqahtani's full-sized avatar
👋
Hey!

Ahmed AlQahtani alqahtani

👋
Hey!
View GitHub Profile
@alqahtani
alqahtani / ll.js
Created November 10, 2023 11:54
Remove Liked videos on youtube
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
async function deleteNextVideo(id){
let menu = document.querySelectorAll("yt-icon-button[class='dropdown-trigger style-scope ytd-menu-renderer']")[id];
menu.click();
// Tiny delay to give the menu time to render
await sleep(300);
@alqahtani
alqahtani / ReplyFactory.php
Created December 12, 2020 20:05
Following with build forum with TDD on Laracasts
<?php
namespace Database\Factories;
use App\Models\User;
use App\Models\Reply;
use App\Models\Thread;
use Illuminate\Database\Eloquent\Factories\Factory;
class ReplyFactory extends Factory
@import url('https://fonts.googleapis.com/css?family=Cairo:300,400,600,700');
/* Edit */
header.course-profile {
background: none !important;
margin: 0 !important;
padding: 0 !important;
border: none !important;
border-bottom: 1px solid #ededed;
@import url('https://fonts.googleapis.com/css?family=Cairo:300,400,600,700');
@font-face {
font-family: 'GE-SS-Two-Light';
src: url("/static/kkux/fonts/GE-SS-Two-Light.57c8eaecda67.eot");
src: url("/static/kkux/fonts/GE-SS-Two-Light.57c8eaecda67.eot?#iefix") format('embedded-opentype'),
url("/static/kkux/fonts/GE-SS-Two-Light.36575edd3583.woff") format('woff'),
url("/static/kkux/fonts/GE-SS-Two-Light.3cd97ed36f7f.ttf") format('truetype'),
url("/static/kkux/fonts/GE-SS-Two-Light.2a6ac252aff5.svg#GE-SS-Two-Light") format('svg');
font-weight: normal;
@alqahtani
alqahtani / .eslintrc
Last active May 16, 2018 21:31
best .eslintrc for me till now => from @Remchi
// install the following packages:
// yarn add --dev eslint prettier eslint-config-airbnb@^15.0.1 eslint-config-prettier eslint-plugin-prettier eslint-plugin-react eslint-plugin-import eslint-plugin-jsx-a11y@^5.1.1
{
"extends": ["airbnb", "prettier", "prettier/react"],
"plugins": ["react", "prettier"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module",