Skip to content

Instantly share code, notes, and snippets.

View TaylorHawkes's full-sized avatar

Taylor Hawkes TaylorHawkes

View GitHub Profile
@TaylorHawkes
TaylorHawkes / files.sh
Last active August 29, 2015 14:24 — forked from NoMan2000/files.sh
sudo find . -type f | xargs chmod -v 664
sudo find . -type d | xargs chmod -v 775
sudo chmod -R u=rwX,g=rwX,o=rX .
sudo chown -R ubuntu:www-data .
@TaylorHawkes
TaylorHawkes / Classifying Yelp Reviews using BERT.ipynb
Created November 6, 2020 21:58 — forked from samk3211/Classifying Yelp Reviews using BERT.ipynb
This gist is part of my blogpost on BERT. Find the complete blogpost, covering both theory and hands-on part, here: https://towardsml.com/2019/09/17/bert-explained-a-complete-guide-with-theory-and-tutorial/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TaylorHawkes
TaylorHawkes / Classifying Yelp Reviews using BERT.ipynb
Last active November 6, 2020 22:03 — forked from samk3211/Classifying Yelp Reviews using BERT.ipynb
This gist is part of my blogpost on BERT. Find the complete blogpost, covering both theory and hands-on part, here: https://towardsml.com/2019/09/17/bert-explained-a-complete-guide-with-theory-and-tutorial/
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@TaylorHawkes
TaylorHawkes / indexof-javascript.js
Created January 17, 2023 18:54
indexof javascript
Array.indexOf(searchElement, fromIndex)
@TaylorHawkes
TaylorHawkes / php-404-page.php
Created January 17, 2023 19:16
php 404 page
<?php
header("HTTP/1.0 404 Not Found");
echo '<html>
<head>
<meta http-equiv="Refresh" content="0;url=http://www.mysite.com/index.php?code=404" />
</head><body></body>
</html>';
@TaylorHawkes
TaylorHawkes / data-type-size-in-cpp-in-number.txt
Created January 17, 2023 19:16
data type size in cpp in number
#include <iostream>
using namespace std;
int main()
{
cout << "Size of char: " << sizeof(char) << " byte" << endl;
cout << "Size of int: " << sizeof(int) << " bytes" << endl;
cout << "Size of float: " << sizeof(float) << " bytes" << endl;
cout << "Size of double: " << sizeof(double) << " bytes" << endl;
@TaylorHawkes
TaylorHawkes / web-server-default-file-location.sh
Created January 17, 2023 19:16
web server default file location
# Web server default file location:
Nginx / Apache (Linux OS): /var/www/html
IIS (Windows OS): C:\inetpub\wwwroot
NodeJS: ???
@TaylorHawkes
TaylorHawkes / cannot-run-the-specific-executable.txt
Created January 17, 2023 19:16
cannot run the specific executable
Remove the .exe
@TaylorHawkes
TaylorHawkes / get-terminal-size-errno-25-inappropriate-ioctl-for-device.py
Created January 17, 2023 19:16
get_terminal_size Errno 25] Inappropriate ioctl for device
# Replace os with shutil
import shutil
shutil.get_terminal_size()
@TaylorHawkes
TaylorHawkes / progressbar-python-update.py
Created January 17, 2023 19:16
progressbar python update
# importing libraries
import urllib.request
from PyQt5.QtWidgets import *
import sys
 
class GeeksforGeeks(QWidget):
 
    def __init__(self):
        super().__init__()