Skip to content

Instantly share code, notes, and snippets.

View Dim25's full-sized avatar

Dmytro Filatov Dim25

View GitHub Profile
@Dim25
Dim25 / gpt-4-tokens.txt
Created September 2, 2024 20:59 — forked from s-macke/gpt-4-tokens.txt
All 100k GPT-4 Tokens. New lines are replaced with \n and carriage returns with \r. The index of the token is (index=line-1). The list is extracted using https://github.com/openai/tiktoken
!
"
#
$
%
&
'
(
)
*
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Dim25
Dim25 / hn_seach.js
Created November 7, 2015 06:11 — forked from kristopolous/hn_seach.js
hn job query search
function query() {
var
total = 0, shown = 0,
// HN is done with very unsemantic classes.
job_list = Array.prototype.slice.call(document.querySelectorAll('.c5a,.cae,.c00,.c9c,.cdd,.c73,.c88')),
query_list = Array.prototype.slice.call(arguments);
// This traverses up the dom stack trying to find a match of a specific class
function up_to(node, klass) {
if (node.className === klass) {