tags: nodejs, express
Temos algumas alternativas para rodar páginas web escritas dentro do ambiente Termux. Uma delas é utilizando o nodejs, que é o escopo desse tutorial.
- Instale nodejs caso ainda não tenha feito isso
; pkg install nodejs
#Vectorized code for monte carlo dart simulation | |
throws = 100 | |
landed = 0 #landed in circle | |
#throws=100 | |
x = runif(n=throws, min=-1, max=1) | |
y = runif(n=throws, min=-1, max=1) | |
soma_quadrados <- (x^2) + (y^2) |
tags: nodejs, express
Temos algumas alternativas para rodar páginas web escritas dentro do ambiente Termux. Uma delas é utilizando o nodejs, que é o escopo desse tutorial.
; pkg install nodejs
import sys | |
from threading import Thread | |
import time | |
#def only_a_second_chance(): | |
def second_chance(page_requests, mem_size, page_faults, m, thread_name): | |
#mem_size = int(sys.argv[1]) # N, physical memory | |
mem_size = mem_size |
FROM gcr.io/datamechanics/spark:3.0.2-hadoop-3.2.0-java-8-scala-2.12-python-3.8-dm13 | |
ARG R_VERSION="4.0.4" | |
ARG LIBARROW_BINARY="true" | |
ARG RSPM_CHECKPOINT=2696074 | |
ARG CRAN="https://packagemanager.rstudio.com/all/__linux__/focal/${RSPM_CHECKPOINT}" | |
USER root |
#!/usr/bin/bash | |
# cut 30 rows from the height at the bottom of the video | |
ffmpeg -i ./input.data -vf crop=iw:ih-30:0:10 -c:a copy ./output.mp4 |
[asari@asari nvim]$ sed -e "s/p3hp_placeholder/$roco/g" mock.lua
sed: -e expressão #1, caractere 21: opção desconhecida para o comando `s' (s///?)
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$
[asari@asari nvim]$ sed -e "s@p3hp_placeholder@$roco@g" mock.lua
require("user.remap")
require("tools")
vim.opt.laststatus = 2 | |
vim.opt.statusline = sl_values | |
-- local sl_values | |
-- statusline functions | |
local function StatuslineMode() | |
local mode = vim.fn.mode() | |
if mode == 'n' then |
# check the origin
git ls-remote --get-url origin
# add remote
## for configured SSH environments as remote connection:
git remote add upstream [email protected]:{user/org}/repo.git
## for for configured HTTPS environments as remote connection:
git remote add upstream https://github.com/{user/org}/repo.git
quick notes about the different ways to handle storage virtualization for QEMU
[31/03/2024 10:07] mknod can be used for creating block or character special files, such asdevice nodes (special directories). It is an alternative for the powerful dd command which could wipe your root system at runtime.