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
with _BehaviourFeatures as ( | |
... inline the view definition ... | |
), | |
_ProfileFeatures as ( | |
... inline the view definition ... | |
), | |
_ModelInputs as ( | |
... concatenate the feature columns ... | |
) | |
select |
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://nauka.leprosorium.ru/comments/2349993/ | |
#include <iostream> | |
#include <chrono> | |
using namespace std; | |
using namespace std::chrono; | |
long long f(int x) { | |
if (x < 0) return 0; |
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
// Greedy solver for https://leprosorium.ru/comments/2379244/ | |
let modeMap = {"fa-ellipsis-v": ":", | |
"fa-ellipsis-h": "..", | |
"fa-arrows-alt-v": "|", | |
"fa-arrows-alt-h": "-", | |
"fa-plus": "+", | |
"fa-bomb": "[]", | |
"fa-trash": "X", | |
"fa-skull": "@"}; |
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
# Early Stopping Experiment with MNIST | |
# http://fouryears.eu/2017/12/05/the-mystery-of-early-stopping/ | |
# | |
# Code adapted from: https://github.com/fchollet/keras/blob/master/examples/mnist_cnn.py | |
# By: Konstantin Tretyakov | |
# License: MIT | |
import keras | |
from keras.datasets import mnist | |
from keras.models import Sequential |
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
// Source code for the post: | |
// https://www.quora.com/Can-you-write-a-program-for-adding-10-numbers/answer/Konstantin-Tretyakov | |
// http://fouryears.eu/2018/03/17/a-program-for-adding-10-numbers/ | |
// | |
// Runs with the following config.xml: | |
// <Config> | |
// <InputProvider class="Enterprise.NumberSequenceProvider"/> | |
// <OutputConsumer class="Enterprise.PeanoNumberPrinter"/> | |
// <Solution class="Enterprise.TenNumberAddingSolution"> | |
// <Strategy class="Enterprise.AdditionStrategy"/> |
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
// | |
// Example of communication with a subprocess via stdin/stdout | |
// Author: Konstantin Tretyakov | |
// License: MIT | |
// | |
#include <ext/stdio_filebuf.h> // NB: Specific to libstdc++ | |
#include <sys/wait.h> | |
#include <unistd.h> | |
#include <iostream> |
OlderNewer