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 mccData = [ | |
{ | |
category: "Contracted Services", | |
mccs: [ | |
{ code: "0742", title: "Veterinary Services", icon: "bi-heart-pulse" }, | |
{ code: "0763", title: "Agricultural Cooperatives", icon: "bi-plant" }, | |
{ code: "0780", title: "Horticultural and Landscaping Services", icon: "bi-tree" }, | |
{ code: "1520", title: "General Contractors – Residential and Commercial", icon: "bi-hammer" }, | |
{ code: "1711", title: "Heating, Plumbing, and Air Conditioning Contractors", icon: "bi-thermometer-half" }, | |
{ code: "1731", title: "Electrical Contractors", icon: "bi-lightning" }, |
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 matplotlib.pyplot as plt | |
import numpy as np | |
import random | |
from math import log2 | |
# Define the binary search strategies | |
def choose_straight_middle_left(left_incl, right_incl): | |
return (left_incl + right_incl) // 2 | |
def choose_straight_middle_right(left_incl, right_incl): |
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 { Component, OnInit } from '@angular/core'; | |
import { isValidPhoneNumber, parsePhoneNumber} from 'libphonenumber-js'; | |
import { phoneNumbers } from './phone-numbers'; | |
export interface Profile { | |
firstName?: string; | |
lastName?: string; | |
org?: string; | |
orgTitle?: string; |
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
.profile-info { | |
ion-label { | |
margin-right: 1em; | |
min-width: 7em; | |
line-height: 45px; | |
} | |
ion-input, ion-select { | |
min-height: 45px; | |
max-width: 50%; |
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
<div class="profile-info"> | |
<ion-row> | |
<ion-label>First Name:</ion-label> | |
<ion-input [(ngModel)]="profile.firstName"></ion-input> | |
</ion-row> | |
<ion-row> | |
<ion-label>Last Name:</ion-label> | |
<ion-input [(ngModel)]="profile.lastName"></ion-input> | |
</ion-row> | |
<ion-row> |
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
export const phoneNumbers = [ | |
{ text: '🇺🇸 +1 United States', code: '+1', country: 'US' }, | |
{ text: '🇨🇦 +1 Canada', code: '+1', country: 'CA' }, | |
{ text: '🇷🇺 +7 Russia', code: '+7', country: 'RU' }, | |
{ text: '🇪🇬 +20 Egypt', code: '+20', country: 'EG' }, | |
{ text: '🇿🇦 +27 South Africa', code: '+27', country: 'ZA' }, | |
{ text: '🇬🇷 +30 Greece', code: '+30', country: 'GR' }, | |
{ text: '🇳🇱 +31 Netherlands', code: '+31', country: 'NL' }, | |
{ text: '🇧🇪 +32 Belgium', code: '+32', country: 'BE' }, | |
{ text: '🇫🇷 +33 France', code: '+33', country: 'FR' }, |
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 { NgModule } from '@angular/core'; | |
import { CommonModule } from '@angular/common'; | |
import { FormsModule } from '@angular/forms' | |
import { IonicModule } from '@ionic/angular'; | |
import { PhoneNumberComponent } from './phone-number.component'; | |
@NgModule({ | |
imports: [ | |
CommonModule, | |
FormsModule, |
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> | |
<style> | |
.kb { | |
display: grid; | |
grid-template-columns: repeat(13, 1fr); | |
grid-gap: 5px; | |
margin: 20px; | |
} | |
.k { |
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
# Copyright 2023 Ali Sherief | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
# Copyright 2023 Ali Sherief | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder