<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>
-
URL
<The URL Structure (path only, no root url)>
-
Method:
require 'rest_client' | |
require 'json' | |
a = `sox -d --norm -t .flac - silence -l 1 0 1% 1 6.0 1% rate 16k` | |
#a = `arecord -q -d 3 -c 1 -f S16_LE -r 22050 -t wav | flac - -f --totally-silent -o-` | |
r = RestClient.post 'https://www.google.com/speech-api/v1/recognize?lang=en-US', a, | |
:content_type => 'audio/x-flac; rate=16000' | |
if j = JSON.parse(r) | |
(p j; `espeak 'you said: #{j['hypotheses'].first['utterance']}'`) | |
end |
#BundleBackend REST API v1.0 | |
## Categories | |
> **GET** danezo.com/categories | |
**Required parameters:** | |
**Optional parameters:** |
Live markdown example: https://gist.github.com/4399630
#BundleBackend REST API v1.0
GET danezo.com/apps
#!/usr/bin/env ruby | |
# | |
# Proof-of-Concept exploit for Rails Remote Code Execution (CVE-2013-0156) | |
# | |
# ## Advisory | |
# | |
# https://groups.google.com/forum/#!topic/rubyonrails-security/61bkgvnSGTQ/discussion | |
# | |
# ## Caveats | |
# |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
app.directive('scrollSpy', function ($window) { | |
return { | |
restrict: 'A', | |
controller: function ($scope) { | |
$scope.spies = []; | |
this.addSpy = function (spyObj) { | |
$scope.spies.push(spyObj); | |
}; | |
}, | |
link: function (scope, elem, attrs) { |
defmodule Mailgun do | |
@doc """ | |
Sends a basic message to an address. Expects a mailgun domain environment | |
variable (MAILGUN_DOMIAN) and a mailgun api key environment variable | |
(MAILGUN_API_KEY). | |
""" | |
@spec mail(String.t) :: String.t | |
def mail(toAddress) do | |
url = "https://api.mailgun.net/v3/#{System.get_env("MAILGUN_DOMAIN")}/messages" | |
headers = ["User-Agent": "Elixir", |
0471dffb1cf706c44b6bfcb85b14e7e7b6f0a0b2c934a690ffd5c5da25d3127b8ad8bc0ab44444bd6f0ede37c600e3de0fec63fff5878774c17f1b835b8f17aadc;halkuon |