Skip to content

Instantly share code, notes, and snippets.

from turtle import *
import random
k = 4
def my_figure(d, z):
step = 100/z
kk = 4
dd = 360/k
# 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
@Lazzlo2096
Lazzlo2096 / maPong tasks.txt
Last active March 16, 2019 19:33
Tasks of 'maPong'
#1.[DONE] Pаздельная компиляция
#2. Extract my boost asio tcp wrapper [ https://gist.github.com/Lazzlo2096/035ccc3f44ae13396ad0540b8dc7de03 ]
#3. игра по сети
#4. переписать так, чтобы она не зависила от конкретного движка
#5. Переписать без ALX ?
#6.
#. --more else--
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
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 [] = []
@Lazzlo2096
Lazzlo2096 / one.hs
Created March 3, 2019 23:38
monadsss
main =
putStrLn "What's your name?" >>
getLine >>=
--(\s -> putStrLn $ "Hello " ++ s)
-- \x -> return ("Hello " ++ x) >>= putStrLn
return.("Hello " ++) >>= putStrLn
{-# 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
@Lazzlo2096
Lazzlo2096 / Main.hs
Last active September 22, 2021 20:45
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
# маленькие проги по типу синтаксис чек, или обсёрвер. Не мои:
* https://github.com/PCMan/python-find-unused-func
* https://github.com/dlidstrom/Duplo
* https://github.com/xsgordon/duplo-fork
* https://github.com/duploq/duploq
# мои: