Skip to content

Instantly share code, notes, and snippets.

View anatoliykant's full-sized avatar

Anatoliy Kant anatoliykant

  • Belgrade
View GitHub Profile
localeIdentifier Description
eu Basque
hr_BA Croatian (Bosnia & Herzegovina)
en_CM English (Cameroon)
en_BI English (Burundi)
rw_RW Kinyarwanda (Rwanda)
ast Asturian
en_SZ English (Swaziland)
he_IL Hebrew (Israel)
ar Arabic
@anatoliykant
anatoliykant / Chinatown, 1974
Last active March 7, 2020 21:21
new gist from vs code plugin
{
"window.zoomLevel": 1,
"telemetry.enableTelemetry": false,
"explorer.confirmDragAndDrop": false,
"html.format.wrapAttributes": "auto",
"editor.wordWrap": "on",
"files.autoSave": "afterDelay",
"editor.largeFileOptimizations": false,
"editor.renderWhitespace": "all",
"GithubGistExplorer.explorer.gistAscending": true,
$ \curl -sSL https://get.rvm.io | bash -s stable --ruby
Downloading https://github.com/rvm/rvm/archive/1.29.10.tar.gz
Downloading https://github.com/rvm/rvm/releases/download/1.29.10/1.29.10.tar.gz.asc
Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.29.10/1.29.10.tar.gz.asc',
but no GPG software exists to validate it, skipping.
Installing RVM to /Users/kant/.rvm/
RVM PATH line found in /Users/kant/.mkshrc /Users/kant/.profile /Users/kant/.bashrc /Users/kant/.zshrc.
RVM sourcing line found in /Users/kant/.profile /Users/kant/.bash_profile /Users/kant/.zlogin.
Installation of RVM in /Users/kant/.rvm/ is almost complete:
[["scumming"],
["enfranchised"],
["negros"],
["tom"],
["brew"],
["coughing"],
["incontinent"],
["butteriest"],
["previewed"],
["expound"],
sudo gem install fastlane -NV
Password:
HEAD https://rubygems.org/api/v1/dependencies
200 OK
GET https://rubygems.org/api/v1/dependencies?gems=fastlane
200 OK
GET https://rubygems.org/quick/Marshal.4.8/fastlane-2.156.0.gemspec.rz
200 OK
GET https://rubygems.org/api/v1/dependencies?gems=CFPropertyList,addressable,aws-sdk-s3,babosa,bundler,colored,commander-fastlane,dotenv,emoji_regex,excon,faraday,faraday-cookie_jar,faraday_middleware,fastimage,gh_inspector,google-api-client,google-cloud-storage,highline,json,jwt,mini_magick,multipart-post,plist,rubyzip,security,simctl,slack-notifier,terminal-notifier,terminal-table,tty-screen,tty-spinner,word_wrap,xcodeproj,xcpretty,xcpretty-travis-formatter
200 OK
custom_rules:
rus_character_c:
name: "Russian char С"
regex: '([Сс])'
match_kinds:
- identifier
- parameter
message: "Wrong character 'с'"
severity: error
@anatoliykant
anatoliykant / Binding+didSet.swift
Created December 22, 2020 21:16 — forked from Amzd/Binding+didSet.swift
SwiftUI Binding wrappers for willSet and didSet
extension Binding {
/// Wrapper to listen to didSet of Binding
func didSet(_ didSet: @escaping ((newValue: Value, oldValue: Value)) -> Void) -> Binding<Value> {
return .init(get: { self.wrappedValue }, set: { newValue in
let oldValue = self.wrappedValue
self.wrappedValue = newValue
didSet((newValue, oldValue))
})
}
private let sandboxURL = URL(string: "https://example.web.app/")!
class SomeViewController: UIViewController {
...
private lazy var webView: WKWebView = {
let configuration = WKWebViewConfiguration()
// configuration.userContentController.add(self, name: signInWithCustomToken)
{
"user": {
"uid": "UyZUqGfcKodf****oUgOOBH36EG3",
"displayName": "Anatoliy",
"photoURL": null,
"email": "anatoliy.exapmple@gmail.com",
"emailVerified": false,
"phoneNumber": null,
"isAnonymous": false,
"tenantId": null,
Debug Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"yhaio-1","value":false}'
Info Zigbee: disabling joining new devices.
Error Request 'zigbee2mqtt/bridge/request/permit_join' failed with error: 'Cannot execute command, in Inter-PAN mode'
Info MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{},"error":"Cannot execute command, in Inter-PAN mode","status":"error","transaction":"yhaio-1"}'
Debug Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"transaction":"yhaio-2","value":false}'
Info Zigbee: disabling joining new devices.
Error Request 'zigbee2mqtt/bridge/request/permit_join' failed with error: 'Cannot execute command, in Inter-PAN mode'
Info MQTT publish: topic 'zigbee2mqtt/bridge/response/permit_join', payload '{"data":{},"error":"Cannot execute command, in Inter-PAN mode","status":"error","transaction":"yhaio-2"}'
Debug Received MQTT message on 'zigbee2mqtt/bridge/request/permit_join' with data '{"t