##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
| # Login to AWS registry (must have docker running) | |
| docker-login: | |
| $$(aws ecr get-login --no-include-email --region us-east-1 --profile=mycompany) | |
| # Build docker target | |
| docker-build: | |
| docker build -f Dockerfile --no-cache -t mycompany/myapp . | |
| # Tag docker image | |
| docker-tag: |
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |
##Date and Time
=TIMEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " ")) + DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Date
=DATEVALUE(SUBSTITUTE("{{OccurredAt}}"," at ", " "))
##Time
| var RecursiveChildComponent = React.createClass({ | |
| render() { | |
| return <div> | |
| {this.recursiveCloneChildren(this.props.children)} | |
| </div> | |
| }, | |
| recursiveCloneChildren(children) { | |
| return React.Children.map(children, child => { | |
| if(!_.isObject(child)) return child; | |
| var childProps = {someNew: "propToAdd"}; |
| <?php | |
| /** | |
| * Migrate existing field content from language "undefined" to entity language. | |
| */ | |
| function MODULE_update_N(&$sandbox) { | |
| // Number of entities to be processed for each step. | |
| $messages = array(); | |
| if (!isset($sandbox['fields'])) { | |
| // Initialize the array of field to process. |
| # This script facilitates obtaining the latest DB data from the production | |
| # Drupal 5 site. | |
| # The script gets an ordered dump of the D5 database, and commits it to the | |
| # [email protected]:mysite_d5.git repository master branch. | |
| # We make use of the rebuild.config file, so please make sure that your | |
| # settings are correct there! | |
| # We also assume that your drush aliases are setup correctly for | |
| # @mysite.dev and @mysite_d5.prod. Please check mysite.aliases.drushrc.example, | |
| # make sure your @mysite.dev alias is set up correctly, rename the file | |
| # to mysite.aliases.drushrc.php and move it into your ~/.drush directory. |