Skip to content

Instantly share code, notes, and snippets.

@rtravitz
rtravitz / wiki.sh
Created July 17, 2023 01:55
Query wikipedia pages
#!/usr/bin/env bash
# Usage
# wiki.sh <page to search> [subsection]
#
# Examples
# ./wiki.sh walrus - shows a sentence and sections of a page about Walruses.
# ./wiki.sh walrus anatomy - shows a sentence from that section and its subsections.
# ./wiki.sh walrus 3.1 - shows the subsection for "Tusks and dentition." It could also
# be access like ./wiki.sh walrus 'tusks and dentition'.
@rtravitz
rtravitz / claims-attributes.json
Created November 11, 2020 23:37
Claims Attributes API example OAS
{"openapi":"3.0.2","info":{"title":"Claims Attributes API","description":"\nThe Claims Attributes API...\n","version":"1.0.0"},"paths":{"/":{"post":{"summary":"Claims Attributes Api","description":"Make a prediction\n\nThis takes a user's array of claims_text inputs and outputs\na classification code for each.","operationId":"claims_attributes_API__post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClaimInput"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Prediction"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ClaimInput":{"title":"ClaimInput","type":"object","properties":{"claim_text":{"title":"Claim Text","type":"array","items":{"type":"string"},"description":"\n An array of strings representing claims text. These will be classified\n

Keybase proof

I hereby claim:

  • I am rtravitz on github.
  • I am rtravitz (https://keybase.io/rtravitz) on keybase.
  • I have a public key ASBKHDcjXYEQlvm8ybpl8t8EmSf1gI9grTwYnq7nocQgRQo

To claim this, I am signing this object:

@rtravitz
rtravitz / vim-spike.md
Created January 26, 2017 21:56
An outline for a Friday Spike on Vim at The Turing School of Software and Design!

#Intro

History of Vim

  • Vim is a powerful text editor build to enable efficient text editing. It is an improved version of its predecessor, vi, which was distributed with most Unix systems (aka your Mac). Vim stands for "Vi Improved".
  • Vim was developed by a guy named Bram Moolenaar who sought to improve vi's functionality.
  • It now runs on more than a dozen operating systems, including Windows, Mac, and Linux.
  • It is actively developed and has a large base of contributors.

Why use Vim

  • It's available everywhere. If you ever need to edit a file on a remote server, Vim can be your friend.

Instructions

  • Fork this gist
  • Do 5 JavaScript exercisms
  • Compare your completed exercises to five answers that other folks got, writing a comment of what you saw when comparing the answer
  • Fill in the template below with your work

My Submissions

Hello World

Module 1 Week 1 Diagnostic

This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.

For these questions, write a short snippet of code that meets the requirement. Fill in your answers on a second sheet of paper or in your notebook. In cases where the question mentions a "given" data value, use the variable given to refer to it (instead of re-writing the information).

@rtravitz
rtravitz / prework.md
Last active August 15, 2016 03:27 — forked from mbburch/prework.md
Ryan's Turing pre-work Gist

Turing School Prework — Ryan Travitz

Task A- Practice Typing:

  • screenshots of scores will be posted in comments

Task B- Algorithmic Thinking & Logic:

  • screenshots of completed sections will be posted in comments

Task C- Create your Gist: