I hereby claim:
- I am illbzo1 on github.
- I am tylerlmoore32 (https://keybase.io/tylerlmoore32) on keybase.
- I have a public key ASDhsIgCVHKd_PwBlIPJqbDTgv1L65n3Z2eQ67UbFXB6lAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# creates an empty array for the user's inventory | |
@inventory = [] | |
# this is the command prompt method | |
def prompt() | |
print "Enter command > " | |
end | |
# shows a list of viable commands when a user enters "help" at the command prompt | |
def help() |
files = Dir.glob("*.txt") | |
adjective_list1 = IO.readlines("adj1.txt") | |
adjective_list2 = IO.readlines("adj2.txt") | |
noun_list = IO.readlines("noun.txt") | |
prefix_list = IO.readlines("prefix.txt") | |
suffix_list = IO.readlines("suffix.txt") | |
rand1 = rand(adjective_list1.length) | |
rand2 = rand(adjective_list2.length) |
var https = require("https"), | |
fs = require("fs"); | |
var payload = JSON.stringify({ | |
user_credentials: "YOUR_API_KEY_HERE", | |
doc: { | |
document_content: "<!DOCTYPE html><html><head><title>Javascript PDF Sample</title></head><body>Hello from Javascript!</body></html>", | |
name: "test.pdf", | |
document_type: "pdf", | |
test: true |
#This simple Curl example will create a sample test Excel file with the authentication information as part of the POST data. All you have to do is copy this code, plug in your API key, and paste it into a command line. | |
curl -H "Content-Type:application/json" -d'{"user_credentials":"YOUR_API_KEY_HERE", "doc":{"name":"docraptor_sample.xls", "document_type":"xls", "test":"true", "document_content":"<table><tr><td>Example!</td></tr></table>"}}' http://docraptor.com/docs > docraptor_sample.xls |
require 'rubygems' | |
require 'doc_raptor' | |
TEN_SECONDS = 10 | |
FIVE_MINUTES = 300 | |
DocRaptor.api_key "YOUR_API_KEY_HERE" | |
xls_html = "<table name='My First Sheet'><tr><td>Cell 1</td><td>Cell 2</td></tr></table>" |
using System; | |
using System.IO; | |
using System.Text; | |
using System.Net; | |
using System.Web; | |
namespace DocRaptorConsoleExample { | |
class DocRaptor { | |
private const string PostFormat = "doc[{0}]={1}&doc[name]={2}&doc[document_type]={3}&doc[test]={4}"; | |
private const string ApiKey = @"YOUR API KEY HERE"; |
require 'sinatra' | |
not_found do | |
halt 404, 'Shit\'s busted.' | |
end | |
get '/input' do | |
@input = params[:input] | |
case params[:input] | |
when "go north" |
# trying to set a method so I can use @input in other methods | |
class Input | |
def initialize(input) | |
@input = params[:input] | |
end | |
end | |
# collecting the input with a form here | |
get '/input' do | |
@input = params[:input] |
<form method="get" action="/input"> | |
<input type="text" name="input" /> | |
<input type="submit" value="Submit" /> | |
</form> |