Skip to content

Instantly share code, notes, and snippets.

@moeyua
moeyua / collection.md
Last active January 15, 2025 18:20
由 Moeyua 搜集、整理、维护的、个人自用的收藏列表。

Collection

这里是由 Moeyua 搜集、整理、维护的、个人自用的收藏列表。

工具

一些在线的工具,可能是日常会用到的工具,也可能是开发相关的工具

  • bookmark.style - 可以将任意链接转换生成可分享的图片。
  • tldraw - 一个画图的地方。
@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active January 15, 2025 18:19
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

@joshdholtz
joshdholtz / ATinySampleApp.swift
Last active January 15, 2025 18:18
Super basic SwiftUI app (70 lines of code) with paywall using RevenueCat
import SwiftUI
import RevenueCat
struct Constants {
static let apiKey = "<your_api_key>" // Will look like: appl_bunchofotherstuffhere
static let entitlementName = "<your_entitlement_name>" // I use something like "pro"
}
@main
struct ATinySampleApp: App {
All grep, sed, jq and awk related commands
@Edarlingen
Edarlingen / breadcrumbs.php
Last active January 15, 2025 18:18
Хлебные крошки в Netcat.
<?php
$url = $nc_core->catalogue->get_url_by_id($catalogue);
$full_url_without_query = $url . $nc_core->url->get_parsed_url('path');
$h1 = $nc_core->page->get_h1();
$breadcrumb_position = 1;
$current_cc_subdivision_id = $current_cc['Subdivision_ID'] ?: 0;
?>
<ol class='breadcrumb' itemscope='' itemtype='https://schema.org/BreadcrumbList'>
@gunvirranu
gunvirranu / Vector2D.java
Created March 17, 2017 07:03
Complete 2D Vector Class for Java
public class Vector2D {
public double x;
public double y;
public Vector2D() { }
public Vector2D(double x, double y) {
this.x = x;
@mohit-raj-purohit
mohit-raj-purohit / git-commit-message-template.md
Last active January 15, 2025 18:16
How to create a git message template for better commit messages

Using Git Commit Message Templates to Write Better Commit Messages

Introduction

In this document, we will discuss how to set up and use Git commit message templates to write better commit messages.

Prerequisites

  • Git installed on your local machine
  • Basic understanding of Git and commit messages
const { spawn } = require('child_process');
const videoUrls = ["YOUR-TIKTOK-VIDEO-THAT-YOU-WANT-TO-DOWNLOAD"];
async function downloadVideo(videoUrl) {
return new Promise((resolve, reject) => {
const ytDlpProcess = spawn('yt-dlp', [videoUrl]);
ytDlpProcess.stdout.on('data', (data) => {
console.log(`yt-dlp stdout: ${data}`);
# User Input:
[TASK]: <DESCRIBE YOUR TASK>
[PROJECT OVERVIEW]: <ENTER PROJECT OVERVIEW, OR LINK TO FILE CONTAINING THE DETAILS>
[MAIN BRANCH]: <YOUR MAIN BRANCH>
[YOLO MODE]: <ask|on|off>
---
# Global Objectives
1. Read the "User Input" at the bottom
@willurd
willurd / web-servers.md
Last active January 15, 2025 18:15
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000