Skip to content

Instantly share code, notes, and snippets.

View maximillian2's full-sized avatar

Maksym Tymoshyk maximillian2

  • EPAM Systems
  • Kyiv, Ukraine
  • 15:04 (UTC +03:00)
View GitHub Profile
@maximillian2
maximillian2 / task2.rb
Created May 16, 2014 20:01
Практика по ООП. 2014
class Device
@@count_device = 0
@@current_power = 0
@@devices = []
attr_accessor :max_power, :power, :timer, :break_time
def initialize(power = 0, timer = 0, break_time = 0)
@default_power, @power = power, power
@default_timer, @timer = timer, timer
@maximillian2
maximillian2 / laboratory_slavik_ruby.rb
Created May 18, 2014 16:15
Test questions to find out what speciality best for students.
def menu
puts '1) Професiограми'
puts '2) Акмеограми'
puts '3) Пiдбiр найкращої спецiальностi'
puts '4) Пiдбiр найкращого кандидата'
puts '5) Пiдбiр вiдповiдностей'
puts '6) Вихiд'
end
def professiogram
File.open(ARGV[0]).each_line do |line|
line.split(' ').collect { |i| i.to_f }.sort.each do |item|
print "#{item} "
end
puts
end
@maximillian2
maximillian2 / main.rb
Created March 29, 2015 21:05
Simple SDI-app.
require 'Qt'
class Main < Qt::Dialog
slots 'change_title()', 'change_size()', 'set_icon()'
def initialize(parent = nil)
super(parent)
title_label = Qt::Label.new('Window title: ')
@title_edit = Qt::LineEdit.new
@title_button = Qt::PushButton.new('Change title!')

TO DO

  • [feature] Добавить клипы в меню "Категории".
  • [feature] Сделать красивые URL'ы.
  • [UI fix] Спрятать флаги под dropdown menu.
  • [feature] Сделать коллекцию стандартных тегов.
  • [feature] Сделать добавление никнейма.
  • [UI feature] Сделать отображение текущего параметра отображения результатов (ищем в жанре "Боевик").
  • [UI feature] Сделать страницу About.
  • [UI feature] Сделать тур с подсказками для первого посещения сайта.
16 application_controller.rb
120 films_controller.rb
136 total
26 edit.html.erb
41 index.html.erb
79 new.html.erb
70 search.html.erb
4 show.html.erb
220 total
.video-item-delete{width:30px;height:25px;position:absolute;background:transparent;border:none!important;border-top-right-radius:10px;border-bottom-left-radius:5px;top:0;color:#fff;left:150px;margin-left:5px;margin-right:5px;.faposition:relative;top:1px;left:1px}
#########################
.video-item-delete {
width: 30px;
height: 25px;
position: absolute;
background: transparent;
border: none !important;
@maximillian2
maximillian2 / notations.rb
Created September 27, 2015 19:19
Архітектура комп'ютера – Лабораторна робота №2
## notations.rb
## by Maksym Tymoshyk
## 27.09.15
## 8 -> 16
puts "PART I: 8 -> 16"
print "Enter digit: "; input = gets.chomp
# Oneliner is for faggots :/
@maximillian2
maximillian2 / OOP1.cpp
Created October 5, 2015 17:13
OOP Laboratory work #1
// Вариант №13
#include <iostream>
#include <cmath>
using namespace std;
class Rectangle {
private:
int _x1, _y1, _x2, _y2, _x3, _y3, _x4, _y4;
@maximillian2
maximillian2 / 0_reuse_code.js
Created October 23, 2015 19:10
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console