while (! std::cin.eof ()) {
std::cin >> q >> v >> rho;
}
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
#!/usr/bin/env python3 | |
# -*- encoding: utf-8 -*- | |
import tabulate | |
from configparser import ConfigParser | |
import os | |
import requests | |
from bs4 import BeautifulSoup | |
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
\documentclass[a4paper,10pt]{article} | |
\usepackage[utf8]{inputenc} | |
\usepackage[russian]{babel} % Cyrillics! | |
\usepackage{cmap} % Copypastable cyrillics! | |
\usepackage{amsmath} % Multiline equations | |
\usepackage{mathtools} % Disable numbering equations by default | |
\mathtoolsset{showonlyrefs} | |
\usepackage{indentfirst} % Indent first paragraph in chapter |
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
#!/bin/bash | |
#============================================================================== | |
# An install script which help you to install VMD in Ubuntu 16.04 | |
# | |
# Authors: Alisue (lambdalisue@hashnote.net). Al42and (al42and@gmail.com) | |
# License: MIT License | |
# | |
# Copyright hashnote.net, 2015, allright reserved. | |
#============================================================================== |
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
import numpy as np | |
def Kittler(im, out): | |
""" | |
The reimplementation of Kittler-Illingworth Thresholding algorithm by Bob Pepin | |
Works on 8-bit images only | |
Original Matlab code: https://www.mathworks.com/matlabcentral/fileexchange/45685-kittler-illingworth-thresholding | |
Paper: Kittler, J. & Illingworth, J. Minimum error thresholding. Pattern Recognit. 19, 41–47 (1986). | |
""" | |
h,g = np.histogram(im.ravel(),256,[0,256]) |
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
scriptId = 'com.aland.ttwym' | |
scriptDetailsUrl = 'https://gist.github.com/al42and/bd5b4bfa25c911eb7de9' | |
scriptTitle = 'Throw Trucks With Your Mind Connector' | |
--Andrey Alekseenko - Jan 23, 2015 | |
--http://throwtrucks.com/ | |
--Make a fist to activate powers | |
--Move hand to aim | |
--doubleTap to lock/unlock. |
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
#!/usr/bin/env python | |
#-*- encoding: utf-8 -*- | |
# This code is a part of stackexchange answer | |
# http://bitcoin.stackexchange.com/a/20060/2343 | |
# License: cc-wiki with attribution required | |
import numpy as np | |
HR = 550 # GHash/s, own hashrate |
NewerOlder