Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
Me: | |
I am looking to build a simple GUI site that allows me to paste in some text, click "rewrite", and get rewritten, cleaned-up text back. This input text is ran through the Claude API to rewrite it. The GUI should be very simple. I just want a text box for input and a text box for output. I also two sliders on the side with labels on the ends: | |
Tone: casual on the left, formal on the right. The middle instructs the model to keep the tone/voice the same. | |
Length: shorter on the left, longer on the right. | |
Above these sliders, I want a model selector dropdown that let's me pick which Claude model to use. I also want a copy text button under the output textbox. The three Claude models are: | |
claude-3-opus-20240229. Display name "Claude 3 Opus". | |
claude-3-sonnet-20240229. Display name "Claude 3 Sonnet". | |
claude-3-haiku-20240307. Display name "Claude 3 Haiku". |
Note for me to remember how to set Android Home on Mac | |
Open Terminal and type in.. | |
nano ~/.bash_profile | |
Add the below paths | |
The path should be where your android installation is located | |
export ANDROID_HOME=/Users/username/Library/Android/sdk | |
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools | |
Save file and type in terminal... | |
source ~/.bash_profile |
#!/bin/bash | |
# This concatenates array values using a multi-character separater. | |
# https://dev.to/meleu/how-to-join-array-elements-in-a-bash-script-303a | |
joinByString() { | |
local separator="$1" | |
shift | |
local first="$1" | |
shift | |
printf "%s" "$first" "${@/#/$separator}" |
I am very interested in the ESP32-S2's camera port and the possibility of using it for a variety of MicroPython\CircuitPython projects. My hope is that the ESP32-S2 will the ability to do do things similiar to what is possible on the Raspberry Pi. Today there is no ESP32-S2 board available which exposes this port, and no camera modeles, but I wanted to understand the hardware capabilities to understand what might be possible and just as important, what is not.
This write up is based on solely on a morning's worth of research. If there are errors
#include <pthread.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// This program illustrates the use of POSIX threads. | |
// | |
// A POSIX thread has two main components: an object of type `pthread_t` which |
Datatypes in the Formality programming language are built out of an unusual
structure: the self-type. Roughly speaking, a self-type is a type that can
depend or be a proposition on it's own value. For instance, the consider the
2 constructor datatype Bool
:
#!/bin/bash | |
#IRAN | |
# First 6to4 tunnel | |
ip tunnel add 6to4tun_IR mode sit remote 108.1.1.1 local 193.1.1.1 | |
ip -6 addr add 2001:470:1f10:e1f::1/64 dev 6to4tun_IR | |
ip link set 6to4tun_IR mtu 1480 | |
ip link set 6to4tun_IR up | |
# Second 6to4 tunnel |
# git config --global core.excludesfile ~/.gitignore_global | |
# Some common .gitignore configurations: https://gist.github.com/octocat/9257657 | |
# Copy the next content on the .gitignore_global file: | |
.DS_Store | |
*.class |
#compdef samtools | |
################################################ | |
# SAMtools commands and options are based on ver. 0.1.18 | |
# http://samtools.sourceforge.net/samtools.shtml | |
# | |
# Edited by yag_ays 2011.10.25 | |
################################################ | |
_samtools() { |