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
/** | |
* Copyright 2020 Robert M. Vunabandi. All Rights Reserved. | |
*/ | |
const fs = require("fs") | |
const path = require("path") | |
const nodeExternals = require("webpack-node-externals"); | |
const webpack = require("webpack") |
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
U.S. v. A&L Mayer Associates, Inc. | |
U.S. v. A&L Mayer Associates, Inc.; A&L Mayer, Inc.; and Fibras Saltillo, S.A. de C.V. | |
U.S. v. A-1 Auto Glass, Inc. | |
U.S. v. The AAV Companies; ARA Services Inc., and Western Vending Machine Company | |
U.S. v. ABB Middle East & Africa Participations AG | |
U.S. v. Abitibi-Consolidated Inc. and Bowater Inc. | |
U.S. v. Thomas J. Abraham | |
U.S. v. Danny Abrishamian, a/k/a "Kamran Abrishamian" | |
U.S. v. Ace Schiffli Emboidery Co., Inc. | |
U.S. v. Acme Meat Co; Bristol foods, Inc, d/b/a Gold Pak Meat Co; Delta Meat Packing Co; Federal Meat Co; Gem Packing Co; Globe Packing Co; Great Western Packing Co; Meat Packers, Inc; O.K. Meat Packing Co; Quality Meat Packing Co; Serv-U Meat Packing Co; Shamrock Meats, Inc; Union Packing Co; and Ward Foods, Inc. |
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 typing import Dict, Generic, List, Tuple, TypeVar | |
T = TypeVar("T") | |
S = TypeVar("T") | |
class Pair(Generic[T, S]): | |
pass | |
# filenames. Note that for the first 3 filenames, we named them this way. | |
# so the name mapping must remain the same or you'd need to change the name |
This file has been truncated, but you can view the full file.
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 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
#2 | |
#3 | |
5 | |
7 | |
11 | |
13 | |
17 | |
19 | |
23 | |
29 |
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 is used to solve problem 1-2 of the problem set. | |
# ------------------------------------- # | |
# 6.009 LAB 6 Trie Implementation START # | |
# ------------------------------------- # | |
class Trie: | |
ALLOWED_TYPES = [str, tuple] | |
def __init__(self, type_=None): | |
self.value = None |
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
[ | |
{ | |
"answer": "Paul Kagame", | |
"question": "Who is the President of Rwanda", | |
"choices": [ | |
"Paul Kagame", | |
"Hastings Banda", | |
"Helen Johnson Sirleaf", | |
"Gregoire Kayibanda" | |
] |
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 list of game ids that we have already scraped. | |
59881742 | |
59881743 | |
59881744 | |
59881745 | |
59881746 | |
59881747 | |
59881748 | |
59881749 | |
59881750 |
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
const INFO = { | |
APP_ID: "MY-APP-ID-HERE", | |
isMessenger: null, | |
thread_type: null, | |
tid: null, | |
psid: null, | |
}; | |
/** | |
* Thread types returned when getting the context |
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
int most_significant_bit_position(size_t value) { | |
// int count = 0; | |
// while (value != 0) { | |
// value >>= 1; | |
// count++; | |
// } | |
// return count; | |
assert(value > 0); | |
value = (uint64_t) value; | |
int count = 0; |
NewerOlder