Run with the following bash command
ts-node computeJoinPoint.tsRun with the following bash command
ts-node computeJoinPoint.ts| # The actual height and width of each cell | |
| cell_height, cell_width = 256, 256 | |
| # Bounding box parameters normalized between 0 and 1 | |
| # This comes from the output of a bounding box regression model | |
| bx, by, bh, bw = 0.6, 0.6, 0.4, 0.4 | |
| # Calculate height and width | |
| height = cell_height * bh | |
| width = cell_width * bw |
| test_correct = 0 | |
| train_correct = 0 | |
| output = (net(mnist_test_X) > 0.5).float() | |
| for i, v in enumerate(output): | |
| if v.argmax() == mnist_test_y[i].argmax(): | |
| test_correct += 1 | |
| output = (net(mnist_train_X) > 0.5).float() | |
| for i, v in enumerate(output): |
| # SkyCam Equations | |
| # ---------------- | |
| # See https://www.scienceforums.com/topic/9394-skycam-formula-upside-down-pyramid/?tab=comments#comment-148968 | |
| import math | |
| # Distances between adjacent towers | |
| v = 460 | |
| w = 250 |
| # -*- coding: utf-8 -*- | |
| import torch | |
| import torch.nn as nn | |
| import torch.optim as optim | |
| x_train = torch.Tensor([ | |
| [0, 0], | |
| [0, 1], | |
| [1, 0], |
| (function () { | |
| var fs = require("fs"), | |
| xml = require("xml-js"); | |
| var content = fs.readFileSync("gosms_sys119.xml", "utf8"); | |
| var result = xml.xml2json(content, { compact: true, spaces: 4 }); | |
| var styleSent = "color: blue;"; | |
| var styleReceived = "color: red;"; | |
| var stylePara = "font-family: Calibri; font-size: 11pt;"; |
| #! /bin/bash | |
| # PHP 7 Initial Compile # | |
| # Author: Maulik Mistry | |
| # Date: Aug 04, 2017 | |
| # References: | |
| # http://www.zimuel.it/install-php-7/ | |
| # http://www.hashbangcode.com/blog/compiling-and-installing-php7-ubuntu | |
| # | |
| # License: BSD License 2.0 |
id unprefixed identifier of the preference. Generally a dotted name.type Data type for the preference (generally, string, boolean, number)initial Default value for the preferenceoptions Additional options for a preference| alias []="brackets" | |
| alias php="winpty php" | |
| alias php7="winpty php7" | |
| alias serve="winpty php -S localhost:8080 -t ." | |
| alias serve7="winpty php7 -S localhost:8080 -t ." | |
| alias python="winpty python" | |
| alias python3="winpty python3" | |
| alias perl="winpty perl" | |
| alias ruby="winpty ruby" | |
| alias node="winpty node" |
| define(function (require, exports, module) { | |
| var CodeMirror = brackets.getModule("thirdparty/CodeMirror/lib/codemirror"), | |
| LanguageManager = brackets.getModule("language/LanguageManager"); | |
| CodeMirror.defineSimpleMode("handlebars", { | |
| start: [ | |
| { regex: /\{\{!--/, push: "dash_comment", token: "comment" }, | |
| { regex: /\{\{!/, push: "comment", token: "comment" }, | |
| { regex: /\{\{/, push: "handlebars", token: "tag" } | |
| ], |