Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am amagnus on github.
  • I am adrien (https://keybase.io/adrien) on keybase.
  • I have a public key ASBkfY_G2hXOeEUfQTmIcNhGFm0soBDMO3jHx6MhrLT5xwo

To claim this, I am signing this object:

@amagnus
amagnus / SentenceParser
Created October 7, 2012 04:49
Parse Word documents into sentences stored on Parse.
#!/bin/bash
catdoc $1 > export.txt
PTEXT=`cat export.txt`
curl -X POST \
-H "X-Parse-Application-Id: APP_ID" \
-H "X-Parse-REST-API-Key: APP_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"'"$PTEXT"'"}' \
https://api.parse.com/1/classes/Sentence