[c-a] . . [c-e]
[a-b] . . [a-f]
[c-b] | . . | [c-f]
| |_| |
$ cp monfichier dir/
| ^ | [c-d]
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 java.util.*; | |
import java.util.function.*; | |
class PriorityFirstSearch { | |
private final int N = 100; | |
private int _tick = 0; | |
private void byPFS(char src) { | |
/** | |
* To emcompass all four kinds of search (dfs, bfs, dijkstra, prim), |
sudo apt-get update
# zsh, oh-my-zsh, zplug
sudo sed -i 's/required/sufficient/g' /etc/pam.d/chsh # env: `gcp vm`
sudo apt-get install -y git wget zsh && \
chsh -s $(which zsh) && \
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)" && \
(curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh)
mv ~/.zshrc{,.bak}
GitHub only lets you fork a repo once, if you want to make more than one copy of a project here's how you can do it. Useful for starter code.
-
Create a new empty folder for your project and initialize git
cd where-you-keep-your-projects
mkdir your-project-name
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
Below are the Big O performance of common functions of different Java Collections. | |
List | Add | Remove | Get | Contains | Next | Data Structure | |
---------------------|------|--------|------|----------|------|--------------- | |
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array | |
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List | |
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array | |
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
; RenZkeys - developer-productivity key bindings for AutoHotkey | |
; Author: Matthew Renze | |
; Purpose: To maximize your keyboard productivity by minimizing the number of times your fingers leave the home row for text navigation, selection, and deletion | |
; Based on Vonmacs by Jon von Gillern | |
; For more information, please visit my github repo: | |
; https://github.com/matthewrenze/ren-z-keys | |
;Character-level Text Navigation | |
!k::Send {Up} | |
!j::Send {Down} |
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
## `How to access host port from a docker container` | |
## `Access host's ssh tunnel from docker container` | |
## `Prevent from using --net=host` | |
## ... | |
# +-------------------+ | |
# | | | |
# | | | |
# | local container | | |
# | +---+ | |
# +-------------------+ |172.10.0.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
;(function () { | |
const { S, F } = require ('./src/utils/sanctuary') () | |
const control = F.coalesce (_ => S.Nothing) (S.Just) | |
const fut = F.go (function * () { | |
// const book1 = yield F.resolve ('Python') | |
const book1 = yield control (F.reject ('?network error')) | |
const book2 = yield control (F.resolve ('JavaScript')) | |
return { | |
book1, | |
book2, |
NewerOlder