View -
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
I = [5, 6, 7] | |
matrix = [ | |
[1, 10, -57, -9, -24, 0, 0, 0, 0] | |
[0, 0.5, -5.5, -2.5, 9, 1, 0, 0, 0] | |
[0, 0.5, -1.5, -0.5, 1, 0, 1, 0, 0] | |
[0, 1, 0, 0, 0, 0, 0, 1, 1] | |
] | |
max = (array) -> |
View -
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
I = [5, 6, 7] | |
matrix = [ | |
[1, 10, -57, -9, -24, 0, 0, 0, 0] | |
[0, 0.5, -5.5, -2.5, 9, 1, 0, 0, 0] | |
[0, 0.5, -1.5, -0.5, 1, 0, 1, 0, 0] | |
[0, 1, 0, 0, 0, 0, 0, 1, 1] | |
] | |
max = (array) -> |
View -
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
I = [5, 6, 7] | |
matrix = [ | |
[1, 10, -57, -9, -24, 0, 0, 0, 0] | |
[0, 0.5, -5.5, -2.5, 9, 1, 0, 0, 0] | |
[0, 0.5, -1.5, -0.5, 1, 0, 1, 0, 0] | |
[0, 1, 0, 0, 0, 0, 0, 1, 1] | |
] | |
max = (array) -> |
View Simplex Algorithm.coffee
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
#I = [5, 6, 7] | |
#matrix = [ | |
# [1, 10, -57, -9, -24, 0, 0, 0, 0] | |
# [0, 0.5, -5.5, -2.5, 9, 1, 0, 0, 0] | |
# [0, 0.5, -1.5, -0.5, 1, 0, 1, 0, 0] | |
# [0, 1, 0, 0, 0, 0, 0, 1, 1] | |
#] | |
I = [4, 7, 6, 8] | |
matrix = [ |
View tables.coffee
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
render: -> | |
_.table _, | |
_.thead _, | |
_.tr _, | |
_.th "BV" | |
_.th "x1" | |
_.th "x2" | |
_.th "x3" | |
_.th "x4" | |
_.th "RHS" |
View simpler-gump.coffee
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
{task, watch, serve} = require 'gump' | |
bower = require 'gulp-bower-files' | |
flatten = require 'gulp-flatten' | |
stylus = require 'gulp-stylus' | |
jade = require 'gulp-jade' | |
clean = require 'gulp-clean' | |
task 'default', | |
'clean' | |
-> watch 'sources' |
View gist:e8b74ff74e98bdd0c137
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
Rules (type (Map Char String)) | |
System (record angle: Num base: (List Char) rules: Rules) | |
tree (fn [angle] (System angle | |
{\M} | |
(Map | |
\M "N[-M][+M][NM]" | |
\N "NN" | |
\[ "[" | |
\] "]" |
View gist:4fb78f5f9569b40c01fc
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
+ (macro [x y] | |
(: (Fn Num Num Num)) | |
(Js.binary "+" x y)) | |
- (macro [what from] | |
(: (Fn Num Num Num)) | |
(Js.binary "-" from what)) | |
* (macro [x y] | |
(: (Fn Num Num Num)) |
View Switch
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
#(defn parting | |
# "returns a String parting in a given language" | |
# ([] (parting "World")) | |
# ([name] (parting name "en")) | |
# ([name language] | |
# (condp = language | |
# "en" (str "Goodbye, " name) | |
# "es" (str "Adios, " name) | |
# (throw (IllegalArgumentException. | |
# (str "unsupported language " language)))))) |
View discrete-event-simulation
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
# http://michalsrb.me/teatable/ | |
# | |
# (new Simulation (ExponentialSampler 2), (ConstantSampler 2)).run 100 | |
class Simulation | |
constructor: (@interArrival, @serviceTime) -> | |
@events = [] | |
@t = 0 | |
@population = 0 | |
@scheduleArrival() |
OlderNewer