Skip to content

Instantly share code, notes, and snippets.

@sifue
sifue / 無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ.md
Last active May 19, 2024 00:26
無料で読めるポール・グレアムの「ハッカーと画家」+αの日本語訳のみのまとめ
@aggarwalsushant
aggarwalsushant / ublockStaticCustomFilters.txt
Last active May 19, 2024 00:25
uBlock Origin Custom filters | Ad block | Adblock list | Pure Youtube experience - Purest 0 Ads in Video
! Custom static filter list - Sushant Aggarwal
!__________________________ Google & Youtube Ads __________________________
# Zero Ads in Youtube Videos | No watermarks, Cards, Info. Nothing! Zilch! Nada!
||youtube.com/annotations_
youtube.com##.ytp-ce-element-show
youtube.com##.ytp-ce-element
youtube.com##.ytp-cards-teaser-text
youtube.com##.ytp-cards-button-icon-default
youtube.com##.annotation-type-text.annotation
@Nickguitar
Nickguitar / bypassing_discord_masked_links_filter.md
Last active May 19, 2024 00:24
Bypassing Discord's masked links filter

STABLE DIFFUSION GUIDE

UNLEASH ARTISTIC MASTERY WITH STABLE DIFFUSION!

There are similar text-to-image generation services like DALLE and MidJourney. Why use Stable Diffusion?

  • Open-source: Many enthusiasts have created free tools and models.
  • Designed for low-power computers.
  • It’s free to download, use and run.
@Avaq
Avaq / combinators.js
Last active May 19, 2024 00:21
Common combinators in JavaScript
const I = x => x
const K = x => y => x
const A = f => x => f (x)
const T = x => f => f (x)
const W = f => x => f (x) (x)
const C = f => y => x => f (x) (y)
const B = f => g => x => f (g (x))
const S = f => g => x => f (x) (g (x))
const S_ = f => g => x => f (g (x)) (x)
const S2 = f => g => h => x => f (g (x)) (h (x))
@lancejpollard
lancejpollard / meta-tags.md
Created March 5, 2012 13:54
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta name="keywords" content="your, tags"/>
<meta name="description" content="150 words"/>
<meta name="subject" content="your website's subject">
<meta name="copyright"content="company name">
<meta name="language" content="ES">
import { Client } from "@upstash/qstash"
import { NextRequest } from "next/server"
const baseUrl = process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`
: "http://localhost:3000"
interface Step<I> {
create: <O>(action: (prevResult: Awaited<I>) => O) => Step<O>
finally: (action: (prevResult: Awaited<I>) => any) => any
@luizcalaca
luizcalaca / git-alias-pretty-formats.md
Last active May 19, 2024 00:07
Git configuration: alias and console formatting

Git configuration

How to configure several alias and formatting the git console

https://git-scm.com/docs/pretty-formats

Edit configuration file

git config --list
git config core.editor code (configuring to use VsCode)
git config --global --edit (After you call to edit)
@Ravarcheon
Ravarcheon / spectralRotation.py
Created May 18, 2024 13:23
rotates an audio file by 90 degrees in the spectrum while being a reversible process with minimal loss (only floating point errors which are like -150 dB but thats literally silence ahaha~)
import numpy as np
import soundfile as sf
from scipy.fftpack import fft, ifft
def rotateSignal(signal,flip):
if flip:
signal = signal[::-1]
x = np.concatenate((signal, signal[1:][::-1])) # concatenating the array with a reverse of itself makes it such that the fourier transform doesn't layer over a reversed version of itself in the inverse fft
rotSig = np.real(ifft(x))
@leyafo
leyafo / schema.sql
Last active May 19, 2024 00:05
slippod sql schema
CREATE TABLE IF NOT EXISTS cards (
id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
entry TEXT NOT NULL,
created_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL,
updated_at TIMESTAMP DEFAULT (strftime('%s', 'now')) NOT NULL
);
CREATE VIRTUAL TABLE IF NOT EXISTS cards_fts USING fts5(
entry,
content='cards',