which CSS selectors to use? this shows all the (non-dynamic) options generated from your project's tailwind.config.js
.
rogden/tailwind-config-viewer is the best. run from the command line:
npx tailwind-config-viewer -o
which CSS selectors to use? this shows all the (non-dynamic) options generated from your project's tailwind.config.js
.
rogden/tailwind-config-viewer is the best. run from the command line:
npx tailwind-config-viewer -o
initialize
: once, when the controller is first instantiatedconnect
: anytime the controller is connected to the DOMimport { EditorState, Modifier, Entity, SelectionState } from 'draft-js' | |
import linkifyIt from 'linkify-it' | |
import tlds from 'tlds' | |
const linkify = linkifyIt() | |
linkify.tlds(tlds) | |
const linkifyEditorState = (editorState) => { | |
const contentState = editorState.getCurrentContent() |
import { EditorState, Modifier, Entity, SelectionState } from 'draft-js' | |
import linkifyIt from 'linkify-it' | |
import tlds from 'tlds' | |
const linkify = linkifyIt() | |
linkify.tlds(tlds) | |
const linkifyEditorState = (editorState) => { | |
const contentState = editorState.getCurrentContent() |
CREATE OR REPLACE FUNCTION public.json_append(data json, insert_data json) | |
RETURNS json | |
IMMUTABLE | |
LANGUAGE sql | |
AS $$ | |
SELECT ('{'||string_agg(to_json(key)||':'||value, ',')||'}')::json | |
FROM ( | |
SELECT * FROM json_each(data) | |
UNION ALL | |
SELECT * FROM json_each(insert_data) |
http://guides.rubyonrails.org/migrations.html
namespace :cowboy do | |
desc 'Deploy without SCM' | |
task :default do | |
deploy_stage = fetch(:stage, 'none') | |
set :repository, "." | |
set :deploy_via, :copy | |
set :scm, :none | |
set :stage, deploy_stage | |
set :cowboy_deploy, true | |
set :copy_exclude, [".git/*", ".svn/*", "log/*", "vendor/bundle/*"] |