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)))))) |
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() |
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/bash | |
# This script create a new repo on github.com, then pushes to it the local repo from the current directory. | |
# It is a fork of https://gist.github.com/robwierzbowski/5430952/. Some of Rob's lines just didn't work for me, and to fix them I needed to make it more verbose so that a mere electrical engineer could understand it. | |
# This script gets a username from .gitconfig. If it indicates that your default username is an empty string, you can set it with | |
# git config --add github.user YOUR_GIT_USERNAME | |
# Gather constant vars |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>comment</key> | |
<string>CoffeeScript</string> | |
<key>fileTypes</key> | |
<array> | |
<string>coffee</string> | |
<string>Cakefile</string> |
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) -> |
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) -> |
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) -> |
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 = [ |
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" |
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' |
OlderNewer