Skip to content

Instantly share code, notes, and snippets.

View rob137's full-sized avatar

Rob rob137

  • Oxford, United Kingdom
View GitHub Profile
@rob137
rob137 / gist:0b9f909c1c3a5620ecd604e8b9a3666f
Created July 11, 2023 13:40
Chat GPT Code Interpreter Python packages
| Package | Version | Description | Use Cases |
|:--------------------------|:---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| absl-py
@rob137
rob137 / gist:a4d76b9845fe7c4cdd60b46f600c5775
Created July 10, 2023 05:39
ChatGPT Code Interpreter dependencies
| Package | Version | Description | Use Cases |
|:--------------------------|:---------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------|
| absl-py | 1.4.0 | No description available
Open sidebar
"Decoding Shader Code Fragment"
Model: GPT-4
User
for(float i,e,g,v;i++<50.;o+=.02/exp(e*3e4)){v=2.;vec3 p=vec3((FC.xy*v-r)/r.y*g,g);p.yz*=rotate2D(.9);p.y-=.56;for(int j;j++<11;p=abs(p)/e-vec3(.4,4,0))p.xz=length(p.xz)*vec2(cos(e=fract(atan(p.x,p.z)*.955+(j<2?t/3.:s))-.5),e),v/=e=clamp(dot(p,p),.1,.5);g+=e=p.x/v;}
ChatGPT
This code seems to be a fragment of a Shader, possibly written in GLSL or a similar shader language.
@rob137
rob137 / gist:ad0e929bdaab2b6a556af3c6253fb5f7
Created June 20, 2019 09:18
Minor typo fixes for README.md of victor95pc/jest-react-hooks-mock
[![Build Status](https://travis-ci.org/victor95pc/jest-react-hooks-mock.svg?branch=master)](https://travis-ci.org/victor95pc/jest-react-hooks-mock)
[![Coverage Status](https://coveralls.io/repos/github/victor95pc/jest-react-hooks-mock/badge.svg?branch=master)](https://coveralls.io/github/victor95pc/jest-react-hooks-mock?branch=master)
[![DeepScan grade](https://deepscan.io/api/teams/4042/projects/5844/branches/46640/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=4042&pid=5844&bid=46640)
[![License][license-image]][license-url]
[license-url]: https://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/npm/l/make-coverage-badge.svg
# What is it?
Finally a simple solution to access the states and dispatchers inside your react hook components
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
rob@rob-XPS-13-9370  ~/proof-of-concept/sensor_api   master  python3 flask_api.py
/home/rob/.local/lib/python3.6/site-packages/psycopg2/__init__.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi>.
""")
* Serving Flask app "flask_api" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
* Restarting with stat
@rob137
rob137 / index.html
Created March 11, 2019 13:30 — forked from ryanbaumann/index.html
San Francisco 3D Lidar Extrusions
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8' />
<title></title>
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.47.0/mapbox-gl.css' rel='stylesheet' />
<style>
StrengthExchange (StrengthOverflow?)
HIGH LEVEL DESCRIPTION:
- Strength training app.
- The app will allow users (ideally PTs) to create strength training programs that can be accessed other users (ideally customers).
- The programs will be 'one size fits all', relying on customers' "one rep maximums" (1RMs) as a guide for the kg/lb weight for each exercise.
(For MVP this means that PTs do not coach customers, just provide training programs.)
- The dashboard will provide:
- A program builder, which allows trainers to populate a training cycle (say, 12 weeks) with workouts based on exercises, weights as percentage of 1RMs, and reps.
- Feedback from users about each workout (likes/signups will be used as feedback to coaches, telling them which programs are most popular)
- Relevant coaching materials to revise PTs on instructing the movements (eg https://www.youtube.com/watch?v=yWRkBH_q_Ag)
@rob137
rob137 / gist:bc78ba1e10179fe240f05e586d960c11
Last active March 8, 2018 02:55
Alternative purpose statements
1. Intermediate barbell training app.
It would allow users to register an account, provide their '1 rep maximums' (1RMs) for each of 4 basic exercises (squat, deadlift, shoulder press, bench press). The app would then show a dashboard with a program for them to follow that takes about 12 weeks to complete, based on percentages of their 1RMs. The dashboard would also provide instructions/tips for safely performing each exercise (maybe Picinterest/Youtube APIs).
PURPOSE STATEMENT: [App] provides a structured, personalised strength training program, helping users get stronger while avoiding injuries.
USER STORIES. As a user, I should be able to:
- Save my 'one rep maximums' (1RMs) for each exercise
- See a personalised program based on these exercises
- See video and pictures giving instructions for safely performing the exercises
- Mark workouts as completed and record how they well they went
- See the final 1RM goal I am working towards for the current 12 week program
@rob137
rob137 / gist:37c47f199eef9893139e87e89ea058ad
Created March 7, 2018 08:44
Fullstack Capstone user stories
As a user, I should be able to sign up
As a user, I should be able to log in/out
As a user, I should be able to find and follow students
As a user, I should be able to add/remove projects (including links to external sites)
As a user, I should be able to see activity updates from the students I follow
As a user, I should be able to remove students from my 'follow' list
As a user, I should be able to reset my password
As a user, I should be able to leave comments/'likes' on projects/feed updates
As a user, I should be able to sends private messages to students
As a user, I should be able to edit my profile (bio, profile picture etc)