Skip to content

Instantly share code, notes, and snippets.

@Lerg
Lerg / colors.lua
Created July 1, 2014 07:22
147 color names as a Lua table, RGB from 0 to 1.
return {
aliceblue = {0.94117647058824, 0.97254901960784, 1},
antiquewhite = {0.98039215686275, 0.92156862745098, 0.84313725490196},
aqua = {0, 1, 1},
aquamarine = {0.49803921568627, 1, 0.83137254901961},
azure = {0.94117647058824, 1, 1},
beige = {0.96078431372549, 0.96078431372549, 0.86274509803922},
bisque = {1, 0.89411764705882, 0.76862745098039},
black = {0, 0, 0},
blanchedalmond = {1, 0.92156862745098, 0.80392156862745},
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active September 29, 2026 01:37
set -e, -u, -o, -x pipefail explanation

PWM fan control in Linux with a Gigabyte Aorus motherboard

  • install lm-sensors with your package manager

sensors

If it won't show any fan/speed, continue

sensor-detect

@sherylynn
sherylynn / install 360 in modern ubuntu.md
Last active September 29, 2026 01:33
install 360 in modern ubuntu 360安全卫士

记在ubuntu 18.04 安装 360安全卫士

首先是下载 360安装本体

curl -o 360.deb -l http://down.360safe.com/linuxsafe/deepin64/360safeforcnos-polkit-3.0.0.71-stripped.deb curl -o virus_lib.deb -l http://down.360safe.com/linuxsafe/deepin64/bdviruslibrary-3.0.0.71.deb

360.deb本身是针对deepin开发的,依赖中有,需要解包

import matplotlib.pyplot as plt
import numpy as np
# Parameters (You can adjust these as needed)
roller_diameter = 5 # mm
rollers_num = 12
cycloid_outer_diameter = 60 # mm (will be ignored if lower then minimum)
input_shaft_diameter = 5 # mm
# Function to plot cycloidal points
@tresf
tresf / CFG.html
Last active September 29, 2026 01:22
FGL Printing Examples
<F3>
<RC10,10>Serial Number = <VA1>
<RC60,10>Firmware = <VA7>
<RC110,10>Special Head = <VA18>
<RC160,10>Font File = <VA2>
<RC210,10>Printer Type = <VA11>
<RC260,10>DPI = <VA17>
<RC310,10>Expansion Mem = <VA50>
<RC360,10>Path Type = <VA19>
<RC410,10>Ticket Type = <VA13>
@drillan
drillan / jev-finance-projects.md
Created September 20, 2026 02:27
Jev (TypeSafe System One) finance & trading projects — surveyed 2026-09-20

Jev (TypeSafe System One) — Finance & Trading Projects

Projects using Jev, TypeSafe AI's System One decision model (released 2026-09-15), in investment, trading, and financial-data contexts. Surveyed 2026-09-20 via GitHub API and community awesome-lists.

Reference project

  • jarrodwatts/jev-trader (★1.3k, 2026-09-16) — One AI trade decision every Monad block (~300 ms). Jev reads the Kuru MON-USDC order book and answers buy or sell; the bot posts a post-only limit order one tick inside the touch, earning the spread. Bun/TypeScript, dry-run mode, SSE dashboard. The template most projects below derive from.

Live trading / trading systems

@mathix420
mathix420 / medium.user.js
Last active September 29, 2026 01:16
User Script Bypass Medium / NYT / WaPo / Bloomberg / Reuters / Economist / FT/ Paywall - Working late 2026 - Click the RAW button to install
// ==UserScript==
// @name Freedium Article Redirect
// @namespace Violentmonkey Scripts
// @run-at document-start
// @match *://medium.com/*
// @match *://*.medium.com/*
// @match *://nytimes.com/*
// @match *://*.nytimes.com/*
// @match *://washingtonpost.com/*
// @match *://*.washingtonpost.com/*
@marcoaiwithfefe-hub
marcoaiwithfefe-hub / 1-setup-guide.md
Created September 27, 2026 14:39
慳 context 四招 setup guide + session handoff skill (IG @marcorefusestocode)

慳 context 四招:setup guide

條片講嘅四招,Claude Code 同 Codex 都用得。每一招:做咩、點裝、點用、Codex 點做、注意咩。第四招個 handoff skill 唔係 Claude 官方嘅,Claude Code 本身冇 /handoff。係我上網搵到嘅做法,自己改良咗(加咗直接送去新 session,同埋新 session 接手嗰幾條規則)。成個檔案喺下面第二個 file,copy 落去就用得。

先講個原理:你打嘅每一句,AI 都會由頭再讀一次成個 chat。個 chat 越長,每句就越貴,limit 就去得越快。四招就係叫佢少讀啲、少答啲。

想知你個 chat 而家幾滿:Claude Code 打 /context。


<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {