This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!require(neuralnet)) {install.packages("neuralnet")} | |
library(neuralnet) | |
#nn for learning how to calculate a square root | |
set.seed(1) | |
train.x <- sample(1:100, 50, replace = T) | |
head(train.x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -u | |
fileLocal="${1:-example-local-file.ext}" | |
bucket="${2:-example-bucket}" | |
remotePath="${3:-remote-path}" | |
region="${4:-}" | |
awsAccess="${5:-YOUR_AWS_ACCESS_KEY}" | |
awsSecret="${6:-YOUR_AWS_SECRET_KEY}" | |
m_openssl() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>title</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css"> | |
</head> | |
<body> | |
<h1>Hello, world</h1> | |
<script src="http://code.jquery.com/jquery.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -u | |
# To the extent possible under law, Viktor Szakats (vszakats.net) | |
# has waived all copyright and related or neighboring rights to this | |
# script. | |
# CC0 - https://creativecommons.org/publicdomain/zero/1.0/ | |
# Upload a file to Amazon AWS S3 using Signature Version 4 | |
# | |
# docs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Execute this from the javascript console in the browser, after you log in pentaho. | |
Get the listing of children of :home | |
Go through the list and send a put to deletepermanent with the id of the node. | |
*/ | |
$.getJSON("http://<server_url>:8080/pentaho/api/repo/files/:home/children", function(data){ | |
$.each(data, function(i, nodes){ | |
nodes.forEach(function(node){ | |
console.log(node.path,node.id); |
OlderNewer