This file contains hidden or 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 input = ` | |
LinkedIn, Applied, Initial interview, Pending interview | |
cord.co (inbound), Applied, Initial interview, Pending response | |
cord.co (inbound), Applied, Pending response | |
cord.co (inbound), Applied, Initial interview, Pending response | |
Referral, Applied, Pending response | |
Search, Applied, Pending interview | |
cord.co (inbound), Applied, Initial interview, Pending response | |
Wellfound, Applied, Stalled | |
Speculative, Applied, Stalled |
This file contains hidden or 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 string | |
def get_unique_letters(l): | |
return list(set([c for c in l if c in string.ascii_lowercase])) | |
def matches_correct(guess, correct_format): | |
for i in range(5): | |
if(correct_format[i] == '?'): |
This file contains hidden or 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 { readFileSync, writeFileSync } from "fs"; | |
/** | |
* A function which traverses and object, retrieving keys and values. | |
* @param {Object} o the object to be traversed | |
* @param {string} p the dot notation for the object, o | |
* @returns {string[]} the keys and values of the object | |
*/ | |
const traverse = (o, p = "") => { | |
return Object.entries(o) |
This file contains hidden or 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
export const zip = <P, Q>( | |
a: P[], | |
b: Q[] | |
): [P, Q][] => a.map((k, i) => [k, b[i]]); |
This file contains hidden or 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 subprocess | |
import webbrowser | |
def open_page(page_url): | |
webbrowser.open(page_url) | |
filename = input('Default file name is page-list.txt. Enter file name if different.\n') | |
# incognitoOn = input('Incognito mode on? y/N\n') | |
# incognitoOn = '-incognito' if incognitoOn == 'y' else '' |
This file contains hidden or 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 JS file that uses Firebase, moment.js, l1.io and js_cookie to track time of access and IP address | |
// Dependencies include | |
// - https://cdn.rawgit.com/moment/moment/develop/min/moment.min.js | |
// - https://www.gstatic.com/firebasejs/4.1.3/firebase.js | |
// - https://l2.io/ip.js?var=userip | |
// Insert Firebase configuration data here! | |
firebase.initializeApp(config); | |
database = firebase.database(); |