Skip to content

Instantly share code, notes, and snippets.

View VovaStelmashchuk's full-sized avatar
🇺🇦

Volodymyr Stelmashchuk VovaStelmashchuk

🇺🇦
View GitHub Profile
@VovaStelmashchuk
VovaStelmashchuk / layout.kbd.json
Last active February 10, 2024 12:26
Untitled Keyboard Layout
[
{
"background": {
"name": "Carbon fibre 2",
"style": "background-image: url('/bg/carbonfibre/carbon_texture1874.png');"
}
},
[
"esc\n`",
"Q",
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/v.stelmashchuk/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes

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='/startwork.sh'
{"test": "test2", "etst2":43}
val point = -somePoint
pointA - pointB
pointA + pointB
point * Double
point * Float
point * Int
point / Double
point / Float
point / Int
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,
val pointA = Point()
val pointB = Point()
val plusResult = pointA + pointB
val minusResult = pointA - pointB
val divResult = pointA / 4.2
val timesResult = pointA * 2
val path = Path();
val topLeft = PointF();
val bottomRight = PointF();
path.addRect(topLeft.x, topLeft.y,
bottomRight.x, bottomRight.y)
val path = Path();
val topLeft = PointF();
val bottomRight = PointF();
path.addRect(topLeft, bottomRight);
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);