Багатошарове освітлення одною кнопкою
Як я автоматизував світло у ванній: проводка, Shelly, Home Assistant і failover, коли сервер мовчить.
Recent content on Leonid Shevtsov
Як я автоматизував світло у ванній: проводка, Shelly, Home Assistant і failover, коли сервер мовчить.
This is a collection (ok, a couple) of Apple automation scripts to extract the tabs out of the topmost Safari window and send them elsewhere. Pull just the URLs I use this in a Shortcut to send the URLs to Reeder’s Read it Later. on run { input , parameters } tell application 'Safari' set tabURLs to {} set tabCount to 0 repeat with t in tabs of window 0 if name of t is not 'Untitled' then…
Do anything and more.
Run the script from the Developer Console and get an OPML file with your subscriptions.
If you know what you’re doing, it’s not so hard
Take care to assign a unique node name. But better use an integer ID instead.
It only needs a couple of minutes of downtime
Запрошую підписатись на мій новий канал, куди я щодня пишу про свою роботу.
You can make macOS do wonderful things. Let’s go deeper.
Як ми удвох розробляємо найкращий сервіс для ведення денного бюджету.
Top performance and no fan. For me, it’s the best laptop.
Railsware - компания хороших людей и открытой критики
If you start a promise inside useEffect, make sure to cancel it in the cleanup handler.
A path without giving up private repos or giving out access tokens with broad permissions.
Cut down on repetitive parts, precompile assets, avoid making external requests, and make the app faster.
TLDR: set port in Metro options, and set RCT_METRO_PORT in React-Core preprocessor definitions. But wait! There’s more.
There are many approaches to creating a website or application. When starting a project, it’s important to focus your efforts on the ground-breaking, value-creating bits, and save on everything else.
Reselect does a good job of optimizing with referential transparency, but does nothing for referential stability.
Is M1 ready to accept Ruby developers? Definitely.
To paraphrase Alf, if you don’t like Jira, you just don’t know how to cook it
I’ve migrated Sintra from JavaScript to TypeScript. It took me a couple of weekends to finish. I’m incredibly happy with the result.
A five-dimensional air quality monitor with data logging, a pleasant design, and convenient integrations.
Unbeatable feature set for a reasonable price.
You don’t need to make it complicated.
That is if you are making a web app with lots of complicated serverside business logic, but it doesn’t have to crunch large amounts of data.
A successful software product is a compromise between three ideals: architecture, usability, and vision. If you want to succeed, make sure they are are balanced.
Some accumulated practical wisdom.
A real life example of using hooks to solve a problem.
Best Mac monitor (asterisk) (asterisk) (asterisk)
Your job is to find the optimal approximation, somewhere between spaghetti code and perfection.
Слайды моего доклада на Ruby Meditation
I’m not going to criticize or evangelize JavaScript here. Let’s unwrap “my” JavaScript assumptions one at a time.
Я расскажу о нескольких прикладных штуках, которые я обожаю в работе с React, но о которых сложно догадаться по рекламным материалам.
With the power of WUnderground, Clojurescript, and some double-sided tape.
It’s much easier on Travis. But sometimes, you don’t have a choice.
My favorite way to create and open projects in Sublime Text
If you are already running Moves.app, why not utilize it for something useful?
If you care about your RPC performance at all, you should be using a protocol with a persistent connection - and MessagePack-RPC is a great choice for Ruby projects.
Доклад на Lambda Club Днепропетровск 6/2016
Make sure to pass the right constructor into the writer handler.
And make use of propType validation.
Bring focus from fiddling with abstract numbers of “points” to planning out work into actionable steps.
TL:DR - it was free and took an hour to figure everything out.
start-stop-daemon is a utility that, among other things, can make daemons out of regular foreground user-facing programs, and they don’t have to know anything about it.
Implementing this may sound like a big complicated job, but in fact, it’s feasible without resorting to third-party libraries.
It’s probably better to use Organic Maps at this point.
How would you find sense in a 4-megabyte JSON file? Turns out, this is a great opportunity to use jq - a lightweight and flexible command-line JSON processor.
React makes it possible to code modern web application with the same simple approach as traditional, non-interactive websites.
These are only companies that have achieved household name level (at least in developer-held households.
Details of my implementation that is now bundled into the lunr-languages library.