This file contains 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 { Composer } from "grammy"; | |
import { Router } from "@grammyjs/router"; | |
import { isPrivate } from "grammy-guard"; | |
import { Context } from "@bot/types"; | |
import { selectSpecializationKeyboard } from "@bot/keyboards"; | |
import tryToFindMentors from "@bot/helpers/try-to-find-mentors"; | |
import paginate from "@bot/helpers/pagination"; | |
import { Menu } from "@grammyjs/menu"; | |
import { logger } from "@bot/logger"; |
This file contains 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
Firestore.firestore().collection("Portfolio").getDocuments() { query, error in | |
if let documents = query.documents { | |
let portfolios: [HistoryCompany] = documents.map { document in | |
return try! FirestoreDecoder().decode(HistoryCompany.self, from: document.data() | |
} | |
} else { | |
print("Document does not exist") | |
} | |
} |
This file contains 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
# main opencv dependency | |
import cv2 | |
# numpy is a library for large, multi-dimensional arrays and matrices | |
# along with a large collection of high-level math functions | |
import numpy as np | |
# this library provides a way of using operating system dependent functionality | |
# in this case it is reading/writing files | |
import os |
This file contains 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 React, { Component } from "react"; | |
import { Platform, StyleSheet, Text, View, Slider } from "react-native"; | |
import Video from "react-native-video"; | |
export default class App extends Component { | |
state = { | |
rate: 1, | |
fps: 24 | |
}; |
This file contains 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
#!/bin/bash | |
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} + | |
## or | |
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} + |