Skip to content

Instantly share code, notes, and snippets.

@ciiqr
ciiqr / zod-optional-null.ts
Last active February 17, 2026 14:36
zod optional/nullable/nullish differences
// zod schema
z.object({
// valid if string or:
optional: z.string().optional(), // field not provided, or explicitly `undefined`
nullable: z.string().nullable(), // field explicitly `null`
nullish: z.string().nullish(), // field not provided, explicitly `null`, or explicitly `undefined`
});
// type
{
@Quipyowert2
Quipyowert2 / FOSS Alternatives to Adobe's Premiere Pro.md
Created April 28, 2019 01:18
FOSS Alternatives to Adobe's Premiere Pro

Open Source Video Editors:

  1. Blender - I'm not sure if this one counts since it is more of a CAD program than a video editor.

  2. Avidemux:

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting.

  1. OpenShot:
@schuyler1d
schuyler1d / userContent.css
Last active October 21, 2020 21:22
TestDome hiding candidate names/emails userContent.css file for Firefox
/*
Follow the instructions here to install:
https://davidwalsh.name/firefox-user-stylesheet
Then restart Firefox
*/
/*
Follow the instructions here to install:
https://davidwalsh.name/firefox-user-stylesheet
Then restart Firefox
@mattmc3
mattmc3 / modern_sql_style_guide.md
Last active February 27, 2026 15:26
Modern SQL Style Guide
layout default
author mattmc3
title Modern SQL Style Guide
revision 2019-01-17
version 1.0.1
description A guide to writing clean, clear, and consistent SQL.

Modern SQL Style Guide

@mutin-sa
mutin-sa / Top_Public_Time_Servers.md
Last active March 17, 2026 14:15
List of Top Public Time Servers

Google Public NTP [AS15169]:

time.google.com

time1.google.com

time2.google.com

time3.google.com

// Gradle script for detached apps.
import org.apache.tools.ant.taskdefs.condition.Os
void runBefore(String dependentTaskName, Task task) {
Task dependentTask = tasks.findByPath(dependentTaskName);
if (dependentTask != null) {
dependentTask.dependsOn task
}
}
@nijicha
nijicha / install_nodejs_and_yarn_homebrew.md
Last active July 25, 2025 09:02
Install NVM, Node.js, Yarn via Homebrew
@ibraheem4
ibraheem4 / postgres-brew.md
Last active March 18, 2026 07:26
Installing Postgres via Brew (OSX)

Installing Postgres via Brew

Pre-Reqs

Brew Package Manager

In your command-line run the following commands:

  1. brew doctor
  2. brew update
@f0ster
f0ster / slack_history.py
Last active November 8, 2019 01:25
slack history downloader (pub and priv) with rate limit retry :)
#https://gist.github.com/Chandler/fb7a070f52883849de35 SEE HERE
# MIT License
# Copyright (c) 2016 Chandler Abraham
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
@gregblass
gregblass / App.js
Last active September 21, 2019 17:30
Expo/React Navigation - Google Analytics Integration
import React, { Component } from 'react'
import { RootNavigator } from './navigators'
import { GoogleAnalyticsTracker } from './utils/analytics'
import { GA_TRACKING_ID } from './constants'
class App extends Component {
// gets the current screen from navigation state
getCurrentRouteName = (navigationState) => {
if (!navigationState) {
return null