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
// A Template for implementing factory method | |
#include <iostream> | |
using namespace std; | |
// Declare the available types that can be passed to the factory | |
enum robotType {R_Bipedal, R_Drone, R_Rover}; | |
// Superclass | |
class Robot{ |
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
from multiprocessing import Process | |
import time | |
class TimeoutException(Exception): | |
pass | |
timer = 5 | |
def start_timer(): | |
time.sleep(timer) | |
raise TimeoutException |
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
using System; | |
using System.IO; | |
namespace Write2Text | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
using (StreamWriter writetext = new StreamWriter("C:/Users/abdul_na/Desktop/hello.txt")) |
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
Firebase.storage().ref(this.state.User.uid).listAll() | |
.then((result) => { | |
result.items.forEach((imgRef) => { | |
console.log("ListAll > " + imgRef.fullPath) | |
}) | |
}) |
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 TextField from '@material-ui/core/TextField'; | |
import SearchIcon from '@material-ui/icons/Search'; | |
import InputAdornment from '@material-ui/core/InputAdornment'; | |
import InputLabel from '@material-ui/core/InputLabel'; | |
import FormControl from '@material-ui/core/FormControl'; | |
import Select from '@material-ui/core/Select'; | |
import MenuItem from '@material-ui/core/MenuItem'; | |
const Search = () => { | |
const SearchStyles = { |
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
const Select = () => { | |
return ( | |
<FormControl style={NewUserStyles.Input}> | |
<InputLabel error={this.state.Error_Industry}>Industry</InputLabel> | |
<Select value={this.state.Industry} | |
error={this.state.Error_Industry} | |
onChange={(e) => {this.setState({Industry: e.target.value})}} | |
> | |
{ | |
Industries.map((item) => { |
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 SwiftUI | |
import Contacts | |
import Combine | |
import Foundation | |
import ContactsUI | |
struct ContactPicker: UIViewControllerRepresentable { | |
typealias UIViewControllerType = EmbeddedContactPickerViewController |
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 Foundation | |
import SwiftUI | |
import UIKit | |
struct DocumentPicker: UIViewControllerRepresentable { | |
@Binding var filePath: URL? | |
func makeCoordinator() -> DocumentPicker.Coordinator { | |
return DocumentPicker.Coordinator(parent1: self) |
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 Foundation | |
import SwiftUI | |
struct ImagePicker: UIViewControllerRepresentable { | |
func makeCoordinator() -> Coordinator { | |
Coordinator(self) | |
} | |
@Environment(\.presentationMode) var presentationMode | |
@Binding var image: UIImage? |
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
<html> | |
<head> | |
<script> | |
var csvFile = null | |
var merchantList = [] | |
var merchants = [] | |
var updateResult = [] | |
var success = 0 | |
var failed = 0 |