Skip to content

Instantly share code, notes, and snippets.

@zackurben
zackurben / ffmpeg.md
Created November 8, 2017 04:34 — forked from neilrenicker/ffmpeg.md
How to convert an m4a file to an mp3 using ffmpeg

Convert an m4a file to an mp3 using ffmpeg

  • Install ffmpeg using homebrew:
brew install ffmpeg
  • convert the file:
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
method: 'PUT',
headers: {
'x-jwt-token': token
},
form: {
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
headers: {
'x-jwt-token': token
}
}
function (error, response, body) {
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission?limit=20',
method: 'GET',
headers: {
'x-jwt-token': token,
'Range-Unit': 'items',
'Range': '0-20'
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}/submission/{submissionId}',
method: 'DELETE',
headers: {
'x-jwt-token': token
}
}
var request = require('request');
request(
{
url: 'https://{projectname}.form.io/api/{resourcename}',
method: 'POST',
headers: {
'x-jwt-token': token
},
form: {
var request = require('request');
request.post(
'https://formio.form.io/api/user/login/submission',
{
data: {
'user.email': email,
'user.password': password
}
},
@zackurben
zackurben / gist:51ee9b92c26ad8a7c290
Last active September 18, 2015 15:21 — forked from randallknutson/gist:bbe8dd3099234a73c716
User Authentication Example
var request = require('request');
request.post(
'https://{projectname}.form.io/api/{userresource}/{loginform}/submission',
{
data: {
'{userresource}.{emailfield}': email,
'{userresource}.{passwordfield}': password
}
},
The service is targeted at site designers; When you make a clients website, you can tag fields you want
them to be able to edit (using data attributes) and make the corresponding elements on our service.
When a site is loaded, it uses our api to display the most recent data. So the designer needs to
include our generated js as a script, mark the fields the user can edit, and make the models on our
site.
A client can login (using creds made for their website) and update whatever fields have been mapped by
the designer, so the designer doesnt get constantly asked to update/add content after the site has been
completed.