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
alley,allee | |
alley,alley | |
alley,ally | |
alley,aly | |
aly,allee | |
aly,alley | |
aly,ally | |
aly,aly | |
annex,anex | |
annex,annex |
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
aaliyah => alea, aleah, aleaseya, aleeya, alia, aliya, aliyah, allyiah | |
aaron => ahron, aron, arron | |
aarti => arti | |
aayesha => ayasha, ayesha, ayisha, ayse | |
aba => abod, abony, abos | |
abagail => abbe, abbey, abbie, abby, abigail, abigale, abigayle, abihail, abilio, gail | |
abba => abbe, abbot, abbott, absa | |
abbe => abagail, abba, abbey, abbie, abbot, abbott, abby, abigail, abigale, abigayle, abihail, abilio, absa, gail | |
abbey => abagail, abbe, abbie, abby, abigail, abigale, abigayle, abihail, abilio, gail | |
abbiah => abia, abiam, abijah |
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
<?php | |
/** | |
* Updated app/Policies/TeamPolicy.php | |
*/ | |
namespace App\Policies; | |
use App\Models\Team; | |
use App\Models\User; |
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
<?php | |
/* | |
Updated config/fortify.php file | |
*/ | |
use App\Providers\RouteServiceProvider; | |
use Laravel\Fortify\Features; | |
return [ |
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 lang="en"><head><style type="text/css" data-tag-name="trix-editor">trix-editor { | |
display: block; | |
} | |
trix-editor:empty:not(:focus)::before { | |
content: attr(placeholder); | |
color: graytext; | |
cursor: text; | |
} |
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
def data_contract(): | |
return { | |
'good_column_header': ['possible_header_1', 'possible_header_2], | |
'another_good_column': ['only_one_possible_header'] | |
} | |
def _validate_data_contract(df): | |
vdf = pd.DataFrame(data=None) | |
df_columns = df.columns | |
for key, possible_headers in data_contract().items(): |
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 sqlalchemy import MetaData, Table | |
from models import engines | |
# engine is expecting a create_engine | |
def get_table_columns(table_name, engine): | |
metadata = MetaData() | |
meta_table_columns = Table(table_name, metadata, autoload_with=engine).columns | |
table_columns = [] | |
for name in meta_table_columns: |
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 io | |
import zipfile | |
import dropbox | |
import pandas as pd | |
def get_dropbox(): | |
dropbox_path = "path/to/dropbox/files" | |
dbx = dropbox.Dropbox('DROPBOX_KEY') | |
# get listing of files | |
dbx_files = dbx.files_list_folder(dropbox_path) |
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
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateOrderProductTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
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
<?php | |
use Illuminate\Database\Migrations\Migration; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Support\Facades\Schema; | |
class CreateProductTagTable extends Migration | |
{ | |
/** | |
* Run the migrations. |
NewerOlder