Skip to content

Instantly share code, notes, and snippets.

View seliverstov-maxim's full-sized avatar

Maxim seliverstov-maxim

  • PE
  • Russia, Ulyanovsk
View GitHub Profile
@seliverstov-maxim
seliverstov-maxim / calc.rb
Last active September 29, 2015 05:44
Calc
module Converter
PRIORITIES = {')' => 0, '(' => 0, '+' => 1, '-' => 1, '*' => 2, '/' => 3 }
module_function
def polish(inp_exp)
res = []
stack = []
exp = inp_exp.scan(/\d+|\(|\)|\+|\-|\*|\//)
exp.each do |e|
@julionc
julionc / 00.howto_install_phantomjs.md
Last active March 24, 2025 17:27
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev