Skip to content

Instantly share code, notes, and snippets.

View onceknown's full-sized avatar

onceknown onceknown

View GitHub Profile
@onceknown
onceknown / barley-and-wheat.js
Last active October 6, 2019 02:05
Solve for Linear Programming Problem
/**
Prompt:
A farming family wishes to plant some barley and some wheat. They can plant a maximum
of 100 acres of barley and a maximum of 80 acres of wheat. However, they only have 120
acres of land available for planting. Barley costs $20 per acre for seeds, and wheat costs
$30 per acre for seeds. However, they only have $3000 available for seed costs. They expect
a harvest of 1000 pounds per acre of barley and 3000 pounds per acre of wheat. How many
acres of each crop should they plant to maximize their total harvest?
{
programs: {
`${programId}`: {
roots: [`${commandId}`, ... ],
commands: {
`${commandId}`: {
id: `${commandId}`,
type: `${commandType}`,
transitions: {
in: [`${transitionId}`, ... ],
@onceknown
onceknown / .eslintrc
Last active October 29, 2015 04:31
Writing A Firebase
{
"rules": {
"indent": [
2,
2
],
"quotes": [
2,
"single"
],