更新: | 2024-01-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
概要
import Foundation | |
import os.log | |
import FirebaseCrashlytics | |
extension OSLogType: CustomStringConvertible { | |
public var description: String { | |
switch self { | |
case OSLogType.debug: return "🔹🔹🔹" | |
case OSLogType.info: return "ℹ️ℹ️ℹ️" | |
case OSLogType.error: return "‼️‼️‼️" |
# FOR BUSY JOBS | |
# take the process_id from the /busy page in sidekiq and kill the longest running one. | |
workers = Sidekiq::Workers.new | |
long_process_id = 'integration.3:4:71111aaa111' # Eg: 'integration.3:4:71d1d7f4ef5a' | |
workers.each do |process_id, thread_id, work| | |
process = Sidekiq::Process.new('identity' => process_id) | |
process.stop! if process_id == long_process_id | |
end | |
# FOR SCHEDULED JOBS |
#! /usr/bin/perl | |
# | |
# Written in 2017 by Kazuho Oku | |
# | |
# To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty. | |
# You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>. | |
# | |
use strict; | |
use warnings; |
// The MIT License (MIT) | |
// | |
// Copyright (c) 2017 Alexander Grebenyuk (github.com/kean). | |
import Foundation | |
import RxSwift | |
import RxCocoa | |
extension ObservableType { |
更新: | 2024-01-20 |
---|---|
作者: | @voluntas |
バージョン: | 2024.1 |
URL: | https://voluntas.github.io/ |
概要
<?xml version="1.0" encoding="utf-8"?> | |
<com.google.android.flexbox.FlexboxLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:orientation="horizontal" | |
app:flexWrap="wrap"> | |
<TextView | |
android:layout_width="wrap_content" |
// | |
// Database.swift | |
// Model | |
// | |
// Created by mono on 2017/10/14. | |
// Copyright © 2017 Masayuki Ono All rights reserved. | |
// | |
import Foundation | |
import FirebaseCore |
public extension UIView { | |
private static let kLayerNameGradientBorder = "GradientBorderLayer" | |
public func setGradientBorder( | |
width: CGFloat, | |
colors: [UIColor], | |
startPoint: CGPoint = CGPoint(x: 0.5, y: 0), | |
endPoint: CGPoint = CGPoint(x: 0.5, y: 1) | |
) { |
日時: | 2017-07-21 |
---|---|
作: | @voluntas |
バージョン: | 0.6.0 |
URL: | https://voluntas.githu.io/ |
突っ込みは Twitter @voluntas まで。