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) |
| Unoffical ESP32 Development Board Pinout Ascii Art | |
| For more information: | |
| https://www.espressif.com/en/products/hardware/esp32/overview | |
| https://lastminuteengineers.com/esp32-arduino-ide-tutorial/#esp32-development-board-pinout | |
| This is an unofficial pinout diagram of the Adafruit Feather Huzza32 (ESP32) board: | |
| https://learn.adafruit.com/adafruit-huzzah32-esp32-feather | |
| For more information about this diagram, see: | |
| https://learn.adafruit.com/adafruit-huzzah32-esp32-feather/pinouts | |
| +-------------------+ | |
| | O | USB | O | |
| 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")) { |
| #import "AppDelegate.h" | |
| // install XcodeColors plugin https://github.com/robbiehanson/XcodeColors | |
| // install KZLinkedConsole plugin https://github.com/krzysztofzablocki/KZLinkedConsole | |
| // Include cocoalumberjack in your pods | |
| // pod 'CocoaLumberjack', '~> 1' | |
| // NOTE this will work for version 2 as well, just need to tweak it. | |
| #import <CocoaLumberjack/DDASLLogger.h> | |
| #import <CocoaLumberjack/DDTTYLogger.h> |
| // urls:https://projects.zoho.com/* | |
| // Inject so we're running in the document context | |
| function inject(newScript) { | |
| var oScript = document.createElement("script"); | |
| oScript.language = "javascript"; | |
| oScript.type = "text/javascript"; | |
| oScript.text = newScript; | |
| document.getElementsByTagName('BODY').item(0).appendChild(oScript); | |
| } |