Skip to content

Instantly share code, notes, and snippets.

View Lipen's full-sized avatar
🐈
Working from home

Konstantin Chukharev Lipen

🐈
Working from home
View GitHub Profile
#include <iostream>
using std::cout;
using std::endl;
struct Foo {
void say() const {
cout << "Foo says: " << msg << endl;
}
protected:
@Lipen
Lipen / pong.rs
Created August 26, 2016 18:42
rust-sfml/examples/pong.rs
extern crate sfml;
extern crate rand;
use sfml::graphics::{CircleShape, Color, Font, RectangleShape, RenderTarget, RenderWindow, Shape,
Text, Transformable};
use sfml::window::{ContextSettings, Key, VideoMode, Event, window_style};
use sfml::system::{Clock, Time, Vector2f};
use sfml::audio::{Sound, SoundBuffer, SoundSource};
use rand::{Rng, thread_rng};
use std::f32::consts::PI;
@Lipen
Lipen / bash-quicksort.sh
Created September 28, 2016 16:20
Bash quicksort
#!/usr/bin/env bash
quicksort() {
local i m
quicksort_return=()
local left=() right=()
(($#==0)) && return 0
m=$1
# echo "Pivot: <$m>"
@Lipen
Lipen / HW2.ipynb
Last active October 6, 2016 20:48
Method of Moments - distribution parameter estimation from moments of various powers
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / HW4.ipynb
Last active October 21, 2016 20:15
Intervals
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / HW5_graphs-all.ipynb
Last active November 1, 2016 21:01
Hypothesis check: p-value and power (All graphs)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / HW5.ipynb
Last active November 3, 2016 15:04
Hypothesis check: p-value and power
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / 161005_statistics.ipynb
Created November 5, 2016 18:32
Nov 5th 2016, Statistics Practice - beta(alpha) distribution
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / 121116_statistics.ipynb
Last active November 17, 2016 16:30
Nov 12th 2016, Statistics Practice - beta(alpha) for simple alternative
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Lipen
Lipen / encoder_char.cpp
Created November 24, 2016 21:22
Character-encoder
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <map>
using std::cout;
using std::endl;
using std::string;