This repo consist a small CLI mac os program for take screenshort each 10 minute.
convert must be install on computer. (brew install imagemagick)
- Close this repository (branch master, default)
- Add alias
alias startWork='/startwork.sh'
| from machine import Pin | |
| import time | |
| import network | |
| import time | |
| import ujson as json | |
| import usocket as socket | |
| import machine | |
| import urequests | |
| led = Pin(8, Pin.OUT) |
| fun fooBad(a: Any?) { | |
| val x: String? = a as String? // If 'a' is not String, ClassCastException will be thrown. | |
| } | |
| fun fooGood(a: Any?) { | |
| val x: String? = a as? String | |
| } |
| suspend fun CoroutineScope.badFoo() { | |
| launch { | |
| delay(1.seconds) | |
| } | |
| } | |
| fun CoroutineScope.goodFoo() { | |
| launch { | |
| delay(1.seconds) | |
| } |
| // Try to figure out, what changed, without knowing the details | |
| fun makeConnection(first: User, second: User) { | |
| first.apply { | |
| second.apply { | |
| b = a | |
| c = b | |
| } | |
| } | |
| } |
| fun runBarFlowBad() { | |
| if ( | |
| user.role == UserDto.Role.ADMIN || | |
| (user.status == UserDto.Status.VIP || | |
| (user.status == UserDto.Status.TRIAL_VIP && user.paymentTransactionList.isNotEmpty()) | |
| && user.age.isAdult()) | |
| ) { | |
| // do something | |
| } else { | |
| // do something else |
| 0 | |
| SECTION | |
| 2 | |
| BLOCKS | |
| 0 | |
| ENDSEC | |
| 0 | |
| SECTION | |
| 2 | |
| ENTITIES |
| import java.util.Locale | |
| fun slug(str: String): String { | |
| return translit(str) | |
| .lowercase(Locale.ENGLISH) | |
| .replace(Regex("[^a-zA-Z0-9]"), "-") | |
| .replace(Regex("-+"), "-") | |
| .trim('-') | |
| } |
| [ | |
| { | |
| "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 |