download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| # Manual opt parsing example | |
| # | |
| # Features: | |
| # - supports short and long flags (ie: -v|--verbose) | |
| # - supports short and long key/value options (ie: -f <file> | --filename <file>) | |
| # - supports short and long key/value options with equals assignment (ie: -f=<file> | --filename=<file>) | |
| # - does NOT support short option chaining (ie: -vh) | |
| # - everything after -- is positional even if it looks like an option (ie: -f) | |
| # - once we hit an arg that isn't an option flag, everything after that is considered positional | |
| function optparsing_demo() { |
| # Pass the env-vars to MYCOMMAND | |
| eval $(egrep -v '^#' .env | xargs) MYCOMMAND | |
| # … or ... | |
| # Export the vars in .env into your shell: | |
| export $(egrep -v '^#' .env | xargs) |
| import React, { Component } from 'react'; | |
| import { | |
| CardElement, | |
| injectStripe, | |
| StripeProvider, | |
| CardNumberElement, | |
| CardExpiryElement, | |
| CardCVCElement, | |
| Elements | |
| } from 'react-stripe-elements'; |
| import requests | |
| class HoverException(Exception): | |
| pass | |
| class HoverAPI(object): | |
| def __init__(self, username, password): | |
| params = {"username": username, "password": password} | |
| r = requests.post("https://www.hover.com/api/login", params=params) |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
| /** | |
| * Will return version from properties file and replace -SNAPSHOT by GIT commit hash | |
| * to recognize origin commit for the every build. | |
| */ | |
| project.ext.evalVersionName = { | |
| def ideBuild = project.properties['android.injected.invoked.from.ide'] | |
| if (ideBuild) { | |
| logger.info("IDE build"); | |
| return "dev" | |
| } else if (project.VERSION.toUpperCase().contains("SNAPSHOT")) { |