I hereby claim:
- I am nitrix on github.
- I am nitrix (https://keybase.io/nitrix) on keybase.
- I have a public key whose fingerprint is 6B82 F2F3 1479 D465 AEBF F52A 0AFB A2E7 FA59 5691
To claim this, I am signing this object:
| dc() { | |
| docker-compose --project-directory ~/Documents/Repos/ws-development -f ~/Documents/Repos/ws-development/docker-compose.yml $@ | |
| } | |
| # Docker compose restart | |
| dcr() { | |
| dc kill "$1" | |
| dc up -d "$1" | |
| } |
| module SKI where | |
| data SKI = S | K | I | A SKI SKI | |
| deriving (Eq, Show) | |
| reduce :: SKI -> SKI | |
| reduce (A (A (A S x) y) z) = reduce (A (A x z) (A y z)) | |
| reduce (A (A K x) y) = reduce y | |
| reduce (A I x) = reduce x | |
| reduce a@(A f x) = let f' = reduce f in if f==f' then a else reduce (A f' x) |
I hereby claim:
To claim this, I am signing this object:
| {-# LANGUAGE FlexibleContexts, FlexibleInstances, UndecidableInstances, TypeFamilies, PolyKinds, GADTs, MultiParamTypeClasses, FunctionalDependencies, RankNTypes, DataKinds #-} | |
| import Data.Kind | |
| import Prelude hiding (id, (.), Functor(..), Monad(..), Monoid(..)) | |
| -- 'Category k' is a category whose objects are 'Ob k a => a' and whose | |
| -- morphisms (of kind *) are '(Ob k a, Ob k b) => k a b' | |
| class Category (k :: o -> o -> *) where | |
| type Ob (k :: o -> o -> *) (a :: o) :: Constraint | |
| id :: Ob k a => k a a | |
| (.) :: (Ob k a, Ob k b, Ob k c) => k b c -> k a b -> k a c |
| <?php | |
| $instructions = ['0', '1', '+', '-', '*', '/', '>', '<', '=', '|', '&', '@', '!', '#', '(', ')', '%', '_']; | |
| $instructionsLength = count($instructions) - 1; | |
| while (true) { | |
| $program = ''; | |
| for ($i = 0, $c = rand(0, 10); $i < $c; $i++) { | |
| $program .= $instructions[rand(0, $instructionsLength)]; | |
| } | |
| nitrix@pluto ~/projects/ni/boot [develop]$ php vm.php test | |
| Instruction SBNZ [$0=9, $1=0, $2=8, $3=-1] | |
| Enter a character: f | |
| Performing `$8 = $0 - $9`, the values are `-11 = 102 - 113` | |
| Instruction SBNZ [$4=1, $5=1, $6=8, $7=0] | |
| Performing `$8 = $1 - $1`, the values are `0 = 0 - 0` | |
| Result is zero, branching to 0 | |
| Instruction SBNZ [$0=9, $1=0, $2=8, $3=-1] | |
| Enter a character: g | |
| Performing `$8 = $0 - $9`, the values are `-10 = 103 - 113` |
| .global main | |
| .global printf | |
| .text | |
| main: | |
| mov %rsp, base | |
| jmp next | |
| core: | |
| next: | |
| mov ip, %rax | |
| add $8, ip |
| import Data.Array | |
| import Data.Maybe | |
| import Data.Bits | |
| type Hash = Integer | |
| type HashMap k v = Array Hash [(k,v)] | |
| hmCreate :: (Eq k, Show k) => HashMap k v -> k -> v -> HashMap k v | |
| hmCreate hm k v = hm // [(hmHash hm k, after)] | |
| where |
| ##programming | |
| SrPx | As a side question, if a company has an income, and it wants to compute the most it can of a problem in 10 years, is it better to buy computers as you income comes, or wait 9 years, buy faster computers and to do much more on the last year? Hmm. Not sure why I'm asking this here, that is a math question. |
| <?php | |
| /******************* CONFIG *******************/ | |
| $config_nn_layout = [2, 3, 2, 1]; | |
| $config_nn_step = 7; | |
| /******************** MAIN ********************/ | |
| $neurons = nn_init_neurons($config_nn_layout); | |
| $weights = nn_init_weights($config_nn_layout); | |
| while (true) { |