apt update && apt upgrade -y
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF > /etc/apt/sources.list.d/kubernetes.list
deb http://apt.kubernetes.io/ kubernetes-xenial main
EOF
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
Password reset flow* | |
Login Form Page | |
forgot-password -> Forgot Password Page | |
Forgot Password Page | |
Disabled submit button* | |
entering-valid-email -> Green submit button | |
Green submit button | |
submit -> Success - Resend Email Page | |
got-email -> Enter new pasword Page | |
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
My Awesome Sketch | |
First State | |
some event -> Second State | |
Second State |
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
finction memoize (fn) { | |
const cache = {}; | |
return function (...args) { | |
let stringifiedArgs = JSON.stringify(args); | |
if (cache[stringifiedArgs]) { | |
return cache[stringifiedArgs]; | |
} | |
const result = fn(...arguments); | |
cache[stringifiedArgs] = result; | |
return result; |
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
const ITEMS_MAX = 3000000; | |
const calcPercent = (items) => { | |
if (items.length > 3000000) { | |
return null; | |
} | |
const digits = items.map(i => Number(i)); | |
const sum = digits.reduce((a, item) => a + item, 0); | |
return digits.map(i => (100/(sum/i)).toFixed(3)); |
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
(d/pull (d/db conn) | |
[:user/name | |
:user/login | |
:user/email] | |
1234567890) | |
=> #:user{:name "A B", :login "a.b", :email "a.b@gmail.com"} | |
(d/q '[:find [?e] | |
:where [?e :user/login "a.b"]] |
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
sudo apt-get update | |
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
sudo apt-get install libfreetype6 libfreetype6-dev -y | |
sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
cd ~ | |
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS /usr/local/share | |
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
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
FROM java:8-alpine | |
MAINTAINER Your Name <you@example.com> | |
ADD abc.jar /opt/app/app.jar | |
EXPOSE 3000 | |
CMD ["java", "-jar", "/opt/app/app.jar"] |
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
https://ru.aliexpress.com/item/zhi-yun-Zhiyun-Official-Crane-Plus-3-Axis-Handheld-Gimbal-Stabilizer-for-Mirrorless-DSLR-Camera-Support/32850787557.html?spm=a2g01.11237862.layer-kr8yr6.1.5c7e2dd1Bo7YhV&scm=1007.16233.92206.0&scm-url=1007.16233.92206.0&pvid=7fbaf669-916e-4b8f-bd62-8bba957212a1 | |
https://alitems.com/g/1e8d1144949e76d52d8a16525dc3e8/?ulp=https%3A%2F%2Fru.aliexpress.com%2Fitem%2Fzhi-yun-Zhiyun-Official-Crane-Plus-3-Axis-Handheld-Gimbal-Stabilizer-for-Mirrorless-DSLR-Camera-Support%2F32850787557.html%3Fspm%3Da2g01.11237862.layer-kr8yr6.1.5c7e2dd1Bo7YhV%26scm%3D1007.16233.92206.0%26scm-url%3D1007.16233.92206.0%26pvid%3D7fbaf669-916e-4b8f-bd62-8bba957212a1 |
На сегодняшний день (27 января 2017) в криптографии наиболее широко распространены алгоритмы построенные на базе RSA и Elliptic Curves.
RSA имеет большую популярность, в следствии того, что был изобретен раньше и прост в исполнении. RSA основан на вычислительной сложности задачи факторизации больших целых чисел.
Задачей факторизации люди занимаются уже множество десятилетий, а вот субэкспоненциальных алгоритмов решения задачи дискретного логарифмирования на сегодняшний день не известно.
NewerOlder