| // turbolinks addthis | |
| var initAdthis; | |
| initAdthis = function(){ | |
| // Remove all global properties set by addthis, otherwise it won't reinitialize | |
| for (var i in window) { | |
| if (/^addthis/.test(i) || /^_at/.test(i)) { | |
| delete window[i]; | |
| } | |
| } |
All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.
To grab the new archive, simply run:
Phoenix 1.4 ships with exciting new features, most notably with HTTP2 support, improved development experience with faster compile times, new error pages, and local SSL certificate generation. Additionally, our channel layer internals receiveced an overhaul, provided better structure and extensibility. We also shipped a new and improved Presence javascript API, as well as Elixir formatter integration for our routing and test DSLs.
This release requires few user-facing changes and should be a fast upgrade for those on Phoenix 1.3.x.
The mix phx.new archive can now be installed via hex, for a simpler, versioned installation experience.
To grab the new archive, simply run:
| <template> | |
| <div> | |
| <vue-editor v-model="content" ref="editor" :editor-options="toolbarOptions" @text-change="updateValue" useCustomImageHandler @imageAdded="uploadImage"></vue-editor> | |
| </div> | |
| </template> | |
| <script> | |
| import Vue from "vue"; | |
| import axios from 'axios' | |
| let VueEditor, Quill; |
| require 'pathname' | |
| require 'open3' | |
| require 'mini_magick' | |
| SRC_DIR = '/path/to/src/dir/'.freeze | |
| TMP_DIR = '/path/to/tmp/dir/'.freeze | |
| class TextReader | |
| def initialize(input_path, output_path) | |
| @input_path = input_path |
| require 'pathname' | |
| require 'open3' | |
| require 'mini_magick' | |
| SRC_DIR = '/path/to/src/dir/'.freeze | |
| TMP_DIR = '/path/to/tmp/dir/'.freeze | |
| class TextReader | |
| def initialize(input_path, output_path) | |
| @input_path = input_path |
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the\commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)