As configured in my dotfiles.
start new:
tmux
start new with session name:
# All units in usecs (µsec) comparing Python 2.7 | 3.7. | |
# Last updated: 2019-02-11 | |
# MacBook Pro (15-inch, 2016) | |
# macOS 10.14.3 | |
# 2.7 GHz Intel Core i7 | |
# 16 GB 2133 MHz LPDDR3 | |
python -m timeit "200 <= 250 < 300" # 0.0354 | 0.059 | |
python2.7 -m timeit "250 in xrange(200, 300)" # 1.25 |
As configured in my dotfiles.
start new:
tmux
start new with session name:
// Implementation in ES6 | |
function pagination(c, m) { | |
var current = c, | |
last = m, | |
delta = 2, | |
left = current - delta, | |
right = current + delta + 1, | |
range = [], | |
rangeWithDots = [], | |
l; |
TL;DR* Here's what the license entails:
1. Anyone can copy, modify and distribute this software.
2. You have to include the license and copyright notice with each and every distribution.
3. You can use this software privately.
4. You can use this software for commercial purposes.
5. If you dare build your business solely from this code, you risk open-sourcing the whole code base.
You often have several docker containers and applications which work together in the locel development environment. You need the following communications:
You have a way to connect localhost-to-docker using -p
(port-mapping) docker option.
For instance, you can start PostgreSQL container using -p 0.0.0.0:5432:5432
and then connect like to normal PostgreSQL
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"github.com/ethereum/go-ethereum/common" | |
"github.com/ethereum/go-ethereum/ethclient" | |
) |
NIST recommends that when users are trying to set a password you should reject those that are commonly used or compromised:
When processing requests to establish and change memorized secrets,
verifiers SHALL compare the prospective secrets against a list that
contains values known to be commonly-used, expected, or compromised.
But how do you know what are the compromised passwords? Luckily Troy Hunter put a lot of effort into building the "Have I Been Pwned (HIBP)" database with the SHA1 hashes of 501,636,842 passwords that have been compromised on the internet. Sweet.
Be sure to watch the YouTube stream where we talk about how these plugins work in depth.
These two plugins helped me get into the top 10 of the dark forest score contest for v0.5.
auto-conquer is a plugin that would find the best planets to conquer. It is currently tweaked for late game, so you'll have to read the code and change parameters if you are just starting out!
auto-silver is a plugin to re-distribute silver mines to available planets. It's also tweaked for late game, ignoring silver mines with small amounts of silver.