Skip to content

Instantly share code, notes, and snippets.

@ianhawes
ianhawes / uscis-myaccount-tos.html
Created July 5, 2021 20:55
USCIS myAccount Terms of Service
<div class="terms_of_use">
<h3 class="position_to_top" tabindex="0">
Terms of Use - U.S. Citizenship and Immigration Services Online Electronic Immigration System
</h3>
<br>
<p>
This document contains the<strong> Terms of Use</strong> (“<strong>Terms</strong>”) for the U.S. Citizenship and Immigration Services (USCIS) online electronic immigration system accessed using established portals, such as myAccount access page, or its successor. You should read these<strong> Terms</strong> in their entirety and acknowledge that by creating an account or accessing or attempting to access systems and services available online through myAccount, or its successor, that you have read, understand, and agree to comply with these<strong> Terms</strong> in order to access and use any or all of these systems. The<strong> Terms</strong> apply to every individual and user, including attorneys and accredited representatives acting on behalf of
@ianhawes
ianhawes / pdf_date_to_carbon.php
Created October 19, 2020 20:00
This helper function converts the stringified PDF metadata timestamp into a readable timestamp
<?php
use Carbon\Carbon;
/**
* Converts a PDF metadata timestamp (creation_date, mod_date, etc..) into a Carbon object.
*
* @ref http://www.verypdf.com/pdfinfoeditor/pdf-date-format.htm
* @param $pdf_date
* @return Carbon
*/
<?php
namespace App\Traits;
trait ConvertsNumbers
{
public function isConvertable($key)
{
if (!isset($this->convertable)) {
return false;
+------------------------+----------------+
| Street Address | street-address |
| Apt / Suite # | address-line2 |
| City | address-level2 |
| Zip Code / Postal Code | postal-code |
| State | address-level1 |
| Country | country |
+------------------------+----------------+

Keybase proof

I hereby claim:

  • I am ianhawes on github.
  • I am ian (https://keybase.io/ian) on keybase.
  • I have a public key whose fingerprint is 53B2 4364 B401 DB87 5908 1DBE 53A9 AECD 6DD3 7523

To claim this, I am signing this object: