Skip to content

Instantly share code, notes, and snippets.

@tripplyons
tripplyons / template.html
Last active May 9, 2017 17:08
HTML template
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Template</title>
<!-- Put your CSS below -->
<style>
h1 {
color: red;
@tripplyons
tripplyons / config.json
Created March 25, 2016 18:13
Bootstrap Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "#ffc107",
"@brand-success": "#8bc34a",
function hex (c) {
var s = "0123456789abcdef";
var i = parseInt (c);
if (i == 0 || isNaN (c))
return "00";
i = Math.round (Math.min (Math.max (0, i), 255));
return s.charAt ((i - i % 16) / 16) + s.charAt (i % 16);
}
/* Convert an RGB triplet to a hex string */
#ifdef GL_ES
precision mediump float;
#endif
#extension GL_OES_standard_derivatives : enable
uniform float time;
uniform vec2 mouse;
uniform vec2 resolution;
start = exps:(expr+) {
return exps.join('')
}
call = first:((func:function) / (identifier:id)) "(" exp:expr? ")" {
return first + "(" + exp + ")"
}
id = chars:([a-zA-Z]+) {
return chars.join('')
}
def = "#" identifier:id {
@tripplyons
tripplyons / index.html
Created May 1, 2017 20:38
Stupid Timer
<div id="card"></div>
@tripplyons
tripplyons / handy.py
Created May 16, 2017 21:01 — forked from rainyear/handy.py
Hand posture detection with OpenCV.
#!/usr/bin/env python
import cv2
import numpy as np
def main():
cap = cv2.VideoCapture(0)
while(cap.isOpened()):
ret, img = cap.read()
skinMask = HSVBin(img)

Keybase proof

I hereby claim:

  • I am tripplyons on github.
  • I am tripplyons (https://keybase.io/tripplyons) on keybase.
  • I have a public key ASA5KtyJ1Fc2DNtvxpgYx3KDt-BNycFwToVVYted1zBm0Ao

To claim this, I am signing this object:

@tripplyons
tripplyons / rwkv-7.py
Created January 16, 2025 16:27
Parallel and serial JAX implementations of the RWKV-7 recurrence
import jax
import jax.numpy as jnp
def associative_op(left, right):
left_wab, left_vk = left
right_wab, right_vk = right
new_wab = jnp.matmul(left_wab, right_wab)
new_vk = jnp.matmul(left_vk, right_wab) + right_vk
return new_wab, new_vk
@tripplyons
tripplyons / run-searx.sh
Last active December 25, 2025 23:23
Free web search MCP using a local SearXNG instance
mkdir -p config data
cat > config/settings.yml << 'EOF'
server:
bind_address: "0.0.0.0"
secret_key: "secret"
search:
formats:
- html
- json
EOF