Action | Command | Comment |
---|---|---|
Open URL in new tab | t + URL |
After t insert URL and hit Enter .If URL is in the history - use TAB to complete it. |
Open URL in current tab | o + URL |
After o insert URL and hit Enter .If URL is in the history - use TAB to complete it. |
Open URL in new window | w + URL |
After w insert URL and hit Enter .If URL is in the history - use TAB to complete it. |
Move to another tab | gt |
From left to right. |
Close current tab | d |
|
Refresh current page | r |
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
data Door = Door { | |
width :: Width | |
, height :: Height | |
, material :: Material | |
} | |
getHeightOfTheDoor :: House -> NumberOfDoor -> Maybe Height | |
getHeightOfTheDoor (House _ [] _) _ = Nothing :: Maybe Height | |
getHeightOfTheDoor (House _ doors _) numberOfDoor = | |
if numberOfDoor < 1 |
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
getDoorMaterial :: House -> NumberOfDoor -> Either ErrorMessage Material | |
getDoorMaterial (House _ [] _) _ = Left "Этот дом без дверей, не будет вам никакого материала!" | |
getDoorMaterial (House _ doors _) numberOfDoor = | |
if numberOfDoor > quantityOfDoors | |
then Left "Эй, брат, погоди, тут нету столько дверей! Значение numberOfDoor слишком большое." | |
else | |
let indexOfOurDoor = numberOfDoor - 1 | |
ourDoor = doors !! indexOfOurDoor | |
(Door _ _ materialOfOurDoor) = ourDoor | |
in Right materialOfOurDoor |
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
getHeightOfTheSecondDoor :: House -> Height | |
getHeightOfTheSecondDoor (House _ doors _) = height | |
where | |
(Door _ height _) = secondDoor | |
secondDoor = doors !! 1 |
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
checkLocalhost :: String -> String | |
checkLocalhost ip | |
| ip == "127.0.0.1" = "It's a localhost!" | |
| ip == "0.0.0.0" = "It's a localhost!" | |
| ip == "::1/128 (0:0:0:0:0:0:0:1)" = "It's a localhost!" | |
| otherwise = "No, it's not a localhost." |
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
class Show a where | |
show :: a -> String | |
data Jump = Jump Int | |
instance Show Jump where | |
show (Jump n) = "Мой прыжок равен " ++ show n ++ " см" | |
main :: IO () | |
main = print jump |
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
{-# LANGUAGE OverloadedStrings #-} | |
module Main where | |
import Data.Text ( Text ) | |
type Name = Text | |
type Age = Int | |
type Citizenship = Text | |
type GoalCountry = Text |
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
$ git clone [email protected]:dunmersskooma/2-2.git | |
$ cd 2-2 | |
$ python setup.py sdist | |
$ sudo python setup.py install | |
$ helloworld |
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
set clipboard+=unnamedplus | |
" А затем делаем sudo apt-get install xclip |
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
dd bs=4M if=/path/tp/some.iso of=/dev/sdb | |
где sdb - путь к физической флешке, без разделов. |