I hereby claim:
- I am tuttlem on github.
- I am tuttlem (https://keybase.io/tuttlem) on keybase.
- I have a public key whose fingerprint is 4E3E ED83 4041 0AAD 58FC B89C 692A EBE9 0953 9D86
To claim this, I am signing this object:
| from __future__ import annotations | |
| from dataclasses import dataclass | |
| from typing import ( | |
| Any, | |
| Callable, | |
| Generic, | |
| Iterable, | |
| Iterator, | |
| Optional, |
| import numpy as np | |
| # --- Utility functions --- | |
| def sigmoid(x): | |
| return 1 / (1 + np.exp(-x)) | |
| def sigmoid_derivative(x): | |
| # Assumes x has already had sigmoid applied | |
| return x * (1 - x) |
| import pygame | |
| import random | |
| import sys | |
| import math | |
| pygame.init() | |
| WIDTH, HEIGHT = 800, 600 | |
| SCREEN = pygame.display.set_mode((WIDTH, HEIGHT)) | |
| CLOCK = pygame.time.Clock() |
| # mini_transformer.py | |
| # A friendly, didactic, CPU-first, decoder-only Transformer (GPT-style). | |
| # --------------------------------------------------------------------- | |
| # Dependencies: | |
| # torch | |
| # numpy | |
| # | |
| # How to run: | |
| # python mini_transformer.py | |
| # |
| package main | |
| import ( | |
| "os" | |
| "encoding/json" | |
| "net/http" | |
| "strconv" | |
| "github.com/gorilla/mux" | |
| "github.com/gorilla/handlers" |
| #include <chrono> | |
| #include <sstream> | |
| #include <string> | |
| #include <memory> | |
| #include <iostream> | |
| #include <cstdlib> | |
| #include "picosha2.h" | |
| class block { |
| import java.awt.BorderLayout; | |
| import java.awt.Canvas; | |
| import java.awt.Color; | |
| import java.awt.Frame; | |
| import java.awt.Graphics2D; | |
| import java.awt.Toolkit; | |
| import java.awt.image.BufferStrategy; | |
| import java.util.Timer; | |
| import java.util.TimerTask; |
I hereby claim:
To claim this, I am signing this object:
| package org.test.customformat; | |
| import java.io.IOException; | |
| import java.util.*; | |
| import org.apache.hadoop.fs.Path; | |
| import org.apache.hadoop.conf.*; | |
| import org.apache.hadoop.io.*; | |
| import org.apache.hadoop.mapreduce.*; | |
| import org.apache.hadoop.mapreduce.lib.input.FileInputFormat; |
| #!/usr/bin/env python | |
| import sys | |
| import itertools | |
| from math import sqrt | |
| def read_input(file): | |
| for line in file: | |
| # ensure that the newline is taken out of the equation | |
| snums = line.replace('\n', '').split(',') |