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 React, { useState } from 'react'; | |
import { useRouter } from 'next/router'; | |
const FavoriteRecipesPage = () => { | |
const { router } = useRouter(); | |
const [page, setPage] = useState(router.query.page); | |
const [pageSize, setPageSize] = useState(router.query.pageSize); |
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
{% extends "layout.html" %} | |
{% block title %} | |
Add_cash | |
{% endblock %} | |
{% block main %} | |
<form action="{{ url_for('add_cash') }}" method="post"> | |
<fieldset> | |
<div class="form-group"> |
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 nltk | |
class Analyzer(): | |
"""Implements sentiment analysis.""" | |
def __init__(self, positives, negatives): | |
"""Initialize Analyzer.""" | |
# load list of positive words in memory | |
self.positives = set() |
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 nltk | |
class Analyzer(): | |
"""Implements sentiment analysis.""" | |
def __init__(self, positives, negatives): | |
"""Initialize Analyzer.""" | |
# load list of positive words in memory | |
self.positives = set() |
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
#!/usr/bin/env python3 | |
# a program that categorizes a word as positive or negative | |
import os | |
import sys | |
from analyzer import Analyzer | |
from termcolor import colored |
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
# compiler to use | |
CC = clang | |
# flags to pass compiler | |
CFLAGS = -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror | |
# name for executable | |
EXE = speller | |
# space-separated list of header files |
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
# compiler to use | |
CC = clang | |
# flags to pass compiler | |
CFLAGS = -ggdb3 -O0 -Qunused-arguments -std=c11 -Wall -Werror | |
# name for executable | |
EXE = speller | |
# space-separated list of header files |
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
fifteen: fifteen.c | |
clang -ggdb3 -O0 -std=c11 -Wall -Werror -o fifteen fifteen.c -lcs50 -lm | |
clean: | |
rm -f *.o a.out core fifteen log.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
# | |
# Makefile | |
# CS50 | |
# | |
all: find generate | |
find: find.c helpers.c helpers.h | |
clang -ggdb3 -O0 -std=c11 -Wall -Werror -o find find.c helpers.c -lcs50 -lm |
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
# | |
# Makefile | |
# CS50 | |
# | |
all: find generate | |
find: find.c helpers.c helpers.h | |
clang -ggdb3 -O0 -std=c11 -Wall -Werror -o find find.c helpers.c -lcs50 -lm |
NewerOlder