jq is useful to slice, filter, map and transform structured json data.
brew install jq
options = { :body => | |
{ :username => 'my', | |
:password => 'password' | |
} | |
} | |
results = HTTParty.post("http://api.topcoder.com/v2/auth", options) | |
## | |
## example for post with papertrail and basic auth | |
## |
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl \ | |
docker.io docker-buildx \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
IFOMITTED = LAMBDA(arg,then,IF(ISOMITTED(arg),then,arg)); | |
SUMPRODUCT2 = LAMBDA(array, [axis], | |
SUM(IF(IFOMITTED(axis,0)=0, BYROW, BYCOL)(array, PRODUCT)) | |
); |
#!/usr/bin/env python3 | |
from cryptography.fernet import Fernet | |
from kdf import derive_key | |
passphrase = b"hunter2" | |
f = Fernet(derive_key(passphrase)) | |
with open('encrypted.txt', 'rb') as file: | |
encrypted = file.read() # binary read |
Tip: вы можете использовать данный скрипт для создания и добавления SSH ключа.
"repositories": [
import argparse | |
import numpy as np | |
import torch | |
import torch.nn as nn | |
import coremltools as ct | |
from transformers import AutoTokenizer, AutoModelForCausalLM | |
# When using float16, all predicted logits are 0. To be debugged. | |
compute_precision = ct.precision.FLOAT32 | |
compute_units = ct.ComputeUnit.CPU_ONLY |
this
is the runtime context of a function
.this
is determined by the call sitethis
runtime contexts. You can think of this
as another arguement to the functioneval
)const person = {
name: 'Alex',
[ | |
// Navigation | |
{ | |
"key": "ctrl-h", | |
"command": "workbench.action.navigateLeft" | |
}, | |
{ | |
"key": "ctrl-l", | |
"command": "workbench.action.navigateRight" | |
}, |
\documentclass[border=5pt]{standalone} | |
\usepackage{tikz} | |
\usetikzlibrary{arrows, calc, chains, positioning} | |
\begin{document} | |
\begin{tikzpicture}[node distance = 4mm and 0mm, | |
box/.style = {shape=rectangle, draw, minimum size=2em, outer sep=0pt, on chain=#1}, | |
sum/.style = {shape=circle, draw, inner sep=0pt, node contents={$+$}}, | |
every path/.append style = {-latex'} |