https://git.coolaj86.com/coolaj86/greenlock-express.js
https://gitee.com/lcmoming/awesome-ios
get current branch name: git rev-parse --abbrev-ref HEAD
revert commit: git reset --soft HEAD~1
revert add: git reset HEAD $1
pushing after rebase: git push --force-with-lease
Resources: https://makandracards.com/makandra/12107-git-show-current-branch-name-only
| alternate registry to fetch packages outside of go get: https://gopm.io/download?pkgname=golang.org/x/oauth2 | |
| alternate web sandbox for go: https://goplay.space/ | |
| https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779 | |
| https://github.com/beyondns/gotips | |
| http://moazzam-khan.com/blog/golang-make-http-requests/ |
| // d3.legend.js | |
| // (C) 2012 ziggy.jonsson.nyc@gmail.com | |
| // MIT licence | |
| (function() { | |
| d3.legend = function(g) { | |
| g.each(function() { | |
| var g= d3.select(this), | |
| items = {}, | |
| svg = d3.select(g.property("nearestViewportElement")), |
| var probability = { | |
| normal: function(x, mean, stddev) { | |
| var y = (1 / (stddev * Math.sqrt(2 * Math.PI))) * Math.pow(Math.E, - (Math.pow(x - mean, 2) / (2 * Math.pow(stddev, 2)))); | |
| //console.log('normal', x, mean, stddev, y); | |
| return y; | |
| }, | |
| logNormal: function(x, mean, stddev) { | |
| var y = (1 / (x * Math.sqrt(2 * Math.PI * Math.pow(stddev, 2)))) * Math.pow(Math.E, - (Math.pow(Math.log(x) - mean, 2) / (2 * Math.pow(stddev, 2)))); | |
| //console.log('logNormal', x, mean, stddev, y); | |
| y = isFinite(y) ? y : 0; |
Just an example for others and a note for myself in case I need to reference this in the future.
Steps:
Add the custom/additional maven repos where you can find the JARs (that are not hosted on maven central or other common repo)
<repositories>
<!-- has some useful JARs not hosted on maven central, a popular alternative repo -->
| #! /usr/bin/env node | |
| 'use strict'; | |
| var storm = require("pathTo/storm.js"); //the official storm multilang node client/binding from Apache Storm project | |
| var BasicBolt = storm.BasicBolt; | |
| TestBolt.prototype = Object.create(BasicBolt.prototype); | |
| TestBolt.prototype.constructor = TestBolt; | |
| function TestBolt() { |
| https://blog.cloudboost.io/execute-asynchronous-tasks-in-series-942b74697f9c | |
| https://blog.scottlogic.com/2017/09/14/asynchronous-recursion.html |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| svg { | |
| font: 10px sans-serif; | |
| } | |
| .bar rect { | |
| fill: steelblue; | |
| shape-rendering: crispEdges; | |
| } |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| svg { | |
| font: 10px sans-serif; | |
| } | |
| .bar rect { | |
| fill: steelblue; | |
| shape-rendering: crispEdges; | |
| } |