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
generated Mar 05, 2023 09:19:54 | |
system MacOS 13.2.1 Darwin 22.3.0 x86_64 mac | |
emacs 28.2 ~/.config/emacs/ | |
doom 3.0.0-pre PROFILE=_@0 grafted, HEAD -> master, origin/master, origin/HEAD | |
8f6b045 2023-03-01 17:32:32 -0500 ~/.config/doom/ | |
shell /usr/local/bin/fish | |
features ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE PDUMPER THREADS | |
TOOLKIT_SCROLL_BARS XIM ZLIB | |
traits gui server-running envvar-file custom-file | |
custom safe-local-variable-values |
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
require 'set' | |
def read_most_common_words | |
File.read('100_000-english.txt').split("\n") | |
end | |
def read_etymologies | |
File.read('etymwn-20130208/etymologies.tsv').split("\n").map do |line| | |
parts = line.downcase.split("\t") | |
[parts[0], parts[2]] |
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 Cocoa | |
import SwiftUI | |
import AppKit | |
@NSApplicationMain | |
class AppDelegate: NSObject, NSApplicationDelegate { | |
var window: NSWindow! | |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
int vsum(const vector<int> & v, unsigned start_index); | |
int main() { | |
vector<int> v; | |
v.push_back(3); |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
void print_vec(const vector<int> &); | |
int main() { | |
vector<int> test; | |
test.push_back(3); |
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
#include <iostream> | |
#include <vector> | |
using namespace std; | |
void remove(vector<int>&, int); | |
void print(const vector<int>&); | |
int main() { | |
vector<int> v; |
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
/* | |
This code is based on the first solution I posted for exercise 4 from Week 6. I placed a MODIFIED comment anywhere I changed the code. | |
*/ | |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
vector<string> extract_bold(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
a. 10 | |
b. 10 | |
c. 10 | |
d. 21 | |
e. infinite loop | |
f. 11 | |
g. 7 |
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
#include <iostream> | |
using namespace std; | |
string extract_bold(string); | |
int main() { | |
string test1 = "To <b>succeed</b> in <b>life</b> one must be <b>bold</b>!"; | |
cout << extract_bold(test1) << endl; |
NewerOlder