Skip to content

Instantly share code, notes, and snippets.

@OrionReed
OrionReed / DOM3D.js
Last active March 28, 2024 12:59
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@umcconnell
umcconnell / loader.js
Created November 26, 2019 18:00
Loading animation for node console
// Adapted from https://stackoverflow.com/questions/34848505/how-to-make-a-loading-animation-in-console-application-written-in-javascript-or
/**
* Create and display a loader in the console.
*
* @param {string} [text=""] Text to display after loader
* @param {array.<string>} [chars=["⠙", "⠘", "⠰", "⠴", "⠤", "⠦", "⠆", "⠃", "⠋", "⠉"]]
* Array of characters representing loader steps
* @param {number} [delay=100] Delay in ms between loader steps
* @example
@karbassi
karbassi / Git gpg stuck.md
Created February 5, 2020 15:26
If your git process gets stuck during the `gpg` signing phase, you can restart `gpg` by running

If your git process gets stuck during the gpg signing phase, you can restart gpg by running

gpgconf --kill gpg-agent
@dhoeric
dhoeric / 0_README.md
Last active March 28, 2024 12:55
Google Calendar - Public Holiday Calendars
@reinvanoyen
reinvanoyen / terminal-prompt-git-branch-zsh.md
Last active March 28, 2024 12:55
Add Git Branch Name to Terminal Prompt (MacOS zsh)

Add Git Branch Name to Terminal Prompt (zsh)

Updated for MacOS with zsh

  • Catalina
  • Big Sur
  • Monterey
  • Ventura
  • Sonoma

screenshot

atm
BeanInstantiator
atm.constants
Currency.java
TransactionType.java
atm.entities
com.app.constants
AccountType.java
BookingStatus.java
Genre.java
Language.java
NotificationType.java
PaymentMode.java
PaymentStatus.java
SearchCriteria.java
SeatStatus.java
parkinglot
Application.java
parkinglot.constants
Action.java
Color.java
ErrorConstants.java
PaymentMode.java
PaymentStatus.java
com.app.config
AppConfig.java // to init factories beans
com.app.constants
AccountType.java
Role.java
Search.java
VehicleState.java
VehicleType.java
@DevShivansh
DevShivansh / 1-lld-google-calender.txt
Last active March 28, 2024 12:55
lld-google-calender
com.app
BeanFactory.java
com.app.dto
CreateMeetingRequest.java
com.app.entities
Calender.java