Skip to content

Instantly share code, notes, and snippets.

View youz's full-sized avatar
🈳
kyomu

Yōsuke Ushiki youz

🈳
kyomu
View GitHub Profile
@youz
youz / readme.md
Last active November 3, 2024 14:09
shapeinfo.rb for Shapez2

shapeinfo.rb

@youz
youz / hex-MCM-deployment.spz2bp
Last active October 9, 2024 10:12
Make complex-Crystalline-shapes Machine for Shapez2 hexagonal scenario
SHAPEZ2-1-H4sIAKZEAGcA/+y9bZNdt40t/F+65qM9tQGQ3KSr8kGS7UmeUXztdpy5qamUq0dqa/pepVvVao3jm8p/f7qjfjkv+5xDrgXFeoFdZcXOWdh7kwBIAljg347+ePSFTC1/dvT426Mv/nb0L1e/vDo9+uLod69fnpw/P/rs6HfPLs5v/o8vT65Ojr74z6Oz63//4uri4uV/nVz+63+9OXv5/Oz8xev7//Wvfzy7vHpz8vLby4tnp69fX1w+vv0/rkW9/u+TV6dfPPv52Ytn//X2n9f/8R/yXp78cvHm6l+f/uOPH/9weXJ2/v3VydXZ9aNvf/H2fb59efLs9C+n51dHf/77Z0dfnV9dnp2+vn6rvx3976MvPpf22dGfrv+8/pjjoy/ss6M/XH/Isswn1//Pkxdfffno5/ro+q/fHP39s3UZaZeMH85fXpw8P7388fubr3n949cvz169On3eI9PegUxdkHl8cvbym4vnpz14IfDMg4WDk59tHDxx8MzBCwefOXjljYtVnYnEi78dir4DmaSWCqmmAuvpfO9DV5Dfv7r23Y9PX1794c35+enLH2+898n5s9MtmEEwXUN9c3H5l5OXP8r1az5eXdZWVqPFhe16gbn66Rr7+uiz8zcvX779x+3Cdfzm7d9La49tu5Xr2X/931+e/nTy5uXV786vTi/PT17+8eTy7OR69bp99wShMoQqEGqGUBVCNQh14w0QmGAwxWCYfgimIIJpiBQGNmOwisEaBltfOvqHUgr4PAFxCuLAyVtfKgZw6LhkDJew6UuY3SXMyhPmUxLmwRLmLxPknBO0ECRo0UnQApegxTRBC/coyghUht4wY4qfMTMDjRqEFezbxpeABLryjL1mxpbTjC2nGVtOMzYmBg2JQSNi0IAYNB6GqZYxozi8RzBsi2DgDsHAHcKE4RoGqxhsxmCG7X7QoQQfd7shGX5egqw7QdadIOtOkHWDCwe4biTMuhNm3Qmz7oRpVgIVOTEr/ozBKgZr4PYCNW
@youz
youz / hex-MAM#0-deployment.spz2bp
Last active October 3, 2024 14:24
Make Anything Machine for Shapez2 Hexagonal Scenario
SHAPEZ2-1-H4sIAFCl9mYA/+y9bW9kx5Em+l8If2wPMiPytQF/kCxp4F3akFsa33thGAJXTcnE0mSDzR5bEPTfL1tdRZ6qOudUxvPEDLCLM8LI7nY9kXky4yUzIjLi54u/XLyOoedXF59/ffH654vfPP707vri9cUf3t9e3b29eHXxh+/v7z7+D19cPV5dvP7rxc3Tn18/3t/f/q+rh3/7Xx9ubt/e3P34/vm//dtfbh4eP1zdfv1w//31+/f3D5/v/oeLV3cfbm9ffcLfXv10/+Hx3y5//Y/vvn24urn75vHq8eZpqN0vPo3/9e3V99f/uL57vPjbL68uvrx7fLi5fv80i58v/t+L1799mvT/9/QfMb66+PZpyjtqb65ubv90//b6idLvn/729z9++dlnn7Wn///sdxe/vPqETDBSZ5G/fsF/3N3eX729fvjuq9sPN2/fP/3Hzbt3128HqPVXF2+etuGA5Dfvnj7965t315MZffXZl58/wV/w4jobeZ7NhNif7h/+cXX7nTwBP58yyMu+zrPI09Y9/vCEfb/b+E+7//7vV++uX7/58OmfuV39NIn9F/06+a/vHx7fXH9/ffOf1w9/uHu8fri7uv3L1cPN1RNf7Bfms4NP2REJDkS6A43m8TFPK3L56x9c1sWJVHej1Pw+79NKRb+Vim4rFd1WiqPUPn1e+VXx7Bb9o7K5vP7h8ZjCIaROddXz6N9c371dGvuPPx6O3adjx5ex/8eHu+8/moCF8bvX+B83FZnAHucwgwjOIHrPoO55yWlNvemVU3oD69R8J9OZuXTfueiRMXjz618NziXNWJKPsK/uH/559fB2AZUhVIFQFUIdcrM4c7N4MZAXueZLTvf2CeCl/vL7/3j3+dX3/3tll/TQDppG073lO0StmCs9tJUmmU2ndnboC9Ppmeg88+rh8cc0UT0cEFjSl7MgsEKHxyMDE7wAkVGB8TB+ezlJgis7zK0Z4ZyCgCoCagioI6Cd6rWiBEIphIKkPEI7HKEtjt
@youz
youz / MCM-central-unit.spz2bp
Last active September 24, 2024 09:23
Make complex-Crystalline-shapes Machine for Shapez2
SHAPEZ2-1-H4sIACJW52YA/+xda5PbNrL9L6r9ONhiN0iQdFU+eJzn3UmuX/He1FYqpdjyRLuKNKXRJNc35f9+NR5JJMWH0H1aeTKp3XU26gYINA6A0w/8Mnk1eURJmV1MLp9OHv0y+dvm3c1s8mjyxe1iunwzuZh88Xq1vP8XH08308mjf03m239+tFmtFt9P13///m6+eDNfXt8e/vT3V/P15m66eLpevZ7d3q7Wl7t/sVX1QfTww3/O17PPFqvvp4uX6+ny9sf5ZjNbP5+9ns1/mq1fTdfz6XIzuVjeLRY7yYcuPV1MX89+nG3/3bfvLyafLDfr+ex227FfJv8zeeToYvLN9n/CxeT55JG/mLzcfsrV9N3qbvPdV6v1j9PFd7ztyGX9S2sd7PzWbYObt1vZ211nHnp0+8P0Zvbo+d3D31194Q9dKS8mVx/+fN+T+0/u+Ngvltt/WE4X+49+f/FBge9W8PHs7fRusbmavd0MChZ7wWokauKfrtY/T9dvBjXksIYAa8hgDR7WwLAGAjTk+694/kHPvezT+fLp3e0Ps/VOQY9kUEtmasl8bznK3ubq3iolK5nL2WJzenGFhx9/OVtfz9b8ckVX/SNR6e7/+Zfz9Xq1nr1pDiDXhV/cLD7gBb1c8SnxUBPn0+LNIWyIxQ3Hg2CqGscHwejRPG5HOqYBG9OgG9OgHdNCO6aFbEyFP6fjbn06X2ziUCHTiKZ70Q9b+ep6/vqz6Wb2ZPXjzXQ9O5a5mDzZ/urxs48+aoo3zgNPVsvbzfbXL+bXW9Ge1h80XV5/cvnZ9eWzq1ePN18/oWdXL2+6/1xrMevs8Fer4UnLVPtK2nM4+K+75evNfLUcHNO0Zzvir28GbCzdW4FuPrJO8VOjQ/LRUY6LekQYMLFPnl2eNCt6ONpSz6Es/li5V4SczfY6MgMdqYEOb6CDDXSQgY4E11HiKgpcRY6rMLBRAxM1sFADA7WwT1CFWrg8YFfzAPB0td68mC3ftMHqARz/8fjDXx8d6Q
@youz
youz / MAM-#0-deployment.spz2bp
Last active September 17, 2024 09:42
Make Anything Machine for Shapez2
SHAPEZ2-1-H4sIAI8i6GYA/7Sda6+c13Gl/wsxH6VgV9W+GtAHUrKBDGhDatmCB4PA4IgnGgIMKZC0M0KQ/z6kdXgufU53v+96SjISx/FZ1fuyar37Urvqv5788OR3Vlb74smzb5/87r+e/I8Pv/x89eR3T/71/esXb14++eLJv/749s2n/+KbFx9ePPnd/37y6uN//t2Ht29f/58X7/7l//z91euXr9789P7m//qXH169+/D3F6+/fff2x6v379++e3b9Xzz54s3fX7/+4lf86xe/vP37h395/s9/+9uf37149eb7Dy8+vPr4U9d/8evvf/v6xY9X/3H15sOTf/vvL578/s2Hd6+u3n9sxX89+euT331p5Ysn/+vTv8cXT/78sc3X5g4vXr3+09uXVx9Nff3x//v1T79/+vTp/Pg/T7968t9fHEF9N3TJP7rk35zyb87Nv/ndCaR98eTwkSMX8M9O4gvDLwafDD4YvDN4ewT+T2f5y5vXb1+8vHr3t+//74ufP3rEZVM1z1TkmfI8U5Zj6nEbt+J0oRnMWRyh8+Yljyx5DO5plkaaJSYuTNmgrkJZN0ZVC+5pVWzBkL+lnSLbPeD3P39c3Dy7ev3hDvoPTz+hv3qArNuQ391BthuJvYP809t3//Hi9d/W3+L/xUfgs7tLvtuV2uOLvo+LsQ///hH//nop9+t67v0nX/nd4e+//uvxddrtp/xTUz41/Nu37z4crn68evWPq3f/+ubD1bs3L17/8OLdqxcfl3qfx/Hp0ZLtzoIiw4zlmHFmZjw0883Vv7/4++sPf3j77j9fvHt5bOgB0lTkkn+y7EbeMuD5jc8m8CDPmGUa8wxj45Sx/fyQ8PemzDOnzDOnzDOnzDOnzOGUOfFPCe/X+Hvrmm2D8Yenx4NhmcZKorH1G9gax7b2j/jzo91DwrhnmSzpJtdv18jxuElpQjx/Qjx/Qjx9QlIa2eUFSpfXGV1eTnX4uW0Q3+G3o0F8hfi4gH9+9e8fjsB/fPXu3dt3Vy
@youz
youz / MBM-color-deployment.spz2bp
Last active September 17, 2024 09:43
Make Basic-shapes Machine for Shapez2
SHAPEZ2-1-H4sIAL8h6GYA/8S9bY+dt7El+l8a+agckFV8FXA+WHY8kztKbiL7+M5BYAh7pLbTSLtb6G6dWDH832/L2o967/28bNZaNTNopBXJzyqSxWIVySpW/XLx3cXzGHp+dvHiLxfPf7n43cOHd5cXzy/+eH+9u3l78ezij29ubz7+h692D7uL53+7uHr8+/OH29vr/7W7+7f/9f7q+u3VzY/3n//fv313dffwfnf9l7vbN5f397d3L/b/4ZHUb9DPH/7p6ufLu68uf9i9v374bnd3tbt5mL653n24ff/wby9/++P1t3e7q5tvHnYPV4892X/xqXt/ud69ufzp8hH4/a/PLv5w83B3dXn/2MlfLv7nxfPft2cX//npj28fB7Qn9mp3df3n27eXj4S+fPzXL3/8wxdffNEe//fFv1/8+uwIWM3AirZY0RYL2mIZbfGvy8DHP149Ss4Z+Is1eObgiYMrBxcOHnH4DPfb2viPm+vb3dvLu9ff/H337nEBnO1CdKMkbpTUjVJao/SkQ85QQKUzo6sxEcADxDfvHvXhi8vrhwPY1198XMT/ftrW8eD+fHv30+76dXotP8sj7sWhJThQ4Iu24FEJP/zwiH+cmZv319effl3cf5ys56/ef/pZ0s9tLkAfu/6X27uHV5dvLq/+6/LujzcPl3c3u+sn8/BpRF8cMaF7EYrBjVL0oiS/EWoWEl/+uESi8yQ+8oemEXkaj9x4aWTrKk98CH3kjBOlyFP6vLJenqh6cn35kHtaZU70oi89ncn6fpP69e3dP3d3b0+pHME6hGpGVJ9bzGHsnv0YuBHYz51emiZb6zAFXVmttrmCsR3CJkwgEyRaiehorNP+ywZrGKxjsDpt8ZBOZqyTGetkwTpZsE4WrJMV62TFOlmxTjaskw3rZMM62bFOdqyTHeukWQ/te2nHdRBXZxtNUz8j2E/QFoFKNio4PAWHp2A/QWsQQXMQQXsQQYMQQYsQQZMQQZsQQaMQQasQQbMQQbsQQcMQQc
@youz
youz / bfopt.js
Last active July 11, 2024 14:37
ELVM付属のbrainf*ckコンパイラをJavaScriptに移植
/*
* original code: https://github.com/shinh/elvm/blob/master/tools/bfopt.cc
* usage:
* compile and run
* $ node bfopt.js src.bf
* compile only
* $ node bfopt.js -c src.bf
*/
const MEM_SIZE = 30000;
@youz
youz / dc.svg
Last active January 9, 2024 04:55
drawing dragon curve in SQL
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@youz
youz / dragon-curve.lisp
Last active January 2, 2024 00:46
dragon curve ascii art
(defun f1 (z) (* z #C(1/2 1/2)))
(defun f2 (z) (- 1 (* z #C(1/2 -1/2))))
(defun c2p (z) (list (realpart z) (imagpart z)))
(defun gen (n)
(let ((b (expt 2 (ash (1+ n) -1))))
(loop
for i from 0 to n
for s = (list (list 0 1))
then (mapcan (lambda (l) (list (mapcar #'f1 l) (mapcar #'f2 l))) s)
@youz
youz / solve_m23.lisp
Last active June 24, 2023 02:54
EQUALINE Mission 23 solver (in common lisp)
;;; EQUALINE Mission 23 solver
(defstruct kifu
(boards (list #(1 :+ 1 :+ 1 :+ 1 :+ 1))) ; 盤面のリスト (逆順)
(routes nil) ; 指し手(int list)のリスト (逆順)
)
(defun print-kifu (k)
(loop for b in (reverse (kifu-boards k))
for r in (cons nil (reverse (kifu-routes k)))