stack new my-project
cd my-project
stack setup
stack build
stack exec my-project-exe
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 random, time | |
| b = '🔴🟡🔵' | |
| c = '123🎄' | |
| s = '🌟⭐' | |
| o = "\033[2J" | |
| p = " " * 18 | |
| print(o) | |
| t = p + "*\n" + "\n".join(["".join([' ' * (20 - i - j), *random.choices(c, [1, 1, 1, 28], k=j + i)]) for i in range(5) for j in range(1, 4 + i)] + [p + "🟫"]) | |
| while 1: | |
| s = s[::-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
| { | |
| "continent": { | |
| "code": "EU", | |
| "names": { | |
| "de": "Europa", | |
| "ru": "Европа", | |
| "pt-BR": "Europa", | |
| "ja": "ヨーロッパ", | |
| "en": "Europe", | |
| "fr": "Europe", |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #!/usr/bin/env runhaskell | |
| import Control.Monad.Trans.State | |
| import Control.Monad.Trans.Writer | |
| import Data.Foldable (toList) | |
| import qualified Data.IntSet as IntSet | |
| import Data.List as List | |
| import qualified Data.Map as Map | |
| import Data.Monoid | |
| import Data.Ord |
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
| public static List<Integer> qs1(List<Integer> a) { | |
| if (a.size() < 2) return a; | |
| Integer pivotVal = a.get(a.size() / 2); | |
| ArrayList<Integer> r = new ArrayList<>(); | |
| r.addAll(qs1(a.stream().filter(x -> x < pivotVal).collect(Collectors.toList()))); | |
| r.addAll(a.stream().filter(x -> x == pivotVal).collect(Collectors.toList())); | |
| r.addAll(qs1(a.stream().filter(x -> x > pivotVal).collect(Collectors.toList()))); | |
| return r; |
- http://webpack.github.io/docs
- https://github.com/petehunt/webpack-howto - essential compact cookbook
- http://survivejs.com/webpack/optimizing-development/ - extensive guide
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
| WITH RECURSIVE folder_tree AS | |
| ( | |
| SELECT | |
| folder_id, folder_name, parent_id, cast(folder_name as character varying(2048)) as full_path | |
| FROM | |
| p_folder | |
| WHERE | |
| parent_id IS NULL | |
| UNION ALL |
- Docker, Ansible and Vagrant
- Vagrant, Docker and Ansible. WTF?
- Разработка микросервисов с использованием Scala, Spray, MongoDB, Docker и Ansible
- Docker Try It!
- Как жить с Docker, или почему лучше с ним, чем без него?
- Использование Docker-контейнеров как Jenkins-нод
- Почему вам не нужен sshd в Docker-контейнере
- Видео докладов с DevOps Meetup про Docker
- JavaZone 2014: Using Docker to streamline development
NewerOlder