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
| Process: Viso [50893] | |
| Path: /Applications/Viso.app/Contents/MacOS/Viso | |
| Identifier: com.viso.Viso | |
| Version: 4 (6) | |
| Code Type: X86-64 (Native) | |
| Parent Process: ??? [1] | |
| Responsible: Viso [50893] | |
| User ID: 501 | |
| Date/Time: 2019-06-24 22:08:36.989 +0100 |
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
| const WALLET_REPORT = '../../WalletReport.xlsx'; | |
| class GenerateReport { | |
| wallets: Wallet[] = []; | |
| duration: number = 0; | |
| constructor() { | |
| writeFileSync(join(__dirname, WALLET_REPORT), ''); | |
| } |
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
| const start_time = performance.now(); | |
| const count: number = 1000; | |
| const wallets: Wallet[] = []; | |
| const walletCount = await WalletModel.find({}).estimatedDocumentCount(); | |
| // create a cursor for every `currentIndex` documents in the collection | |
| const getNthCursor = async (currentIndex: number) => | |
| await WalletModel.find({ deleted_at: undefined }, { timeout: false }) | |
| .lean() |
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 redis, { RedisClient } from "redis"; | |
| import { promisify } from "util"; | |
| export class Redis implements IRedis { | |
| redis: RedisClient; | |
| hdel: (hash: string, field: string) => Promise<any>; | |
| hget: (hash: string, field: string) => Promise<string>; | |
| hgetall: (key: string) => Promise<object>; | |
| hset: (hash: string, field: string, value: any) => Promise<any>; | |
| quit: () => Promise<void>; |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content"> | |
| <ImageView | |
| android:id="@+id/image" |
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
| // Utility function to get version properties | |
| def getVersionProps() { | |
| def versionPropsFile = file('gradle.properties') | |
| if (!versionPropsFile.exists()) { | |
| versionPropsFile.createNewFile() | |
| } | |
| def versionProps = new Properties() | |
| versionProps.load(new FileInputStream(versionPropsFile)) | |
| return versionProps | |
| } |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <android.support.constraint.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent"> | |
| <View | |
| android:layout_width="0dp" |
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
| <android.support.v7.widget.CardView | |
| android:id="@+id/backdrop" | |
| android:layout_width="0dp" | |
| android:layout_height="wrap_content" | |
| android:layout_marginTop="16dp" | |
| android:background="@color/transparent" | |
| app:cardCornerRadius="8dp" | |
| app:cardElevation="8dp" | |
| app:layout_constraintEnd_toStartOf="@+id/guidelineRight" | |
| app:layout_constraintHorizontal_bias="0.0" |
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
| const mongoose = require('mongoose') | |
| const { PersonSchema } = require('./person') | |
| class ManSchema extends PersonSchema { | |
| constructor(obj, options) { | |
| super(obj, options) | |
| this.add({ age: { type: String, required: true } }) | |
| } | |
| } |
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
| exports.paramsNotValid = (...args) => args | |
| .map(param => param !== undefined && param != null && param !== '') | |
| .includes(false) |