Disp | Sympy | LaTeX | maths |
---|---|---|---|
x**2 |
$x^2$ |
(x^2) | |
sin(x) |
$\sin(x)$ |
(\sin(x)) | |
integrate(f, x) |
$\int f dx$ |
(\int f dx) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
import torch.nn as nn | |
import torch.optim as optim | |
import numpy as np | |
# 判断是否有cuda支持 | |
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu") | |
class MeanStdRNN(nn.Module): | |
def __init__(self, input_size, hidden_size): |
approximation function for natural logarithm
# ln=(x,a=2**32)=>a*x**(1/a)-a
#ln=lambda x,a=1<<32:a*x**(1/a)-a
ln=lambda x,a=1<<32:a*(x**(1/a)-1)
>>> numpy.log(400) - ln(400)
-6.776018235399306e-08
A deleted commit from the node-ipc repository. You can find the original commit here: https://github.com/RIAEvangelist/node-ipc/blob/847047cf7f81ab08352038b2204f0e7633449580/dao/ssl-geospec.js
WARNING: THIS IS LIVE MALWARE. RUN IT AT YOUR OWN RISK.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT TABLE_SCHEMA,TABLE_NAME,TABLE_ROWS,DATA_LENGTH,INDEX_LENGTH FROM information_schema.TABLES | |
where DATA_LENGTH+INDEX_LENGTH >0 and TABLE_SCHEMA not in ('mysql','sys','information_schema'); | |
select * from information_schema.TABLES limit 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select @to_kill_proc_list:=GROUP_CONCAT(CONCAT('KILL ',ID) SEPARATOR ';') q FROM information_schema.processlist WHERE Command='Sleep' and Time>5;PREPARE stmt FROM @to_kill_proc_list;EXECUTE stmt;DEALLOCATE PREPARE stmt; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--[[ | |
Copyright 2008, 2010, Oracle and/or its affiliates. All rights reserved. | |
This program is free software; you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation; version 2 of the License. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
sudo bash
apt install cloud-guest-utils
growpart /dev/vdb 1
resize2fs /dev/vdb1
lsblk
df -h
https://knowledge.hubspot.com/cos-general/connect-a-domain-to-hubspot#type
on web pages parking only, so...no use
https://knowledge.hubspot.com/cms-general/replace-your-brand-domain
NewerOlder