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
from turtle import * | |
import random | |
k = 4 | |
def my_figure(d, z): | |
step = 100/z | |
kk = 4 | |
dd = 360/k | |
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
# https://ru.wikipedia.org/wiki/Bogosort | |
import random | |
#random.sample(a, b) # https://docs.python.org/3.7/library/random.html#random.sample | |
def isSorted(list): | |
for i in range(len(list)-1): | |
if not(list[i] < list[i+1]): | |
return False | |
return True | |
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
#1.[DONE] Pаздельная компиляция | |
#2. Extract my boost asio tcp wrapper [ https://gist.github.com/Lazzlo2096/035ccc3f44ae13396ad0540b8dc7de03 ] | |
#3. игра по сети | |
#4. переписать так, чтобы она не зависила от конкретного движка | |
#5. Переписать без ALX ? | |
#6. | |
#. --more else-- |
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
Projects with my Wrapper over Asio: | |
https://github.com/Lazzlo2096/Fibonacci-server | |
https://github.com/Lazzlo2096/maPong | |
https://github.com/Lazzlo2096/Boost.Asio.TCP-wrap | |
https://github.com/Lazzlo2096/asio_simple_example |
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 CodeWorld | |
-- https://code.world/haskell | |
main = drawingOf rewq | |
rewq = polyline $ getNFractal myShape1 | |
getNFractal ps = [ x | i <- [ (1.0, 0.0), (0.0, 1.0)], x <- getChild2 i ps] | |
getNFractal [] = [] | |
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
main = | |
putStrLn "What's your name?" >> | |
getLine >>= | |
--(\s -> putStrLn $ "Hello " ++ s) | |
-- \x -> return ("Hello " ++ x) >>= putStrLn | |
return.("Hello " ++) >>= putStrLn |
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
{-# LANGUAGE ExistentialQuantification #-} | |
{-# LANGUAGE GADTSyntax #-} | |
--https://stackoverflow.com/questions/3643172/using-maybe-type-in-haskell | |
-- https://en.wikibooks.org/wiki/Haskell/Classes_and_types | |
-- https://en.wikibooks.org/wiki/Haskell/Existentially_quantified_types | |
-- https://wiki.haskell.org/Data_declaration_with_constraint |
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
module Main where | |
import qualified Data.Map as M | |
-- :set -package containers | |
list1 = [1,2,3,4,5,6] | |
targetSum1 = 10 | |
myFind :: (Ord a, Num a) => [a] -> a -> [a] | |
myFind list targetSum = myFind' Nothing list M.empty targetSum |
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
hello world 123 |
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
# маленькие проги по типу синтаксис чек, или обсёрвер. Не мои: | |
* https://github.com/PCMan/python-find-unused-func | |
* https://github.com/dlidstrom/Duplo | |
* https://github.com/xsgordon/duplo-fork | |
* https://github.com/duploq/duploq | |
# мои: |