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 | require "test_helper" | |
| class ApplicationSystemTestCase < ActionDispatch::SystemTestCase | |
| driven_by :selenium, using: :headless_chrome, screen_size: [ 1400, 1400 ] | |
| def login_as(user) | |
| visit new_session_url | |
| fill_in "email_address", with: user.email_address | |
| fill_in "password", with: "password" | |
| click_on "Sign in" |
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 DOM| 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() |
| 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/*"] |