Skip to content

Instantly share code, notes, and snippets.

@folex
folex / films.txt
Created January 15, 2017 13:10
film list
8,6 2006 Престиж
8,4 2011 Черное зеркало
8,3 2013 Викинги
8,2 2011 Прислуга
8,1 2009 Шерлок Холмс
8,1 1995 Казино
8,1 1963 Доктор Стрейнджлав, или Как я научился не волноваться и полюбил атомную бомбу
8,1 1960 Психо
8,0 2016 Миллиарды
8,0 2015 Эш против Зловещих мертвецов
@folex
folex / тестирование.md
Created March 14, 2017 09:26 — forked from Paliri/тестирование.md
ссылки для QA

#Последовательность обучения

#Книги:

@folex
folex / shapeless_tags_fun.scala
Last active May 25, 2017 07:54
shapeless_tags_fun.scala
object UserRelationsT {
import shapeless.tag
import tag.@@
import cats.data.Ior
trait IsFollowerTag
type IsFollower = Boolean @@ IsFollowerTag
def isFollower(b: Boolean): IsFollower = tag[IsFollowerTag][Boolean](b)
trait IsFollowingTag
@folex
folex / scalepatternsguitar
Created July 25, 2017 19:56
[Scale patterns] guitar scale patterns #guitar #music #scale
Groups of four
1a-- 1234, 2345, 3456, etc.
1b-- 4321, 5432, 6543, etc.
1c-- 1243, 2354, 3465, etc.
1d-- 1321, 2432, 3543, etc.
Groups of three
2a-- 123, 234, 345, etc.
@folex
folex / backward_propagation_with_dropout.py
Created September 17, 2017 15:58
backward_propagation_with_dropout
# GRADED FUNCTION: backward_propagation_with_dropout
def backward_propagation_with_dropout(X, Y, cache, keep_prob):
"""
Implements the backward propagation of our baseline model to which we added dropout.
Arguments:
X -- input dataset, of shape (2, number of examples)
Y -- "true" labels vector, of shape (output size, number of examples)
cache -- cache output from forward_propagation_with_dropout()
@folex
folex / forward_propagation_with_dropout.py
Last active September 17, 2017 16:12
forward_propagation_with_dropout
# GRADED FUNCTION: forward_propagation_with_dropout
def forward_propagation_with_dropout(X, parameters, keep_prob = 0.5):
"""
Implements the forward propagation: LINEAR -> RELU + DROPOUT -> LINEAR -> RELU + DROPOUT -> LINEAR -> SIGMOID.
Arguments:
X -- input dataset, of shape (2, number of examples)
parameters -- python dictionary containing your parameters "W1", "b1", "W2", "b2", "W3", "b3":
W1 -- weight matrix of shape (20, 2)
@folex
folex / md_test.md
Last active February 15, 2025 11:26
md_test.md

a2i

a2i

small

a2i

(ai)2

@folex
folex / add_rustfmt_hook.sh
Last active January 25, 2019 15:42
Script to add git hook to run rustfmt before commit
#!/bin/sh
# check that rustfmt installed, or else this hook doesn't make much sense
command -v rustfmt >/dev/null 2>&1 || { echo >&2 "Rustfmt is required but it's not installed. Aborting."; exit 1; }
# write a whole script to pre-commit hook
# NOTE: it will overwrite pre-commit file!
cat > .git/hooks/pre-commit <<'EOF'
#!/bin/bash -e
declare -a rust_files=()