https://www.nintendo.com.hk/data/json/switch_software.json
https://www.nintendo.co.jp/data/software/xml/switch.xml
| """ | |
| 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 |
| (function() { | |
| const styles = []; | |
| const addStyle = style => { | |
| const rawToken = style.name.match(/\([^()]+\)(?=[^()]*$)/); | |
| let token = null; | |
| if (rawToken && rawToken[0] !== '(Underline)') { | |
| token = `--${rawToken[0].split('(')[1].split(')')[0]}` | |
| } |
| /* | |
| * This script fetches all color styles from a Figma team/document. | |
| * | |
| * Dependencies: | |
| * | |
| * - node-fetch | |
| * | |
| * Due to a limitation in the Figma /styles endpoint, we need to use a | |
| * document for actually using the colors in a color grid 🙄That's why | |
| * we're both fetching from /styles and /files below. |
| npm set registry https://registry.npm.taobao.org && \ | |
| npm set disturl https://npm.taobao.org/dist && \ | |
| npm set sass_binary_site https://npm.taobao.org/mirrors/node-sass && \ | |
| npm set electron_mirror https://npm.taobao.org/mirrors/electron/ && \ | |
| npm set puppeteer_download_host https://storage.googleapis.com.cnpmjs.org && \ | |
| npm set chromedriver_cdnurl https://npm.taobao.org/mirrors/chromedriver && \ | |
| npm set operadriver_cdnurl https://npm.taobao.org/mirrors/operadriver && \ | |
| npm set phantomjs_cdnurl https://npm.taobao.org/mirrors/phantomjs && \ | |
| npm set selenium_cdnurl https://npm.taobao.org/mirrors/selenium && \ | |
| npm set node_inspector_cdnurl https://npm.taobao.org/mirrors/node-inspector && \ |
| ############################################### | |
| # TX SX OS unpacker - by hexkyz and naehrwert # | |
| ############################################### | |
| from Crypto.Cipher import AES | |
| from Crypto.Util import Counter | |
| import os | |
| import struct | |
| """ |
| #!/bin/sh | |
| # Git filter to ignore lines in your files. | |
| # | |
| # Copyright (c) 2017-2019,2023 Aryel Mota Góis <aryel.gois@gmail.com> | |
| # | |
| # MIT License | |
| # | |
| # | |
| # SETUP: | |
| # |
A non-exhaustive list of WebGL and WebGPU frameworks and libraries. It is mostly for learning purposes as some of the libraries listed are wip/outdated/not maintained anymore.
| Name | Stars | Last Commit | Description |
|---|---|---|---|
| three.js | ![GitH |
| /* | |
| JavaScript port of the following algorithm : http://scale2x.sourceforge.net/algorithm.html | |
| */ | |
| var scaleX = ( function( exports ) | |
| { | |
| function getPixel32( data, x,y,w ) |