Skip to content

Instantly share code, notes, and snippets.

View AlexEne's full-sized avatar
🛠️
Working on dwarf world.

Alexandru Ene AlexEne

🛠️
Working on dwarf world.
View GitHub Profile
@AlexEne
AlexEne / image_comparison.py
Created August 6, 2018 23:55
comparing images using PSNR
from PIL import Image
import math
def main():
im1 = Image.open('dwarf.png')
im2 = Image.open('dwarf2.png')
width, height = im1.size
print('{} {}'.format(width, height))
pixels1 = im1.load()
@AlexEne
AlexEne / .tmux.conf
Created December 19, 2016 10:39
tmux config
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g mode-mouse on
set -g mouse-select-window on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <deque>
#include <set>
#include <map>
#include <chrono>
@AlexEne
AlexEne / vector_insert_bug.cpp
Last active February 4, 2016 11:54
STL vector bug
#include <chrono>
#include <vector>
using namespace std;
class Timer
{
public:
Timer() : beg_(clock_::now()) {}
void reset() { beg_ = clock_::now(); }
import requests
import matplotlib.pyplot as plt
import matplotlib.cm as cm
import bs4
from lxml import etree
import codecs
import time
import pandas as pd