I hereby claim:
- I am gburtini on github.
- I am gburtini (https://keybase.io/gburtini) on keybase.
- I have a public key whose fingerprint is 5C62 9E4C 0A5D AA6C 0D8B 27FE 4D09 3BE8 C030 9D5D
To claim this, I am signing this object:
// MIT licensed (© 2024) | |
// https://opensource.org/license/mit | |
// | |
// Source: https://gist.github.com/gburtini/7e34842c567dd80ee834de74e7b79edd | |
/* eslint-disable @typescript-eslint/no-unsafe-call */ | |
/* eslint-disable @typescript-eslint/no-unsafe-assignment */ | |
/* eslint-disable @typescript-eslint/no-explicit-any */ | |
import fs from "fs"; |
# Original Rails controller and action | |
class EmployeesController < ApplicationController | |
def create | |
@employee = Employee.new(employee_params) | |
if @employee.save | |
redirect_to @employee, notice: "Employee #{@employee.name} created" | |
else | |
render :new | |
end |
// NOTE: return to revision 2 for a no-dependency, one dimensional version of gradient and Newton descent. | |
const { Matrconst { Matrix, Vector } = require('sylvester'); | |
const { isEqual, omit } = require('lodash'); | |
const defaults = { | |
gradientTolerance: 0.01, | |
maxIterates: 10, | |
dieOnBadStep: false, | |
allowNumericalDifferentiation: true, | |
allowBfgs: true, |
I hereby claim:
To claim this, I am signing this object: