Skip to content

Instantly share code, notes, and snippets.

@tam17aki
tam17aki / HyperLSTMCell.py
Last active April 19, 2025 02:14
An implementation of hyper LSTM.
# -*- coding: utf-8 -*-
# Copyright (C) 2017 by Akira TAMAMORI
# Copyright (C) 2016 by hardmaru
# 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
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

ZSH CheatSheet

This is a cheat sheet for how to perform various actions to ZSH, which can be tricky to find on the web as the syntax is not intuitive and it is generally not very well-documented.

Strings

Description Syntax
Get the length of a string ${#VARNAME}
Get a single character ${VARNAME[index]}
@DaRipper91
DaRipper91 / hpmini.pacmanity
Last active April 19, 2025 02:12
hpmini: List of installed packages
a52dec
abseil-cpp
accounts-qml-module
accountsservice
acl
adobe-source-code-pro-fonts
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-hk-fonts
adobe-source-han-sans-jp-fonts
adobe-source-han-sans-kr-fonts
@DaRipper91
DaRipper91 / cachyos.pacmanity
Last active April 19, 2025 02:11
cachyos: List of installed packages
7zip
a52dec
abiword
abseil-cpp
accounts-qml-module
accountsservice
acl
adobe-source-code-pro-fonts
adobe-source-han-sans-cn-fonts
adobe-source-han-sans-hk-fonts
@jyshnkr
jyshnkr / Rename Xcode Project.md
Last active April 19, 2025 01:59
How to Rename the Xcode Project (Including all the files & folders)

Rename the Xcode Project (Including Files and Folders)

Step 1 - Rename the project:

  1. Click on the project you want to rename in the "Project navigator" in the left panel of the Xcode window.

  2. In the right panel, select the "File inspector", and the name of your project should be found under "Identity and Type". Change it to your new name.

  3. When the dialog asks whether to rename or not rename the project's content items, click "Rename". Say yes to any warning about uncommitted changes.

@willurd
willurd / web-servers.md
Last active April 19, 2025 01:56
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
@burkeholland
burkeholland / prd.md
Created April 10, 2025 19:50
TheUrlist PRD

Project Requirements Document: The Urlist Website

The following table outlines the detailed functional requirements of The Urlist website.

Requirement ID Description User Story Expected Behavior/Outcome
FR001 Creating a New URL List As a user, I want to be able to start a new, empty list so I can begin adding URLs. The system should provide a clear way for the user to initiate the creation of a new list, potentially presenting an empty list view or an "add new list" button.
FR002 A
@htlin222
htlin222 / pub_ready_KM-plot.R
Created April 18, 2025 05:26
Publication-ready KM plot in R
# 安裝並載入所需的套件,使用pacman套件管理器
# 如果pacman未安裝,則先安裝pacman
if (!require("pacman")) install.packages("pacman")
# 使用pacman一次性載入多個套件:ggsurvfit(繪製生存曲線)、survival(生存分析)、ggplot2(繪圖系統)
pacman::p_load(ggsurvfit, survival, ggplot2, showtext)
# Find first TTF font in current directory and load it as "default"
ttf_files <- list.files(pattern = "\\.ttf$", ignore.case = TRUE)
if (length(ttf_files) > 0) {
font_add("default", ttf_files[1])
cat("Loaded font:", ttf_files[1], "\n")
@dmnsgn
dmnsgn / WebGL-WebGPU-frameworks-libraries.md
Last active April 19, 2025 01:52
A collection of WebGL and WebGPU frameworks and libraries

A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.

Engines and libraries ⚙️

Name Stars Last Commit Description
three.js ![GitHub
@xoppa
xoppa / outline.fragment.glsl
Created October 12, 2015 20:42
very basic outline shader
#ifdef GL_ES
#define LOWP lowp
precision mediump float;
#else
#define LOWP
#endif
const float offset = 1.0 / 128.0;
varying vec2 v_texCoords;
uniform sampler2D u_texture;