This file contains hidden or 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
angular.module('resumeo').config(['$stateProvider','$urlRouterProvider', | |
function($stateProvider, $urlRouterProvider){ | |
$urlRouterProvider | |
.otherwise("/"); | |
$stateProvider | |
.state("default", { | |
abstract: true, |
This file contains hidden or 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 is a manifest file that'll be compiled into application.js, which will include all the files | |
// listed below. | |
// | |
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, | |
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path. | |
// | |
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the | |
// compiled file. | |
// | |
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details |
This file contains hidden or 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
@import "bootstrap"; | |
@import "angular-growl.min"; | |
@import "ng-modal"; | |
@import "webrtc"; | |
@import "style"; | |
@import "media"; | |
This file contains hidden or 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
class User < ActiveRecord::Base | |
has_secure_password validations: false | |
validates_uniqueness_of :email, allow_blank: false | |
#validates :email, :email => true | |
after_validation :ensure_token | |
before_create :set_temporary_password |
This file contains hidden or 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
Prefix Verb URI Pattern Controller#Action | |
api_users GET /api/users(.:format) api/users#index {:format=>:json} | |
POST /api/users(.:format) api/users#create {:format=>:json} | |
new_api_user GET /api/users/new(.:format) api/users#new {:format=>:json} | |
edit_api_user GET /api/users/:id/edit(.:format) api/users#edit {:format=>:json} | |
api_user GET /api/users/:id(.:format) api/users#show {:format=>:json} | |
PATCH /api/users/:id(.:format) api/users#update {:format=>:json} | |
PUT /api/users/:id(.:format) api/users#update {:format=>:json} | |
DELETE /api/users/:id(.:format) api/users#destroy {:format=>:json} | |
api_interviews GET /api/interviews(.:format) api/interviews#index {:format=>:json} |
This file contains hidden or 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
var iceServers = []; | |
iceServers[{url:'stun:stun01.sipphone.com'}, | |
{url:'stun:stun.ekiga.net'}, | |
{url:'stun:stun.fwdnet.net'}, | |
{url:'stun:stun.ideasip.com'}, | |
{url:'stun:stun.iptel.org'}, | |
{url:'stun:stun.rixtelecom.se'}, | |
{url:'stun:stun.schlund.de'}, | |
{url:'stun:stun.l.google.com:19302'}, | |
{url:'stun:stun1.l.google.com:19302'}, |
This file contains hidden or 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
var roomid = moderator.channel; | |
var SIGNALING_SERVER = 'wss://wsnodejs.nodejitsu.com:443'; | |
var websocket = new WebSocket(SIGNALING_SERVER); | |
websocket.onmessage = function (event) { | |
var data = JSON.parse(event.data); | |
if (data.isChannelPresent == false) { | |
moderator.open(); |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" /> | |
<link rel="stylesheet" type="text/css" href="css/style.css" /> | |
<script type="text/javascript" src="/socket.io/socket.io.js"></script> | |
<script type="text/javascript" src="/underscore-min.js"></script> | |
<script type="text/javascript" src="http://cdn.peerjs.com/0.3/peer.js"></script> |
This file contains hidden or 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
if (this.isFirefox) { | |
this.recordAudio.stopRecording(_.bind(function(url) { | |
this.preview.get(0).src = url; | |
// this.sendBlob(this.recordAudio.getBlob()); | |
this.recordAudio.getDataURL(_.bind(function(audioDataUrl){this.sendBlob(audioDataUrl)},this)); | |
}, this)); | |
return; | |
} |
This file contains hidden or 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
define([ | |
'core/Model', | |
'./BaseWizardStep', | |
'text!./_tmpl/RecordVideoAnswer.tmpl.html', | |
'record-rtc', | |
'jquery', | |
'underscore', | |
'backbone' |