This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://localdev.vid.io/v0/facebook/configurations/has_active\?session_id\=659ea28b5e75393f7a13addb5bcd0043\&page_id\=427939937270481 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FB.api('427939937270481/tabs/app_488588774508915', function (response) { console.log(response)}) | |
undefined | |
Object {data: Array[1], paging: Object} | |
data: Array[1] | |
0: Object | |
application: Object | |
id: "488588774508915" | |
name: "Vid.io (test)" | |
namespace: "vid_dot_io_test" | |
__proto__: Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FB.api('427939937270481/tabs/app_488588774508915', function (response) { console.log(response)}) | |
undefined | |
Object {data: Array[1], paging: Object} | |
data: Array[1] | |
0: Object | |
application: Object | |
id: "488588774508915" | |
name: "Vid.io (test)" | |
namespace: "vid_dot_io_test" | |
__proto__: Object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FB.api('427939937270481/tabs/488588774508915', function (response) { console.log(response)}) | |
Object {data: Array[1], paging: Object} | |
data: Array[1] | |
0: Object | |
application: Object | |
id: "427939937270481/tabs/app_488588774508915" | |
image_url: "http://photos-a.ak.fbcdn.net/photos-ak-snc7/v85006/87/488588774508915/app_10_488588774508915_117150173.gif" | |
is_non_connection_landing_tab: false | |
is_permanent: false | |
link: "http://www.facebook.com/VidioJamie?sk=app_488588774508915" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"yt_videos": { | |
"total_result_count": 6962, | |
"max_result_count": 50, | |
"offset": 1, | |
"videos": [{ | |
"author": { | |
"name": "revision3", | |
"uri": "http://gdata.youtube.com/feeds/api/users/revision3" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
order = params[:sort].to_sym rescue :published_at | |
direction = params[:order] == "asc" ? order = order.asc : order = order.desc | |
@videos = Youtubevideo.where(query_params).paginate({ | |
:order => order, | |
:per_page => per_page, | |
:page => page | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"author": { | |
"name": "ytvidio", | |
"uri": "http://gdata.youtube.com/feeds/api/users/ytvidio" | |
}, | |
"categories": [{ | |
"term": "People", | |
"label": "People & Blogs" | |
}], | |
"description": "When life gives you Clemens, make Clemenade..", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.resolve = function(arg) { | |
var args = arguments, | |
sliceDeferred = [].slice, | |
i = 0, | |
length = args.length, | |
count = length, | |
rejected, | |
deferred = length <= 1 && arg && jQuery.isFunction(arg.promise) ? arg : jQuery.Deferred(); | |
function resolveFunction(i, reject) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm ERR! Error: Not found: argparse@'>=0.1.8 <0.2.0' | |
npm ERR! Valid install targets: | |
npm ERR! ["latest"] | |
npm ERR! at installTargetsError (/usr/local/lib/node_modules/npm/lib/cache.js:410:10) | |
npm ERR! at /usr/local/lib/node_modules/npm/lib/cache.js:403:17 | |
npm ERR! at saved (/usr/local/lib/node_modules/npm/lib/utils/npm-registry-client/get.js:136:7) | |
npm ERR! at cb (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:36:9) | |
npm ERR! Report this *entire* log at: | |
npm ERR! <http://github.com/isaacs/npm/issues> | |
npm ERR! or email it to: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.model.save() | |
.always(function () { | |
$button.spinContents(false); | |
}) | |
.done(_.bind(function (response) { // TODO: fix error handling when we have proper codes | |
if (response.error) { | |
dispatcher.trigger('command:ShowAlert', { | |
icon: 'exclamation-sign', | |
message: 'Error ' + (this.invite ? 'inviting' : 'updating') + 'user · ' + response.error | |
}); |