Name: Ye Joo Park USCID: 1128685151 Email: yejoopar@usc.edu
This report outlines the steps I've followed to implement autocomplete, spell correction, and snippet generation features.
import React from "react"; | |
import ReactDOM from "react-dom"; | |
const Mousetrap = require("mousetrap"); | |
class App extends React.Component { | |
constructor() { | |
super(); | |
this.state = { |
#include <opencv2/core/core.hpp> | |
#include <opencv2/highgui/highgui.hpp> | |
#include <opencv2/imgproc.hpp> | |
#include <iostream> | |
using namespace cv; | |
using namespace std; | |
int main() | |
{ |
Name: Ye Joo Park USCID: 1128685151 Email: yejoopar@usc.edu
This report outlines the steps I've followed to implement autocomplete, spell correction, and snippet generation features.
// Basic auth for API authorization test | |
app.Use(async (context, next) => | |
{ | |
string authHeader = context.Request.Headers["Authorization"].ToString(); | |
if (authHeader != null && authHeader.StartsWith("Basic ")) | |
{ | |
string encodedUsernamePassword = authHeader.Substring("Basic ".Length).Trim(); | |
Encoding encoding = Encoding.GetEncoding("UTF-8"); | |
string usernamePassword = encoding.GetString(Convert.FromBase64String(encodedUsernamePassword)); |
from pyspark import SparkContext | |
from pyspark.accumulators import AccumulatorParam | |
class SetParam(AccumulatorParam): | |
def zero(self, initial_value): | |
return initial_value.copy() | |
def addInPlace(self, set1, set2): | |
return set1.union(set2) |
import numpy as np | |
import cv2 | |
import sys | |
print("Python version: " + sys.version) | |
print("OpenCV version: " + cv2.__version__) | |
MIN_MATCH_COUNT = 4 | |
img1 = cv2.imread('data/image1.jpg', cv2.IMREAD_GRAYSCALE) # queryImage |
#pragma warning(disable: 4819) | |
#include <iostream> | |
#include "opencv2/opencv.hpp" | |
using namespace std; | |
using namespace cv; | |
void find_width(const Mat& src_bin, const vector<Rect>& roi, vector<int>& border_widths); |
import os | |
basepath = "C:\\Your\\Base\\Path" | |
# A list of all CR2 files | |
cr2files = [] | |
# Get list of all files in given directory | |
for fname in os.listdir(basepath): |