[code language=”bash”] yarn start Starts the development server. yarn build Bundles the app into static files…
[code language=”bash”] npx create-react-app my-app cd my-app npm start [/code]
Pundit is Minimal authorization through OO design and pure Ruby classes. [code language=”ruby”] gem pundit[/code] Include Pundit…
Pundit is Minimal authorization through OO design and pure Ruby classes. [code language=”ruby”] gem pundit[/code] Include Pundit…
[code language=”html”] !DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="https://unpkg.com/[email protected]/dist/react.min.js"></script> <script src="https://unpkg.com/[email protected]/dist/react-dom.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.24.0/babel.js"></script> </head> <body>…
Add a babel script within the body of the HTML file
[code language=”ruby”] hash.all? { |k, v| v.present? } [/code]
[code language=”ruby”] validates_format_of :image, :with => %r{.(png|jpg|jpeg)$}i, :message => "Please use image " [/code]
[code language=”language="ruby”] /Applications/Postgres.app/Contents/Versions/9.6/bin/pg_dump -Fc -v -h 100.12.12.110 -p 5432 -U db_admin -d mysite_prod_v1 > mysite_oct.dump [/code]
[code language=”ruby”] /Applications/Postgres.app/Contents/Versions/9.6/bin/pg_restore –verbose –clean –no-acl –no-owner -h localhost -U postgres -d my_db ~/Downloads/staging.dump [/code]
Recent Comments