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
@MyComponent = | |
props: ['myProp'] | |
template: '<div>A custom component with {{myProp}}</div>' |
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
module App | |
class Twilio | |
ACCOUNT_SID = 'XXXXXXXXXXXXXXXXX'.freeze | |
API_KEY_SID = 'XXXXXXXXXXXXXXXXX'.freeze | |
API_SECRET = 'XXXXXXXXXXXXXXXXX'.freeze | |
VIDEO_SID = 'XXXXXXXXXXXXXXXXX'.freeze | |
def generate_token(user_id) | |
# Create an Access Token for Video usage | |
token = ::Twilio::Util::AccessToken.new ACCOUNT_SID, API_KEY_SID, API_SECRET, 3600, user_id |
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
new Vue({ | |
el: '#my-vue-app', | |
components: { 'vue-slider': VueSlider } | |
}); |