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
.logo{ | |
padding: 5px 10px; | |
display: inline-block; | |
background-color: #111111; | |
} | |
.sub-heading{ | |
font-size: 16px; | |
text-align: center; | |
padding: 5px 10px; |
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
.padding-5-10{ | |
padding: 5px 10px; | |
} | |
.inline-block{ | |
display: inline-block; | |
} | |
.border-red{ | |
border: 1px red solid; |
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
feature 'Viewing links' do | |
scenario 'user views links' do | |
when_a_user_visits_the_homepage | |
then_they_should_see_links | |
end | |
def when_a_user_visits_the_homepage | |
create :link, title: 'first' | |
visit root_path |
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
/* global Peer */ | |
/** | |
* Gets the local audio stream of the current caller | |
* @param callbacks - an object to set the success/error behaviour | |
* @returns {void} | |
*/ | |
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
const express = require("express"); | |
const http = require('http'); | |
const path = require('path'); | |
const app = express(); | |
const server = http.createServer(app); | |
const { ExpressPeerServer } = require('peer'); | |
const port = process.env.PORT || "8000"; | |
const peerServer = ExpressPeerServer(server, { | |
proxied: true, |
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
{ | |
"name": "audio_app", | |
"version": "1.0.0", | |
"description": "An audio app using WebRTC", | |
"main": "server.js", | |
"scripts": { | |
"start": "node server.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"keywords": [], |
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
def results | |
tags = params[:tags][:ids].reject!(&:empty?) | |
@mentors = Mentor.joins(:tags).where(tags: { id: tags }).distinct | |
end |
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
TWILIO_SID = <YOUR TWILIO SID> | |
TWILIO_TOKEN = <YOUR TWILIO TOKEN> | |
TWILIO_NUMBER = <YOUR TWILIO PHONE NUMBER> |
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
validates_presence_of :phone_number | |
scope :confirmed, -> { where(confirmed: true) } |
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
it 'creates a uuid before create' do | |
d = Developer.create!(phone_number: '0984737424') | |
expect(d.uuid).to_not be_nil | |
end |
OlderNewer