Skip to content

Instantly share code, notes, and snippets.

View yungwarlock's full-sized avatar

Damian yungwarlock

View GitHub Profile
@yungwarlock
yungwarlock / Accordion.tsx
Created December 19, 2024 08:51
Accordion
import React, { useState } from "react";
interface AccordionItemProps {
title: string;
isOpen: boolean;
onClick: () => void;
content: React.ReactNode;
}
@yungwarlock
yungwarlock / right-scroll.tsx
Created December 19, 2024 08:01
Right Scroll
import React from "react";
const RightScroll = (): JSX.Element => {
return (
<div className="relative border-t border-gray-200 flex flex-col sm:flex-row gap-12 sm:gap-0 w-full h-full justify-between px-4 sm:px-20 py-8 sm:py-12 overflow-visible">
<div className="relative sm:sticky top-0 sm:top-8 flex flex-col gap-1 w-full sm:w-5/12 h-full">
<h3 className="text-6xl font-main font-semibold">Services</h3>
<p className="w-full sm:w-[80%]">We elevate your business digital presence to capture your next online customers.</p>
</div>
@yungwarlock
yungwarlock / myschoolng-past-questions.ipynb
Created October 9, 2024 08:18
MySchoolNG Past Questions.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yungwarlock
yungwarlock / outbound-email-with-cloudflare.md
Created October 7, 2024 12:30 — forked from irazasyed/outbound-email-with-cloudflare.md
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail

@yungwarlock
yungwarlock / learning-pytorch.ipynb
Last active June 26, 2024 10:48
learning-pytorch.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yungwarlock
yungwarlock / sqlite3.bash
Created November 12, 2023 02:26
How to use sqlite3 cli
#!/bin/bash
# Connect to database
sqlite db.sqlite
# Get all tables names
.table
# Get all tables and their information
select * from sqlite_master;
@yungwarlock
yungwarlock / yarn.bash
Last active November 11, 2023 12:21
Yarn workspaces setup
#!/usr/bin/env bash
yarn set version stable
yarn config set nodeLinker node-modules
@yungwarlock
yungwarlock / gist:e91bbf73b8f6d48523d2bc0f1c2cc287
Created October 25, 2023 08:42
How to renable android 12 internet button
#!/bin/sh
settings put global settings_provider_model false
settings put secure sysui_qs_tiles "internet,$(settings get secure sysui_qs_tiles)"
@yungwarlock
yungwarlock / mobile.yaml
Created October 15, 2023 16:54
Simple Github action to build flutter project
name: Mobile
on:
workflow_dispatch:
push:
branches: [master]
permissions:
contents: read
pull-requests: read
@yungwarlock
yungwarlock / globals.css
Last active September 30, 2023 15:18
Tailwind hidescrollbar
@tailwind base;
@tailwind components;
@tailwind utilities;
@layer utilities {
@layer components {
/* Hide scrollbar for Chrome, Safari and Opera */
.no-scrollbar::-webkit-scrollbar {