# Augmented dicky fuller test
## Theory
## Snippet
```python
# Run the ADF test on the time series
result = adfuller(df["column"])
# Plot the time series
fig, ax = plt.subplots()
df["column"].plot(ax=ax)
plt.show()
# Print the test statistic and the p-value
print('ADF Statistic:', result[0])
print('p-value:', result[1])
print("If p-value < alpha, reject HO, assume series is stationary")
print("If p-value > alpha, accept HO, assume series is not stationary")
```
inicio{
"host":"81F06BC9938F9D8CAE86EC2D121D",
"porta":"9F9584"
}fim
version: '3.8'
services:
web:
image: nginx:latest
ports:
- "8080:80"
volumes:
- ./html:/usr/share/nginx/html
networks:
- mynetwork
db:
image: mysql:latest
environment:
MYSQL_ROOT_PASSWORD: example
MYSQL_DATABASE: mydatabase
MYSQL_USER: myuser
MYSQL_PASSWORD: mypassword
volumes:
- ./db_data:/var/lib/mysql
networks:
- mynetwork
networks:
mynetwork:
https://fitedukacja.com.pl/fitness-dla-mozgu-czyli-jak-pomnazac-potencjal-tworczy-dzieci-i-uczniow-rozwiniecie-cz-1/
https://fitedukacja.com.pl/jaka-historie-moga-opowiedziec-rzeczy-scenariusz-lekcji-z-motywem-
https://www.codingforentrepreneurs.com/blog/python-regular-expressions/
https://www.horsepaste.com/age-quiz
query RunInput {
cart {
deliveryGroups {
deliveryAddress {
countryCode
}
}
}
paymentMethods {
id
name
}
}
GNU Wget 1.21.2, a non-interactive network retriever.
Usage: wget [OPTION]... [URL]...
Mandatory arguments to long options are mandatory for short options too.
Startup:
-V, --version display the version of Wget and exit
-h, --help print this help
-b, --background go to background after startup
-e, --execute=COMMAND execute a `.wgetrc'-style command
Logging and input file:
-q, --quiet quiet (no o
/**
* Definition for singly-linked list.
* function ListNode(val) {
* this.val = val;
* this.next = null;
* }
*/
/**
* @param {ListNode} node
* @return {void} Do not return anything, modify node in-place instead.
*/
var deleteNode = function(node) {
// Copy the value of the next node to the current node.
// This effectively "deletes" the current node's value by overwriting it.
node.val = node.next.val;
// Delete the next node by skipping over it in the list.
LeagueApi.getAllMatches(puuid, oldIds, matchCountRef)
.metered(3.seconds)
.evalMap(_.flatTraverse(LeagueDb.insertMatchIfUnique(_).attempt)
<* matchCountRef.update(_.decrement)
<* IO.whenA(keys.nonEmpty)(cache.del(keys*).void))
.compile.drain
/**
* @param {number[]} people
* @param {number} limit
* @return {number}
*/
var numRescueBoats = function(people, limit) {
// Sort the people array in ascending order
people.sort((a, b) => a - b);
// Initialize two pointers, one at the start of the array (i) and one at the end (j)
let i = 0, j = people.length - 1;
// Initialize the number of boats needed to 0
let numBoats = 0;
// While the start pointer is less than or equal to the end pointer
- password
```
sudo su -
passwd
exit
exit
# re-login by ssh
```
- update authorized_keys
- apt
```
apt update
apt install -y vim
sudo update-alternatives --set editor /usr/bin/vim.basic
```
- sudoers
echo "$(id -u -n) ALL=NOPASSWD: ALL" >> /etc/sudoers
#!pip install -q auto-editor pytube moviepy
from pytube import YouTube
import moviepy.editor as mp
LINK = "https://www.youtube.com/watch?v=KohUW8gaNLQ"
yt = YouTube(LINK)
yt = yt.streams.get_highest_resolution()
try:
yt.download()
except:
print("An error has occurred")
print("Download is completed successfully")
fname = yt.title.replace(":","")
clip = mp.VideoFileClip(fname+".mp4")
clip = clip.subclip(8*60, 14*60-10)
clip.audio.write_audiofile(fname+".mp3")
#!pip install -q auto-editor pytube moviepy
from pytube import YouTube
import moviepy.editor as mp
LINK = "https://www.youtube.com/watch?v=KohUW8gaNLQ"
yt = YouTube(LINK)
yt = yt.streams.get_highest_resolution()
try:
yt.download()
except:
print("An error has occurred")
print("Download is completed successfully")
fname = yt.title.replace(":","")
clip = mp.VideoFileClip(fname+".mp4")
clip = clip.subclip(8*60, 14*60-10)
clip.audio.write_audiofile(fname+".mp3")
https://medium.com/@alice_thomaz
/**
* @param {string} version1
* @param {string} version2
* @return {number}
*/
var compareVersion = function(version1, version2) {
// Split the version strings by '.' to get the revisions as an array
var v1 = version1.split('.');
var v2 = version2.split('.');
// Get the maximum length between the two versions
var len = Math.max(v1.length, v2.length);
// Loop through each revision from left to right
for (var i = 0; i < len; i++) {
// Parse the revision t