- Generate new rails app using
--webpackflag
rails new myApp --webpack=vueNote:
- You can use
--webpack=angularfor angular application and--webpack=reactfor react.
| /** | |
| * This php script queries a form at http://www.lipsum.com/ to get a | |
| * hashed version of a provided or default password | |
| * | |
| * This script is run using the command 'lipsum p 4' where p stands for | |
| * paragraph and 4 is the number of paragraphs. Other option is w for words. | |
| * | |
| */ | |
| // Query in the form of two parameters 'type' and number of 'type' |
| version: '2' | |
| services: | |
| db: | |
| container_name: database | |
| image: mariadb # Pull mysql image from Docker Hub | |
| ports: # Set up ports exposed for other containers to connect to | |
| - "3306:3306" | |
| volumes: | |
| - ./dep/mysql:/docker-entrypoint-initdb.d |
| #!/usr/bin/env bash | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' | |
| VP_CYAN='\033[01;36m' | |
| VP_WHITE='\033[01;37m' |
| (?:(?:\+?([1-9]|[0-9][0-9]|[0-9][0-9][0-9])\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([0-9][1-9]|[0-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))? | |
| /a tweaked version of the second regex in the question here to allow for all country codes and leading zeros in area codes: https://stackoverflow.com/questions/3868753/find-phone-numbers-in-python-script |
| module.exports = { | |
| 'extends': 'google', | |
| 'parserOptions': { | |
| 'ecmaVersion': 6, | |
| }, | |
| 'rules': { | |
| // https://eslint.org/docs/rules/array-bracket-spacing | |
| 'array-bracket-spacing': ['error', 'never'], |
| <?php | |
| /** | |
| * If the aria-label argument has been specified in a wp_dropdown_categories() call, | |
| * output the aria-label option in the <select> | |
| * | |
| * @since 1.0.0 | |
| * | |
| * @param string $output HTML Output | |
| * @param array $arguments wp_dropdown_category() arguments | |
| * @return string Modified HTML Output |
| #!/usr/bin/env bash | |
| SCRIPTS="bin" | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' |
| <script type='text/javascript'> | |
| /* <![CDATA[ */ | |
| var override_demo = {"message":"This message is a test","number":"10"}; | |
| var override_demo = {"message":"This is a completely different message.","number":"25"}; | |
| /* ]]> */ | |
| </script> | |
| <script type='text/javascript' src='http://example.com/wp-includes/js/jquery/jquery.js?ver=1.12.4'></script> |
initialize: once, when the controller is first instantiatedconnect: anytime the controller is connected to the DOM