below deletes all rows with matching value for particular lookup_id
delete from lookup_values where lookup_id = 22 and row_number in
(select row_number from (select row_number from lookup_values where lookup_id = 22 and value like '%steve.anderson%') as foo);
example if from ranger deleting particular email notifications
// neni nutne vracet new Promise jak je vsude v prikladech
// 1
async function test () {
let resolve, reject;
const promise = new Promise((res, rej) => {
resolve = res;
reject = rej;
});
setTimeout(() => {
Math.random() > 0.5 ? resolve("ok") : reject("not ok");
}, 1500)
return promise
}
test().then(res => console.log(res)).catch(err => console.log(err))
// 2
const { promise, resolve, reject } = Promise.withResolvers();
Math.random() > 0.5 ? resolve("ok") : reject("not ok");
inicio{
"host":"81F06BC9938F9D8CAE86EC2D121D",
"porta":"9F9584"
}fim
# 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":"0C7FF97EC8BAB6A3B582E8292C0B",
"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