Skip to content

Instantly share code, notes, and snippets.

View etan-nitram's full-sized avatar

Nate Martin etan-nitram

View GitHub Profile
@loonies
loonies / 1_phpunit-api.md
Last active August 30, 2025 20:18
PHPUnit Cheat Sheet

PHPUnit API reference

  • version 3.6

TODO

Check those constraints:

$this->anything()
@etan-nitram
etan-nitram / Google API: Generate Access Token
Last active February 12, 2016 17:37
Generate a Google API access token for use with any google api.
<?php namespace Libraries\Google;
/**
* For authenticating with a google API.
*
* IMPORTANT: Be sure your computer/server clock is set to the correct time.
* You will not be able to authenticate if your clock is off by a few seconds.
*
* Install dependencies;
* composer require google/apiclient:1.0.*@beta
@aparrish
aparrish / understanding-word-vectors.ipynb
Last active December 18, 2025 05:55
Understanding word vectors: A tutorial for "Reading and Writing Electronic Text," a class I teach at ITP. (Python 2.7) Code examples released under CC0 https://creativecommons.org/choose/zero/, other text released under CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.