Skip to content

Instantly share code, notes, and snippets.

View memsranga's full-sized avatar
🐵
it's monkey time!

Shanmukha memsranga

🐵
it's monkey time!
View GitHub Profile
@memsranga
memsranga / gpt-context-window-size.csv
Last active September 30, 2024 11:57
gpt-context-window-size
Model Description Context Window
gpt-4-turbo The latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling. Currently points to gpt-4-turbo-2024-04-09. 128000 tokens
gpt-4-turbo-2024-04-09 GPT-4 Turbo with Vision model. Vision requests can now use JSON mode and function calling. gpt-4-turbo currently points to this version. 128000 tokens
gpt-4-turbo-preview GPT-4 Turbo preview model. Currently points to gpt-4-0125-preview. 128000 tokens
gpt-4-0125-preview GPT-4 Turbo preview model intended to reduce cases of 'laziness' where the model doesn’t complete a task. 128000 tokens
gpt-4-1106-preview GPT-4 Turbo preview model featuring improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. This is a preview model. 128000 tokens
gpt-4 Currently points to gpt-4-0613. See continuous model upgrades. 8192 tokens
gpt-4-0613 Snapshot of gpt-4 from June 13th 2023 with improved function calling support. 8192 tokens
@memsranga
memsranga / private_fork.md
Created August 1, 2020 14:04 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare [email protected]:usi-systems/easytrace.git

@memsranga
memsranga / README.md
Created July 23, 2019 19:37 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

@memsranga
memsranga / easing.js
Created July 23, 2019 16:35 — forked from gre/easing.js
Simple Easing Functions in Javascript - see https://github.com/gre/bezier-easing
/*
* Easing Functions - inspired from http://gizma.com/easing/
* only considering the t value for the range [0, 1] => [0, 1]
*/
EasingFunctions = {
// no easing, no acceleration
linear: function (t) { return t },
// accelerating from zero velocity
easeInQuad: function (t) { return t*t },
// decelerating to zero velocity