I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| /* | |
| I've wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace | |
| so it's better encapsulated. Now you can have multiple random number generators | |
| and they won't stomp all over eachother's state. | |
| If you want to use this as a substitute for Math.random(), use the random() | |
| method like so: | |
| var m = new MersenneTwister(); |
| /** | |
| * Convert From/To Binary/Decimal/Hexadecimal in JavaScript | |
| * https://gist.github.com/faisalman | |
| * | |
| * Copyright 2012-2015, Faisalman <[email protected]> | |
| * Licensed under The MIT License | |
| * http://www.opensource.org/licenses/mit-license | |
| */ | |
| (function(){ |
| /* | |
| Sample output: | |
| > gradle test ruby-1.9.3-p194 testing_with_gradle 9179829 ✗ | |
| ... | |
| :test | |
| Results: SUCCESS (84 tests, 74 successes, 0 failures, 10 skipped) | |
| */ | |
| test { | |
| testLogging { |
I use Namecheap.com as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.
These are the steps I went through to set up an SSL cert.
| function getTileUrls(bounds, tileLayer, zoom) { | |
| var min = map.project(bounds.getNorthWest(), zoom).divideBy(256).floor(), | |
| max = map.project(bounds.getSouthEast(), zoom).divideBy(256).floor(), | |
| urls = []; | |
| for (var i = min.x; i <= max.x; i++) { | |
| for (var j = min.y; j <= max.y; j++) { | |
| var coords = new L.Point(i, j); | |
| coords.z = zoom; |
| import javax.script.Invocable; | |
| import javax.script.ScriptEngine; | |
| import javax.script.ScriptEngineManager; | |
| import javax.script.ScriptException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.util.Random; | |
| import java.util.function.Supplier; | |
| public class App |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
| FROM alpine:3.7 | |
| WORKDIR /build | |
| # install tools and dependencies | |
| RUN apk add --no-cache gcc musl-dev openssl-dev pkgconfig g++ make curl \ | |
| eudev-dev rust cargo git file binutils libusb-dev \ | |
| linux-headers | |
| # show backtraces |
| import { describe, it } from 'mocha'; | |
| import { expect } from 'chai'; | |
| import Nav from '../../src/components/Nav.html'; | |
| import { getByText } from 'dom-testing-library'; | |
| describe('first test', () => { | |
| it('should be testable', () => { | |
| let nav = new Nav({ | |
| target: document.body | |
| }); |