Conceptualized by Alistair Cockburn. Also known as "Ports and Adapters".
In a nutshell:
Application Driver -> Primary Adapter -> Primary Port -> Use Case -> Secondary Port -> Secondary Adapter -> External System/Side Effect
use std::io; | |
use std::io::Write; | |
use std::fs::File; | |
use std::process::Command; | |
#[derive(Debug, Clone, Copy)] | |
enum DataType { | |
Int, | |
Ptr, | |
Bool, |
This project has moved to: https://github.com/nothub/asciiquarium |
Install Termux, an Android terminal emulator that provides a Linux execution environment and various tools.
Update system packages in Termux:
$ pkg update -y
package main | |
import ( | |
"errors" | |
"log" | |
"strings" | |
"syscall" | |
"unsafe" | |
) |
#!/usr/bin/env bash | |
# Based on https://gist.github.com/eduncan911/68775dba9d3c028181e4 | |
# but improved to use the `go` command so it never goes out of date. | |
type setopt >/dev/null 2>&1 | |
contains() { | |
# Source: https://stackoverflow.com/a/8063398/7361270 | |
[[ $1 =~ (^|[[:space:]])$2($|[[:space:]]) ]] |
Made possible with this reddit post.
wine regedit wine-breeze-dark.reg
wine regedit wine-reset-theme.reg
#################### | |
# | |
# Custom-Tools.psm1 | |
# Current Version: 2020-10-24 | |
# | |
# Module is installed to the Module folder visible to all users (but can only be modified by Administrators): | |
# C:\Program Files\WindowsPowerShell\Modules\Custome-Tools | |
# | |
# The Module contains only functions to access on demand as required. | |
# mods : View all Modules installed in all PSModulePath folders. |
Note: This gist may be outdated, thanks to all contributors in comments.
adb
is the Android CLI tool with which you can interact with your android device, from your PC
You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.
Don't hesitate to read comments, there is useful tips, thanks guys for this !
VecResult.prototype.toSVG = function() { | |
let paths = []; | |
this.pieces.forEach(piece => { | |
let index = 0; | |
piece.shapes.forEach(shape => { | |
let commands = []; | |
shape.lenghts.forEach(length => { |