Skip to content

Instantly share code, notes, and snippets.

View adeleke5140's full-sized avatar
💭
crafting software

Kenny adeleke5140

💭
crafting software
View GitHub Profile
@biast12
biast12 / Replace-twitter-logo.user.js
Last active October 13, 2023 10:53
Replaces the X logo with the old Twitter logo
// ==UserScript==
// @name Replaces the X logo with the old Twitter logo
// @description Replaces the X logo with the old Twitter logo by Biast12
// @icon https://abs.twimg.com/favicons/twitter.ico
// @version 1.0.6
// @author Biast12
// @namespace https://twitter.com/Biast12
// @homepageURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @supportURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286
// @updateURL https://gist.github.com/biast12/04f66af3297b9395ec489f7eb16a9286/raw/Replace-twitter-logo.user.js
@yinkakun
yinkakun / axios.ts
Last active September 24, 2023 01:37
next client auth with zustand, axios
import Axios from "axios";
import Router from "next/router";
const API_URL = process.env.NEXT_PUBLIC_API_URL;
export const axios = Axios.create({
baseURL: API_URL,
headers: {
"Content-Type": "application/json",
},
@arinze19
arinze19 / remote-work-resources.md
Last active February 10, 2024 00:11
Remote Work Resources

Having worked remotely for the majority of my career, I've come to settle on this way of working and gathered a few resources that have helped me stay productive. Below I've shared some resources for people looking to transition into remote work or existing workers looking to improve their productivity. Please feel free to open up a PR and add more resources of your own.

Focusing

For the most part, focusing was something I struggled with since I was working out of my bedroom and any time I felt tired I could easily retire to my bed and spend a large chunk of time being unproductive. I counter-acted these habitts with some of the following tools

  1. FocusMate - Productivity web application to enable you do deep work by pairing you with an accountability partner over video for a session of deep and focused work.
    • Free Plan: Limited to 3 sessions per week
  • Paid Plan: Unlimited number of sessions a week
@adeleke5140
adeleke5140 / cons.js
Created January 27, 2023 23:22 — forked from abiodun0/cons.js
For next blog post con cdr car
const cons = (x, y) => (m) => m(x, y)
const car = (z) => z((p, q) => p)
const cdr = (z) => z((p, q) => q)
const someLinkedList = cons(1, cons(2, cons(3 , null)))
// iterating
@roshanlabh
roshanlabh / react-phone-book.js
Created January 24, 2021 13:10
Coderbyte - React Phone Book [solution]
import React, { useState } from "react";
import ReactDOM from "react-dom";
const style = {
table: {
borderCollapse: "collapse",
},
tableCell: {
border: "1px solid gray",
margin: 0,
@laurenzcodes
laurenzcodes / link.tsx
Last active January 12, 2023 17:42
Gatsby Link Component that preserves url parameters after route change
@qoomon
qoomon / conventional_commit_messages.md
Last active May 2, 2024 09:52
Conventional Commit Messages

Conventional Commit Messages

See how a minor change to your commit message style can make a difference.

Tip

Have a look at git-conventional-commits , a CLI util to ensure these conventions and generate verion and changelogs

Commit Message Formats

Default

@abiodun0
abiodun0 / cons.js
Last active January 27, 2023 23:22
For next blog post con cdr car
const cons = (x, y) => (m) => m(x, y)
const car = (z) => z((p, q) => p)
const cdr = (z) => z((p, q) => q)
const someLinkedList = cons(1, cons(2, cons(3 , null)))
// iterating
@ghosh
ghosh / micromodal.css
Last active March 21, 2024 16:12
Demo modal styles for micromodal.js and corresponding expected html. If using this, set the `awaitCloseAnimation` in config to true
/**************************\
Basic Modal Styles
\**************************/
.modal {
font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}
.modal__overlay {
position: fixed;
@gokulkrishh
gokulkrishh / event-loop.md
Created February 10, 2017 05:21 — forked from jesstelford/event-loop.md
Event Loop and Call Stack

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code