Skip to content

Instantly share code, notes, and snippets.

View mihaild's full-sized avatar

Mikhail Dektyarev mihaild

  • http://company.yandex.ru
  • Moscow, Russia
View GitHub Profile
@mihaild
mihaild / gist:1165284
Created August 23, 2011 14:33
Patch to make long options work in COA
216c216
< if (m = i.match(/^--(\w[\w-_]*)=(.*)$/)) {
---
> if (m = i.match(/^(--\w[\w-_]*)=(.*)$/)) {
269c269
< })();
\ No newline at end of file
---
> })();
@mihaild
mihaild / gist:1175872
Created August 27, 2011 21:12
Shell log for COA issue
$ git clone git://github.com/veged/coa.git
Cloning into coa...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (50/50), done.
remote: Total 65 (delta 24), reused 40 (delta 11)
Receiving objects: 100% (65/65), 18.96 KiB, done.
Resolving deltas: 100% (24/24), done.
$ cd coa/
$ npm install eyes
eyes@0.1.6 ./node_modules/eyes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mihaild
mihaild / helpers.py
Created March 16, 2017 22:36
mlbootcamp
from __future__ import print_function
import numpy as np
import scipy.stats as st
import matplotlib.pyplot as plt
from sklearn.model_selection import KFold, train_test_split, StratifiedKFold
from sklearn.metrics import log_loss
from sklearn.preprocessing import StandardScaler, Imputer
from sklearn.linear_model import LogisticRegression
import math
javascript: (function() { var src = "";
var article1 = "27174849";
function reqListener () {
src = this.responseText;
var js = "";
for (var i=0; i!=6; ++i) {
var l = "ABCDEF"[i];
var re = new RegExp('STARTBYC' + l + '((?!(STARTBYC|ENDBYC))[\\s\\S])*ENDBYC' + l, "g");
var ljs = re.exec(src);
if (ljs === null) {
@mihaild
mihaild / neural median.ipynb
Created October 6, 2018 18:16
simple median
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mihaild
mihaild / keras_max.ipynb
Created January 16, 2019 14:56
Simple implementation of famous max(x, y) function
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
import sys
import random
import string
import timeit
def matches_naive(text, pattern):
result = []
for i in range(len(text) - len(pattern) + 1):
TEMPERATURE 1
7.6°C - it can get much hotter - even in Europe they are much colder - I can live in the low 20's - they all have cool summers with low humidification. That is what is cool about the cold winters, the lack of heat.
I have been in a cold, snowy
================================================================================
about 30 degrees Fahrenheit. So for the purposes of this test, I did this: For maximum temperature of 4 degrees Celsius, I applied a "natural" liquid chromatography and chromatography-mass spectrometry (LC-MS) method, where the sample was then used to determine chromatographic properties and concentrations (
================================================================================