Run the following when Spree has made updates: bundle exec rake railties:install:migrations
CSS3 introduces a few new units, including the rem unit, which stands for "root em". If this hasn't put you to sleep yet, then let's look at how rem works.
The em unit is relative to the font-size of the parent, which causes the compounding issue. The rem unit is relative to the root—or the html—element. That means that we can define a single font size on the html element and define all rem units to be a percentage of that.
html { font-size: 62.5%; }
body { font-size: 1.4rem; } /* =14px */
h1 { font-size: 2.4rem; } /* =24px */
I'm defining a base font-size of 62.5% to have the convenience of sizing rems in a way that is similar to using px.
This document is meant to server as a jumping off point and reference guide for anyone that is new to programming in Rails. This document will have some very basic concepts and may be useful for anyone needing a quick jog of the memory when developing apps on Rails. This document is not a complete review of Rails and everything the framework offers.
NOTE: If you are using this document you should have a basic understanding of how to use terminal/commandline, irb and how to install Ruby Gems and Rails.
This document is meant to server as a jumping off point and reference guide for anyone that is new to programming in Ruby. This document will have some very basic concepts and may be useful for anyone needing a quick jog of the memory when first branching out(Git pun intended) into the brave new world of developing with Ruby. This document is not a complete review of Ruby and everything the language offers.
NOTE: If you are using this document you should have a rudimentary understanding of how to use terminal/commandline, irb and how to install Ruby Gems.
In the following example we declare an age variable and then print it out to the screen in two different ways. The first way uses string interpolation, the second uses string concatenation.
age = 40
<?php | |
// PHP Helper Library was dinstalled using Composer. | |
// Required if your envrionment does not handle autoloading | |
require __DIR__ . '/vendor/autoload.php'; | |
// Use the REST API Client to make requests to the Twilio REST API | |
use Twilio\Rest\Client; | |
// Your Account SID and Auth Token from twilio.com/console |
<?php | |
$sid = $_REQUEST['MessageSid']; | |
$status = $_REQUEST['MessageStatus']; | |
$logfile = "status_callback_log.txt"; | |
$log = fopen($logfile, 'a+'); | |
fwrite($log, date('Y-m-d H:i:s')." SID = " . $sid . "\n"); | |
fwrite($log, date('Y-m-d H:i:s')." Status = " . $status . "\n"); | |
fwrite($log, "\n"); | |
fclose($log); |
<?php | |
use Twilio\Twiml; | |
class TwimlWrap | |
{ | |
/** @var TwilioTwiml */ | |
protected $twiml; | |
public function __construct() |
import { Actions, Manager, TaskHelper } from '@twilio/flex-ui'; | |
import { getCustomerParticipant, getMyParticipant } from '../helpers'; | |
const manager = Manager.getInstance(); | |
const startCallRecording = async (callSid, callbackParameters) => { | |
console.debug('Creating recording for call SID:', callSid); | |
const fetchUrl = `https://${process.env.REACT_APP_SERVERLESS_DOMAIN}/recording/create`; |
<?php | |
// Require the bundled autoload file - the path may need to change | |
// based on where you downloaded and unzipped the SDK | |
require __DIR__ . '/twilio-php-master/Twilio/autoload.php'; | |
// Use Twilio\TwiML to build TwiML instructions through PHP | |
use Twilio\Twiml; | |
// Instantiate a TwiML object. | |
$response = new Twiml(); |