Skip to content

Instantly share code, notes, and snippets.

View nalmeida's full-sized avatar

Nicholas nalmeida

View GitHub Profile
@OrionReed
OrionReed / dom3d.js
Last active September 23, 2024 03:02
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; // ¯\\_(ツ)_/¯
@kepano
kepano / obsidian-web-clipper.js
Last active September 22, 2024 21:47
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
@mcarneiro
mcarneiro / app.js
Last active May 3, 2021 14:45
nodejs simple static vanilla server (for dev/homolog reasons)
const http = require('http')
const fs = require('fs')
const port = process.env.PORT || process.env.npm_config_port || process.env.npm_package_config_port || 3000
const typeList = {
html: 'text/html',
svg: 'image/svg+xml',
json: 'application/json',
js: 'application/javascript',
css: 'text/css',
@patelneel55
patelneel55 / video-merge.ps1
Last active August 5, 2023 13:29
video-merge.ps1 - Merge multiple media files into a single or a group of files using ffmpeg
#########################################
# Quick script to merge video files #
#########################################
<#
.SYNOPSIS
Concatenates a list of video files into one or multiple video files.
.DESCRIPTION
This application allows you to feed it a list of all video files to be combined and combines them to another media files with every file containing 'max' original files.
@jesstelford
jesstelford / 01-shape-up-to-kindle.md
Last active September 10, 2024 14:26
Read SHAPE UP by basecamp on a Kindle / reMarkable / eReader

Read Shape Up by basecamp on a kindle / reMarkable / eReader

Basecamp's new book Shape Up is now available online (https://basecamp.com/shapeup) to read page-by-page.

There is a .pdf version, but that's not the best format for Kindle / other eReaders. Instead, we can convert the page-by-page into an eReader friendly format.

Part 1: Convert to a single page

NOTE: This has only been tested on Chrome

@ww9
ww9 / one-line-text-art-and-emojis_utf8_ascii.txt
Last active September 23, 2024 01:50
Emojis, UTF8, ASCII (one line) #misc
# Collection of one line text art (◕‿◕✿)
Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗
ּבּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
/**
* Settings
*/
var settings = {
scripts: true, // Turn on/off script tasks
polyfills: true, // Turn on/off polyfill tasks
styles: false, // Turn on/off style tasks
svgs: false, // Turn on/off SVG tasks
static: false, // Turn on/off static file copying
@bradtraversy
bradtraversy / docker-help.md
Last active September 23, 2024 03:01
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info

**Jeff Escalante**
# Dato & Contentful
There are many areas in which I'd consider Dato to be much stronger of a CMS than
contentful, and one in which I'd consider the opposite to be the case. I will try to be as
balanced as possible with this overview, as I am not employed by dato or anything ‐ my
goal is to ensure that my clients and developers get the best possible experience working
with a CMS.
@zehfernandes
zehfernandes / pliim-turnOff.scpt
Last active September 16, 2024 06:39
One click and be ready to go up on stage and shine! - https://zehfernandes.github.io/pliim/
# Turn on Notifications
do shell script "defaults -currentHost write com.apple.notificationcenterui doNotDisturb -bool FALSE; defaults -currentHost delete com.apple.notificationcenterui doNotDisturbDate; osascript -e 'quit application \"NotificationCenter\" ' && killall usernoted" -- this set 'Do not disturb' to false in the pref
# Show Desktop
do shell script "defaults write com.apple.finder CreateDesktop -bool true; killall Finder"
# Show all windows
tell application "System Events"
set visible of (every process) to true
end tell