Skip to content

Instantly share code, notes, and snippets.

@nmc4
nmc4 / peloton-15-min-ride.json
Last active March 18, 2025 20:10
peloton-15-min-ride
{
"7db87519afc040f6b9d3a113fc9685fc": {
"class_name": "15 min Country Ride",
"instructor": "Leanne Hainsby-Alldis"
},
"9a141cd9844e4c86bd1803e5c509fe56": {
"class_name": "15 min Country Ride",
"instructor": "Leanne Hainsby-Alldis"
},
"73b54b3c889b47038cdc1768efdcafbe": {
@jlia0
jlia0 / agent loop
Last active December 13, 2025 09:06
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@ayamflow
ayamflow / gist:96a1f554c3f88eef2f9d0024fc42940f
Last active August 3, 2025 07:01
Threejs Fit plane to screen
var cameraZ = camera.position.z;
var planeZ = 5;
var distance = cameraZ - planeZ;
var aspect = viewWidth / viewHeight;
var vFov = camera.fov * Math.PI / 180;
var planeHeightAtDistance = 2 * Math.tan(vFov / 2) * distance;
var planeWidthAtDistance = planeHeightAtDistance * aspect;
// or
@Volcanoscar
Volcanoscar / greyscale.frag
Created January 19, 2017 08:28 — forked from wiseoldduck/greyscale.frag
A simple glsl color -> greyscale shader, using luminosity method
// fragment shader
//
// RGBA color to RGBA greyscale
//
// smooth transition based on u_colorFactor: 0.0 = original, 1.0 = greyscale
//
// http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/
// "The luminosity method is a more sophisticated version of the average method.
// It also averages the values, but it forms a weighted average to account for human perception.
// We’re more sensitive to green than other colors, so green is weighted most heavily. The formula
@btroncone
btroncone / rxjs_operators_by_example.md
Last active September 14, 2025 16:48
RxJS 5 Operators By Example
@Ahrengot
Ahrengot / staggered-animation.scss
Last active December 1, 2016 20:02
Staggered animation using SASS & Compass
li {
@for $i from 1 through 10 {
&:nth-child(#{$i}) {
@include experimental(animation-delay, #{$i * 0.2}s);
}
}
}