Le document a été migré ici
This file contains hidden or 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 qualified Data.PQueue.Prio.Min as PQ | |
| import qualified Data.HashSet as Set | |
| import qualified Data.HashMap.Strict as Map | |
| import Data.Hashable (Hashable) | |
| import Data.List (foldl') | |
| import Data.Maybe (fromJust) | |
| astarSearch :: (Eq a, Hashable a) => a -> (a -> Bool) -> (a -> [(a, Int)]) -> (a -> Int) -> Maybe (Int, [a]) | |
| astarSearch startNode isGoalNode nextNodeFn heuristic = | |
| astar (PQ.singleton (heuristic startNode) (startNode, 0)) |
This file contains hidden or 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
| . | |
| ├── actions | |
| ├── stores | |
| ├── views | |
| │ ├── Anonymous | |
| │ │ ├── __tests__ | |
| │ │ ├── views | |
| │ │ │ ├── Home | |
| │ │ │ │ ├── __tests__ | |
| │ │ │ │ └── Handler.js |
This file contains hidden or 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 React, { Component } from 'react' | |
| import Subapp from './subapp/Root' | |
| class BigApp extends Component { | |
| render() { | |
| return ( | |
| <div> | |
| <Subapp /> | |
| <Subapp /> | |
| <Subapp /> |
This file contains hidden or 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
| #!/bin/sh | |
| DOWNLOAD_DIR="${HOME}/MiniDLNA" | |
| CONFIG_DIR="${HOME}/.aria2" | |
| RPC_TOKEN="changeIt" | |
| RPC_PORT="6800" | |
| change_apt_source(){ | |
| if [ -f /etc/apt/sources.list ]; then | |
| sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak |
| name | rustdoc |
|---|---|
| description | Rust documentation conventions (RFC 1574). Apply when writing doc comments on public Rust items. Covers summary sentences, section headings, type references, and examples. |
Apply these rules when writing doc comments (///) on public Rust items.