Skip to content

Instantly share code, notes, and snippets.

View ostaptan's full-sized avatar

Ostap Tan ostaptan

View GitHub Profile
Задані 3 вектори x, y, z по N елементів. Обчислити величину (a,a)-(b,c), де a означає той вектор, який має найбільший мінімальний елемент з усіх векторів, b і c – два інші, а (p,g) – скалярний добуток p і q. Показати мінімальні елементи кожного вектора.
Input: [ повторення вхідних даних ]
< 1, 2, 5, 6, 9, 7, 8 >
< 5, 4, 5, 2, 9, 3, 8 >
< 1, 0, 5, 3, 9, 11, 9 >
Output: [ результати з коментарями ]
< 5, 4, 5, 2, 9, 3, 8 >
,+++77777++=:, += ,,++=7++=,,
7~?7 +7I77 :,I777 I 77 7+77 7: ,?777777??~,=+=~I7?,=77 I
=7I7I~7 ,77: ++:~+7 77=7777 7 +77=7 =7I7 ,I777= 77,:~7 +?7, ~7 ~ 777?
77+7I 777~,,=7~ ,::7=7: 7 77 77: 7 7 +77,7 I777~+777I= =:,77,77 77 7,777,
= 7 ?7 , 7~,~ + 77 ?: :?777 +~77 77? I7777I7I7 777+77 =:, ?7 +7 777?
77 ~I == ~77= +777 777~: I,+77? 7 7:?7? ?7 7 7 77 ~I 7I,,?7 I77~
I 7=77~+77+?=:I+~77? , I 7? 77 7 777~ +7 I+?7 +7~?777,77I
=77 77= +7 7777 ,7 7?7:,??7 +7 7 77??+ 7777,
=I, I 7+:77? +7I7?7777 : :7 7
7I7I?77 ~ +7:77, ~ +7,::7 7
@ostaptan
ostaptan / features.py
Last active March 18, 2021 20:48
oracle features dictionary
ACTIONS = {
# radio
"1001": "Radio().scenario()", # run a radio
"1002": "Radio().joke()", # tell a joke
"1003": "Radio().datetime_now()", # what|tell time
"1004": "Radio().quote()", # tell a quote
"1003": "Radio().weather()", # tell weather
# searcher
"2001": "Searcher().wiki(topic)", # wiki|find about
"2002": "Searcher().local_news()", # tell local news
@ostaptan
ostaptan / README.md
Created February 12, 2021 15:15 — forked from barrysteyn/README.md
C/C++ Examples For Understanding

Introduction

These toy examples are for helping with understanding C/C++. There is an excellent C++ samples site which demonstrates many useful things.

Metacognition

“an awareness of what skills, strategies, and resources are needed to perform a task effectively; and the ability to use self-regulatory mechanisms to ensure successful completion of a task”


Flavell (1978) was the first to define metacognition when he said it was "knowledge that takes as its object or regulates any aspect of any cognitive endeavor.” Brown and Baker (1984) further defined the idea of metacognitive knowledge by emphasizing a difference between static and strategic knowledge. Static knowledge, according to Brown and Baker, is what people are able to verbalize about cognition; whereas, strategic knowledge consists of the strategies that people use to regulate a particular cognitive activity. These strategies consist of planning- figuring out how to begin or continue; predicting – estimating how much will be remembered or understood or how much time it will take to complete a particular cognitive task; guessing – hypothesizing an answer before reaching a complete cognit

@ostaptan
ostaptan / tree_def.json
Last active July 7, 2020 11:49
Miffbooks defaults
{
"note_book": {
"graphings": {
"clip": "blank",
"binder": ["blank", "dot"]
},
"stich_type": [
"binder", "clip"
],
"format": {
{
"config": {
"kinds": [
"block_note",
"note_book",
"sketch_book",
"planner"
],
"stiches": [
"thread",
@ostaptan
ostaptan / log.txt
Created April 12, 2019 08:24
deploy log
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.2.2
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
The git source `git://github.com/haml/haml.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/Compass/compass-rails.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your data secure.
The git source `git://github.com/activeadmin/activeadmin.git` uses the `git` protocol, which transmits data without encryption. Disable this warning with `bundle config git.allow_insecure true`, or switch to the `https` protocol to keep your
@ostaptan
ostaptan / log
Created March 25, 2019 12:43
deploy log
-----> emberjs app detected
-----> Fetching buildpack heroku/nodejs-v98
-----> Node.js detected
-----> Creating runtime environment
NPM_CONFIG_LOGLEVEL=error
NPM_CONFIG_PRODUCTION=false
NODE_VERBOSE=false
NODE_ENV=production
NODE_MODULES_CACHE=true
@ostaptan
ostaptan / gender_age.rb
Last active July 3, 2018 13:20
supermeta
module Statistics
class GenderAgeQuery
attr_accessor :location_id, :errors, :total_count, :male_count, :female_count
META_METHODS = {}
[[0, 18],
[18, 29],
[30, 44],
[45, 60],