Yours
<h5>Comments:</h5>
<% @post.comments.each do |comment| %>
<div class='well span8'>
<p>
<em><%= comment.body %></em>
</p>
Yours
<h5>Comments:</h5>
<% @post.comments.each do |comment| %>
<div class='well span8'>
<p>
<em><%= comment.body %></em>
</p>
require 'pry' | |
# Constants | |
INITIAL_MARKER = " " | |
PLAYER_MARKER = "X" | |
COMPUTER_MARKER = "O" | |
WINNING_LINES = [[1, 2, 3], [4, 5, 6], [7, 8, 9]] + # rows | |
[[1, 4, 7], [2, 5, 8], [3, 6, 9]] + # columns | |
[[1, 5, 9], [3, 5, 7]] # diagonals |
require "net/http" | |
require "nokogiri" | |
unless [1, 2].include? ARGV.length | |
puts "Usage: TERM [max number of results to display]" | |
exit | |
end | |
def max_results | |
max = ARGV[1].to_i |
run.config: | |
extra_steps: | |
- "run locally" | |
- "run after app's runtime is built" | |
- "but before runtime is packaged for use" | |
- "Environment variables are not available during the build process." | |
- "No access to data services" | |
- "Code is fully writable" | |
version: 2 | |
jobs: | |
test-job: | |
machine: true | |
steps: | |
- checkout | |
- run: sudo bash -c "$(curl -fsSL https://s3.amazonaws.com/tools.nanobox.io/bootstrap/ci.sh)" | |
- run: nanobox evar add local CLOUDINARY_API_KEY=$CLOUDINARY_API_KEY |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
export default class Portal extends React.Component { | |
root = null; | |
constructor(props) { | |
super(props); | |
this.el = document.createElement('div'); | |
} |
import React from 'react'; | |
export default function Article () { | |
return ( | |
<div> | |
<div id="portal-root" /> | |
<h1>Here is a latin article</h1> | |
<p> | |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. | |
</p> |
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import Article from "./Article"; | |
import FlashMessage from "./FlashMessage"; | |
import "./styles.css"; | |
function App() { | |
return ( |
import React from "react"; | |
import Portal from "./Portal"; | |
export default function FlashMessage() { | |
return ( | |
<Portal> | |
<div class="alert alert-primary" role="alert"> | |
This is a special announcement, be sure and read it! | |
</div> |