This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| build: | |
| maxIssues: 0 | |
| excludeCorrectable: false | |
| weights: | |
| # complexity: 2 | |
| # LongParameterList: 1 | |
| # style: 1 | |
| # comments: 1 | |
| config: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var NoSunmiPrinter = 0 | |
| var CheckSunmiPrinter = 1 | |
| var FoundSunmiPrinter = 2 | |
| var LostSunmiPrinter = 3 | |
| private var sunmiPrinterService: SunmiPrinterService? = null | |
| var sunmiPrinter: Int = CheckSunmiPrinter | |
| private val innerPrinterCallback: InnerPrinterCallback = object : InnerPrinterCallback() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| p_uid = "6126" | |
| u_uid = "4914" | |
| start_date = (Time.now.beginning_of_day - 3.day) | |
| end_date = (Time.now.end_of_day) | |
| id = Invoice.where(user_uid: u_uid, cancelled: false, :invoiced_at => start_date..end_date).pluck(:id) | |
| ivnoice_id = InvoiceItem.where(invoice_id: id, product_uid: p_uid).pluck(:invoice_id) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ruby:2.5.3-alpine | |
| ENV BUNDLER_VERSION=2.0.2 | |
| RUN apk add --update --no-cache \ | |
| binutils-gold \ | |
| build-base \ | |
| curl \ | |
| file \ | |
| g++ \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| override suspend fun validateAndSendCreditCorpPayment( | |
| paymentSecureKey: String, | |
| amountToPayValue: String, | |
| encryptData: String, | |
| dbRef: String, | |
| module: Module | |
| ): Result<CreditCardPaymentDTO> { | |
| return try { | |
| database.withTransaction { | |
| // Validate credit card field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:firebase/firebase.dart'; | |
| import 'package:meta/meta.dart'; | |
| @immutable | |
| class UserRepository { | |
| UserRepository({Auth firebaseAuth, GoogleAuthProvider googleSignin}) | |
| : _firebaseAuth = firebaseAuth ?? auth(), | |
| _googleSignIn = googleSignin ?? GoogleAuthProvider(); | |
| final Auth _firebaseAuth; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import android.content.Context | |
| import android.content.res.Resources | |
| import android.graphics.drawable.Drawable | |
| import android.support.annotation.AnyRes | |
| import android.support.v4.app.Fragment | |
| import android.support.v4.content.res.ResourcesCompat.* | |
| import android.view.View | |
| val Context.animations | |
| get() = ResourceMapper { resources.getAnimation(it) } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //WeatherAPI object | |
| data class WeatherAPI( | |
| val id: Long, | |
| val humidity: Int, | |
| val description: String, | |
| val weatherId: Int, | |
| val windDeg: Double, | |
| val windSpeed: Double, | |
| val temperature: Int | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package experiments | |
| enum class MousesV1( | |
| val brand: String | |
| ) { | |
| LOGITECH("logi"), | |
| DELL("dell"); | |
| companion object { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| 'repeat(5, 30)': { | |
| id: '{{objectId()}}', | |
| index: '{{index()}}', | |
| uid: '{{integer(0, 9999)}}', | |
| created_at: '{{moment(this.date(new Date(2014, 0, 1), new Date())).format("LLLL")}}', | |
| isActive: '{{bool()}}', | |
| credit_limit: '{{floating(5000, 9000, 2, "0000.00")}}', | |
| credit_balance: '{{floating(1000, 4000, 2, "0000.00")}}', |
NewerOlder