Analysis and implementation plan for splitting the headroom monorepo into separate repositories for easier code management, code review, and PR workflows.
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
| #!/Users/prsrivastav/miniconda3/bin/python3.7 | |
| import csv | |
| from dataclasses import dataclass | |
| from datetime import datetime | |
| from typing import List | |
| DATE_FORMAT = "%d-%m-%Y" | |
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
| ❯ npm run test | |
| > react-tag-input@4.8.2 test /Users/prsrivastav/Code/react-tags | |
| > jest --notify --coverage | |
| FAIL test/suggestions.test.js | |
| ● Test suite failed to run | |
| TypeError: Cannot read property 'ReactCurrentOwner' of undefined |
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
| /** | |
| * npm install superagent cheerio | |
| * node index.js <your_case_number> | |
| */ | |
| const request = require('superagent'); | |
| const cheerio = require('cheerio'); | |
| const URL = "https://egov.uscis.gov/casestatus/mycasestatus.do"; | |
| const receipt = process.argv[2]; |
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
| #!/bin/sh | |
| command="${*}" | |
| printf "Initialized REPL for [%s]\n" "$command" | |
| printf "%s> " "$command" | |
| read -r input | |
| while [ "$input" != "" ]; | |
| do | |
| eval "$command $input" | |
| printf "\n%s> " "$command" |
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
| let (|>) v f = f v;; | |
| let comp f g = (fun x -> f (g x));; | |
| let read_ints () : int list = | |
| let rec aux nums = | |
| try let i = read_int () in aux (i :: nums) | |
| with End_of_file -> nums | |
| in | |
| List.rev (aux []) | |
| ;; |
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
| // Since RequireBin doesn't (yet) support JSX, you'll have to write JS in order | |
| // for this to work. Quick hack: Head to http://babeljs.io/repl, write JSX, copy // paste the compiled JS here. | |
| const React = require('react'); | |
| const ReactDOM = require('react-dom'); | |
| const ReactTags = require('react-tag-input').WithContext; | |
| const _ = require('underscore'); | |
| const countries = require('country-list')(); | |
| const suggestions = _.pluck(countries.getData(), 'name'); |
made with esnextbin
NewerOlder