I hereby claim:
- I am dreygur on github.
- I am dreygur (https://keybase.io/dreygur) on keybase.
- I have a public key ASDEEZT5E3gaTkLSbCL9EApCQzhcT2xxZeL9L5aM3K5wYQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
| class Poke { | |
| constructor(interval) { | |
| if (interval) this.INTERVAL = interval; | |
| else this.INTERVAL = 10000; | |
| this.timer = null; | |
| } | |
| set interval(seconds) { | |
| if (!seconds || typeof seconds !== 'number') throw new Error('Interval must be in number of seconds'); |
| 'use client'; | |
| import React, { CSSProperties, useState } from 'react' | |
| import { | |
| Cell, | |
| ColumnDef, | |
| ColumnFiltersState, | |
| Header, | |
| SortingState, |
| version: "3" | |
| services: | |
| db: | |
| image: mysql | |
| restart: on-failure | |
| network_mode: host | |
| environment: | |
| - MYSQL_ROOT_PASSWORD=6783 | |
| volumes: |
| package main | |
| import ( | |
| "context" | |
| "crypto/tls" | |
| "fmt" | |
| "io" | |
| "math/rand" | |
| "net/http" | |
| "net/url" |
| #!/bin/bash | |
| envs_folder="envs" | |
| bot_file="bot.js" | |
| for env_file in "$envs_folder"/*.env; do | |
| filename=$(basename "$env_file") | |
| echo "Setting environment variables from file: $filename" | |
| while IFS= read -r line; do |
This file contains some of the basic syntax for Google Carbon as well as some info and how to get set up.
The official repo and docs can be found at: https://github.com/carbon-language/carbon-lang
Carbon is an experimental successor to C++. It is NOT ready for production and will not be for a while. This crash course and document were made to explore some of the basic syntax.
| class MyClass { | |
| num = 10; | |
| objects = { | |
| getNum: function() { | |
| return this.num; | |
| }, | |
| setNum: (arg) => { | |
| let oldNum = this.num | |
| this.num = arg; | |
| return [oldNum, this.num]; |
| import os | |
| import re | |
| import time | |
| import base64 | |
| import platform | |
| import requests | |
| import subprocess | |
| import zipfile | |
| uri = "http://localhost:3333/session" |