Skip to content

Instantly share code, notes, and snippets.

View Vaysman's full-sized avatar

Mikhail Vaysman Vaysman

  • SkyWorkz
  • Hilversum
View GitHub Profile

Упражнение 1

Задача 1

  1. Определить интерфейс Report с единственным методом String getReport()
  2. Создать интерфейс Account, расширяющий интерфейс Report, с методами float getBalance(), void deposit(float x), void withdraw(float x)
  3. Создать класс Client, представляющий клиента банка и реализующий интерфейс Report. У клиента есть имя (уникальное и неизменяемое), указатель на активный счет, список всех счетов. Также клиент должен переопределить метод getReport(), который
@Vaysman
Vaysman / build.gradle
Last active August 29, 2015 14:16 — forked from Arakade/build.gradle
import com.petebevin.markdown.MarkdownProcessor
import org.xhtmlrenderer.pdf.ITextRenderer
import org.ccil.cowan.tagsoup.Parser
import org.apache.xalan.xsltc.trax.SAX2DOM
import org.xml.sax.InputSource
buildscript{
repositories {
mavenCentral() // i.e. http://repo1.maven.org/maven2
maven { url "https://oss.sonatype.org/content/groups/scala-tools" }
@Vaysman
Vaysman / inheritance.rb
Created April 1, 2015 00:47
To demonstrate strange behaviour in ruby-ncurses gem
class A
def to_s
"class a"
end
end
class B
def B.new()
A.new()
end

JavaScript basic

  1. Syntax
  2. Features
    • this
    • coersion
    • hoisting
    • exception
    • global object
  3. Base classes
  4. Object model
package trash;
import javax.swing.*;
import java.awt.*;
public class JSliderDemo {
private JFrame frame = new JFrame("Slider");
private JSlider slider = new JSlider(1, 50, 1);
public JSliderDemo() {
@Vaysman
Vaysman / clean.sh
Created August 19, 2015 12:45
Remove all docker container
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package TestFirst;
import java.util.ArrayList;
import java.util.List;
/**
@Vaysman
Vaysman / readfile.vb
Created March 18, 2011 16:02
read binary file on vb 6
Dim iFile As Integer
Dim lByteLen As Long
Dim bytData As Byte
Dim bytArray() As Byte
Dim sHex As String
'get an available file ID
iFile = FreeFile
'open the file for access
@Vaysman
Vaysman / metakoans.rb
Created May 12, 2011 07:11
Matakoans by ara.t.howard
#
# metakoans.rb is an arduous set of exercises designed to stretch
# meta-programming muscle. the focus is on a single method 'attribute' which
# behaves much like the built-in 'attr', but whose properties require delving
# deep into the depths of meta-ruby. usage of the 'attribute' method follows
# the general form of
#
# class C
# attribute 'a'
# end