Skip to content

Instantly share code, notes, and snippets.

Avatar
😃
I love my pet projects.

Volodymyr VovaStelmashchuk

😃
I love my pet projects.
View GitHub Profile
View ReadMe.md

SimpleTracker

This repo consist a small CLI mac os program for take screenshort each 10 minute.

convert must be install on computer. (brew install imagemagick)

How to install

  1. Close this repository (branch master, default)
  2. Add alias alias startWork='<Absolute path to folder which you clone>/startwork.sh'
View point_operators.kt
val point = -somePoint
pointA - pointB
pointA + pointB
point * Double
point * Float
point * Int
point / Double
point / Float
point / Int
View point_operator_without_lib.kt
val pointA = Point()
val pointB = Point()
val plusResult = Point(pointA.x + pointB.x,
pointA.y + pointB.y)
val minusResult = Point(pointA.x - pointB.x,
pointA.y - pointB.y)
val divResult = PointF(pointA.x / 4.2,
pointA.y / 4.2)
val timesResult = PointF(pointA.x * 2,
View point_operator_with_lib.kt
val pointA = Point()
val pointB = Point()
val plusResult = pointA + pointB
val minusResult = pointA - pointB
val divResult = pointA / 4.2
val timesResult = pointA * 2
View add_rect_without_lib.kt
val path = Path();
val topLeft = PointF();
val bottomRight = PointF();
path.addRect(topLeft.x, topLeft.y,
bottomRight.x, bottomRight.y)
View add_rect_with_lib.kt
val path = Path();
val topLeft = PointF();
val bottomRight = PointF();
path.addRect(topLeft, bottomRight);
View create_line_without.kt
val a = Point(ax, ay)
val b = Point(bx, by)
val c = PointF(cx, cy)
val path = Path()
path.moveTo(a.x.toFloat(), a.y.toFloat());
path.lineTo(b.x.toFloat(), b.y.toFloat());
path.lineTo(c.x, c.y);
View create_line_with_library.kt
val a = Point(ax, ay)
val b = Point(bx, by)
val c = PointF(cx, cy)
val path = Path()
path.moveTo(a);
path.lineTo(b);
path.lineTo(c);
View androidgraphextension_path.md
with library without libary
path.moveTo(pointF) path.moveTo(pointF.x, pointF.y)
path.moveTo(point) path.moveTo(point.x.toFloat(), point.y.toFloat())
path.moveTo(xIntValue, yIntValue) path.moveTo(xIntValue.toFloat(), yIntValue.toFloat()
path.lineTo(pointF) path.lineTo(pointF.x, pointF.y)
path.lineTo(point) path.lineTo(point.x.toFloat(), point.y.toFloat())
path.lineTo(xIntValue, yIntValue) path.lineTo(xIntValue.toFloat(), yIntValue.toFloat()
path.setLastPoint(pointF) path.setLastPoint(pointF.x, pointF.y)
path.setLastPoint(point) path.setLastPoint(point.x.toFloat(), point.y.toFloat())
You can’t perform that action at this time.