pkg install apt-transport-https curl gnupg pkg-config clang
pkg install freetype freetype-dev libpng libpng-dev libzmq-dev libzmq
mkdir $PREFIX/etc/apt/sources.list.d
echo "deb [trusted=yes] https://its-pointless.github.io/files/ termux extras" > $PREFIX/etc/apt/sources.list.d/pointless.list
curl -O https://its-pointless.github.io/pointless.gpg
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
| tests = [] | |
| running = false | |
| done = function() { | |
| test = tests.shift() | |
| if (test) test(done) | |
| } | |
| const it = function(name, test) { | |
| tests.push(test) |
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
| { | |
| "name": "test", | |
| "version": "1.0.0", | |
| "license": "MIT", | |
| "devDependencies": { | |
| "flow-bin": "^0.86.0", | |
| "flow-webpack-plugin": "^1.2.0", | |
| "remove-flow-types-loader": "^1.1.0", | |
| "webpack": "^4.25.1", | |
| "webpack-cli": "^2.1.4" |
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
| let grid = []; | |
| let target = []; | |
| let CX = 200; | |
| let CY = 200; | |
| function setup() { | |
| createCanvas(CX, CY); | |
| for (let y = 0; y < 10; y++) { | |
| let row1 = []; | |
| let row2 = []; |
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
| let car; | |
| let target; | |
| let preview = []; | |
| let speed = 0.01; | |
| let error = Infinity; | |
| let gen = 0; | |
| let parent; | |
| function setup() { |
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
| #!/bin/bash | |
| IP=$(nmcli dev show wlp4s0 | grep DNS | grep -o "\w*\.\w*\.\w*\.\w*" | head -n 1) | |
| sed -i "s/--dns=\w*\.\w*\.\w*\.\w*/--dns=$IP/" /etc/systemd/system/docker.service | |
| systemctl daemon-reload | |
| systemctl restart docker |
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
| #define WIN32_LEAN_AND_MEAN | |
| #include <stdlib.h> | |
| #include <windows.h> | |
| #pragma comment(lib, "USER32") | |
| #pragma comment(linker, "/SUBSYSTEM:WINDOWS") | |
| #define KEYDOWN(k) ((k) & 0x80) | |
| // This is a **very** minimal hotcorner app, written in C. Maybe its not the |
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
| // poorman's reactive var | |
| function pmrv() { | |
| this.value = null; | |
| this.callers = {}; | |
| this.set = function(v) { | |
| this.value = v; | |
| Object.keys(this.callers).forEach(k => this.callers[k]()); | |
| } | |
| this.get = function() { | |
| this.callers[arguments.callee.caller] = arguments.callee.caller; |
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
| $config = \Drupal\field\Entity\FieldStorageConfig::loadByName('node', 'field_presentation_file'); | |
| $config->setSetting('uri_scheme', 'private'); | |
| $config->save(); | |
| kint($config->getSettings()); |
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
| extends TileMap | |
| const WALKABLE = 2 | |
| var cells = Vector2Array() | |
| func _ready(): | |
| cells = get_used_cells() | |
| pass | |
| func find_path(map_from, map_to): |