Notes I've assembled for myself during my journey of learning Solidity, some notes maybe incorrect as they are my own interpretation
Allow clients to keep track of things. IE: Sent transactions, End of transactions, etc.
event EventName(...args)
Set watches on the logs to be scanned, if a condition is met it triggers a watch https://www.elastic.co/guide/en/watcher/current/watch-log-data.html
Watch
->Condition
(If True) ->Action
(webhook or anywhere)
## Watch Logs | |
> Set watches on the logs to be scanned, if a condition is met it triggers a watch | |
https://www.elastic.co/guide/en/watcher/current/watch-log-data.html | |
> `Watch` -> `Condition` (If True) -> `Action` (webhook or anywhere) |
// Quickly wrote this to save me time in class instead of calculating all of this stuff | |
/** | |
var d1 = [0.8, 0.7, 0.9, 0, 0, 0.2]; | |
var d2 = [0.4, 0.3, 0.5, 0, 0, 0]; | |
var d3 = [0.9, 0, 0.8, 0.5, 0, 0]; | |
var d4 = [0.2, 0, 0, 0.8, 0, 0.9]; | |
var d5 = [0.7, 0.9, 0.7, 0.4, 0, 0]; | |
var d6 = [0.3, 0.6, 0.7, 0.7, 0, 0]; | |
similarity(d1, d2, "dice"); // 0.8571428571428571 |
Explains a Fast-Forward When Git Pull Hurts
git config --global alias.up '!git remote update -p; git merge --ff-only @{u}
Prunes remote branches and updates them, then fast-forward local branch from the Upstream branch. However, fails if there are local changes to prevent a merge conflict and undesired fast-forwarding.
// TODO: Will like to get back to this if I have time. | |
// Goal would be to iterate through with a instance set containing different days and MostComments and Score. Then suggest the day with greatest probability based on model. | |
// if (model.postList.length > 0) { | |
// var forest = new forestjs.RandomForest(); | |
// var options = {} | |
// options.numTrees = 100; |
module.exports = require('node-slackr'); | |
// Set up server dependencies | |
var express = require('express'), | |
bodyParser = require('body-parser'), | |
app = express(); | |
// App usage | |
app.use(bodyParser.json()); | |
app.use(bodyParser.urlencoded({extended: true})); |