This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and inference 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Append to your ~/.config/helix/config.toml | |
| [keys.insert."\\"] | |
| # Row 1: `1234567890-= | |
| "`" = [":insert-output /bin/echo -n ˜", "move_char_right"] | |
| "1" = [":insert-output /bin/echo -n ˘", "move_char_right"] | |
| "2" = [":insert-output /bin/echo -n ¨", "move_char_right"] | |
| "3" = [":insert-output /bin/echo -n ⁼", "move_char_right"] | |
| "4" = [":insert-output /bin/echo -n ⌜", "move_char_right"] | |
| "5" = [":insert-output /bin/echo -n ´", "move_char_right"] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ⟨color,window,draw, key⟩ ← r ← •Import "./rayed.bqn" # run from rayed-bqn root | |
| fntSz‿spd ← 50‿3 | |
| boxClr ← 255‿0‿0‿255 | |
| pos‿dir ← ⟨0‿0, 1‿1⟩ | |
| w‿h ← ⟨1920÷2, 1080÷2⟩ | |
| PerFrame ← {𝕊⟨font⟩: | |
| fps ← " FPS"∾˜•Repr window.GetFPS@ # display FPS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data ← •file.Lines "../../samples/2020/day7.txt" | |
| data ↩ •file.Lines "../../samples/2020/day7_alt.txt" | |
| data ↩ •file.Lines "../../inputs/2020/day7.txt" | |
| Log ← { | |
| msg‿val ← 𝕩 | |
| •Show msg‿val | |
| val | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| javascript:(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='https://mrdoob.github.io/stats.js/build/stats.min.js';document.head.appendChild(script);})() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call plug#begin('~/.vim/plugged') | |
| Plug 'https://github.com/tpope/vim-repeat.git' | |
| Plug 'https://github.com/stefandtw/quickfix-reflector.vim' | |
| Plug 'https://github.com/takac/vim-hardtime.git' | |
| Plug 'https://github.com/ctrlpvim/ctrlp.vim.git' | |
| " Plug 'https://github.com/nixprime/cpsm.git' | |
| Plug 'https://github.com/FelikZ/ctrlp-py-matcher' | |
| " Plug 'https://github.com/JazzCore/ctrlp-cmatcher/' | |
| " Plug 'https://github.com/tmhedberg/matchit.git' "replaced with matchup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| N4IgzgphAmIFwGYAMAOA7AJgDQgO4EMAnSGeARgE4A2NTHQiMAewFdCBjCeUAJQDkAgtxAA7fAFsucEPyE5oASzAAHADb4AnvAAuhFhBwTWI7fAAsGAKw5x+AB7mr8hQDMX5JBQB0l7CGgQqtr48Ej0+NpSZDjshBGMoTFMJvgKIhDEoQC+OAAigsJikvAg+XL+SmqaOnoGIEYsJuQUCF5mlihmVJZmCD0IZEhoNvbwyGEVbmOt7fKBwYkgcZHkMcsJcBPsycFpGWDZOACyyRBacKBFUiAAJCDOKurnLviqkIbixqabIw5wg0gJoopj9/PMQqD1qtwMF2ABrfAAI1UUhebzqsXiB1B2xSe0ymxyIGUhCY2iYVTA4kKEmuAAVSeTKdSHlVnq93vVPo1vhNbH8ga53KCAkEIRMoaCwLCEcjURyMetsVsdql0gSkESAMrqABuUkutJKOvw+vuFUe1TgaM5DSaoP5i2BwqB4MWkom0vw8KRKPgNsVWMWuN26uVRKO+DENOK0kj0dZT39Co+X0WjpFQqdbsh8WhAHMICJFoWRAB9WBSmW++XotZBnGq/HhnAAUXV+fOhtjIHbGU75sUlvZda5aYdo0zINdYvdear3tlfutKZAmMiyqSeLDhxAWpY2O7133KgU7AUyUHlSTK9Hdt5vydWZFOYl8891blydH642Ku3+y7gA0iITC4Ci0CFjG1wgWBEFQYmVoBqmPLppOALONOcyzrmKz/DgXo+l+t6cr+m5rk2O6EjgABaRbQSUdEiAABHSYEZFew7fra3L2nyk6ClhYI4W+eEfouNbcYGG7BpRgHUSAADCSoMdIyl5ohI48eO/ECphLrYQsuFSOJRHLsha4qY2AEakSilyQSR4lPZNmcWyUkoXxj5TgZwlGaJJkEZ+5mrmRsk2S2IAAGJMEwlZOdIMVxW5N4Wbqrz6PA1hjqhE5/FYgm+aK/nhHh0QwhJxG6Po9YydZobyRMuj4AEu4ADIsOIiIcRcohGtIHVdRxmkeSA6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {-| Returns a random time and the midnight time in a TimeZone | |
| -} | |
| fuzzMidnightAndToday : Time.Zone -> Fuzz.Fuzzer ( Time.Zone, Time.Posix, Time.Posix ) | |
| fuzzMidnightAndToday timezone = | |
| let | |
| currentTimeInDays : Time.Posix -> Duration.Duration | |
| currentTimeInDays currentTime = | |
| let | |
| conversionFunc toTime inTime = | |
| toTime timezone currentTime |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Launching in target application ... | |
| Entry point was written to address 002A0000 | |
| Reading PE import directory ... | |
| Reading PE debug info directory ... | |
| Found program debug database: C:\Users\Josh\Documents\cocos_projects\magnolia_cocos\proj.win32\Debug.win32\magnolia_cocos_proj.pdb | |
| Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\proj.win32\main.cpp | |
| Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\videoutil.cpp | |
| Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\vibration.cpp | |
| Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\textformatting.cpp | |
| Found source file: c:\users\josh\documents\cocos_projects\magnolia_cocos\classes\utilities\sceneutilities.cpp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/blink.vcxproj b/blink.vcxproj | |
| index 9b7d33d..ca98f43 100644 | |
| --- a/blink.vcxproj | |
| +++ b/blink.vcxproj | |
| @@ -21,7 +21,7 @@ | |
| <PropertyGroup Label="Globals"> | |
| <ProjectGuid>{188B7270-046B-476D-A32D-34390DA1A885}</ProjectGuid> | |
| <Keyword>Win32Proj</Keyword> | |
| - <WindowsTargetPlatformVersion>10.0.17134.0</WindowsTargetPlatformVersion> | |
| + <WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion> |
NewerOlder