Skip to content

Instantly share code, notes, and snippets.

View evjeny's full-sized avatar

Evgeny Kanafin evjeny

View GitHub Profile
@evjeny
evjeny / CollinearFilter.py
Created December 4, 2021 23:44
Sklearn data transformer for filtering collinear features
import numpy as np
from sklearn.base import BaseEstimator, TransformerMixin
class CollinearFilter(BaseEstimator, TransformerMixin):
def __init__(self, thresh: float = 0.95, choose_corr="random", random_state=None):
self.thresh = thresh
self.choose_corr = choose_corr
self.state = np.random.RandomState(random_state)
anonymous
anonymous / coloron-game-inspiring-developers-to-use-svg-animations-es6-and-flexbox.markdown
Created November 5, 2016 12:49
COLORON GAME: inspiring developers to use SVG Animations, ES6 and Flexbox

COLORON GAME: inspiring developers to use SVG Animations, ES6 and Flexbox

A game made to inspire developers to use GSAP, ES6 and Flexbox

A Pen by morgan on CodePen.

License.

@evjeny
evjeny / file.rb
Created November 4, 2016 06:33
GistOne
puts 'Hello!'
@anggadarkprince
anggadarkprince / AppHelper.java
Last active May 2, 2023 22:39
Upload file with Multipart Request Volley Android
import android.graphics.Bitmap;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import java.io.ByteArrayOutputStream;
/**
* Sketch Project Studio
* Created by Angga on 12/04/2016 14.27.
*/
public class AppHelper {
@edfungus
edfungus / pupil.py
Last active November 27, 2023 17:08
Pupil Detection with Python and OpenCV
#Identify pupils. Based on beta 1
import numpy as np
import cv2
import time
cap = cv2.VideoCapture(0) #640,480
w = 640
h = 480
@unnikked
unnikked / Brainfuck.java
Last active September 7, 2022 00:20
Tiny Brainfuck Interpreter Written in Java
import java.util.*;
public class Brainfuck {
private Scanner sc = new Scanner(System.in);
private final int LENGTH = 65535;
private byte[] mem = new byte[LENGTH];
private int dataPointer;
public void interpret(String code) {
int l = 0;
for(int i = 0; i < code.length(); i++) {