mvn cobertura:cobertura
mvn site<reporting>
<plugins>| require 'net/http' | |
| require 'colorize' | |
| # find all available three-letter .io domains | |
| alph = ('a'..'z') | |
| # generate all three-character strings | |
| threes = alph.map { |a| alph.map { |b| alph.map { |c| "#{a}#{b}#{c}" } } }.flatten | |
| def io_available?(tld) | |
| url = URI.parse("http://www.nic.io/cgi-bin/whois?query=#{tld}.io") |
| curl -s http://server/path/script.sh | bash -s arg1 arg2 | |
| https://raw.githubusercontent.com/c0debrain/jooby-bootstrap/master/jooby |
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
| ArgumentCaptor<BarcodeImportHistory> captor = ArgumentCaptor.forClass(BarcodeImportHistory.class); | |
| Mockito.verify(barcodeImportHistoryBD).create(captor.capture()); | |
| BarcodeImportHistory history = captor.getValue(); |
| from flask import Flask, request, send_from_directory | |
| # set the project root directory as the static folder, you can set others. | |
| app = Flask(__name__, static_url_path='') | |
| @app.route('/<path:path>') | |
| def send_js(path): | |
| return send_from_directory('', path) | |
| @app.route('/') | |
| def index(): |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6 | |
| ubuntu 14.04: | |
| echo "deb [ arch=amd64 ] http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list | |
| ubuntu 16.04: | |
| echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list | |
| sudo apt-get update | |
| ***Not in mongo's directions: but rather something i got from reading above comments: | |
| sudo apt-get install mongodb | |
| ***At this point the version installed by mongo is an older version... for me ie. | |
| sudo apt-get install -y mongodb-org |
| # Build as | |
| # docker build -t base-python . | |
| # Push as | |
| # docker tag base-python docker.viatorsystems.com:5000/base-python | |
| # docker push docker.viatorsystems.com:5000/base-python | |
| FROM debian:latest | |
| RUN echo "deb http://mirror.cse.unsw.edu.au/debian-security jessie/updates main" >> /etc/apt/sources.list | |
| RUN apt-get update |
| #install | |
| npm install -g ember-cli@2.18 | |
| #NOTE: for live reload | |
| npm install watchman | |
| #create app | |
| ember new ember-quickstart | |
| #run |
| import java.util.ArrayList; | |
| import java.util.Arrays; | |
| import java.util.HashMap; | |
| import java.util.List; | |
| import java.util.Map; | |
| /** | |
| * Created by shahin on 2/21/18. | |
| */ | |
| class MapDigits { |