module SimonDataFrame
type DataFrame{N,D}
data::D
end
hello world
# /: comment
aK
\ hello world
.asdf#wer 456
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
using JuMP | |
function localVar(m, name = "", expose = false) | |
x = JuMP.Variable(m, -Inf, Inf, :Cont, name, NaN) | |
if expose | |
JuMP.registervar(m, name, x) | |
end | |
x | |
end |
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
using JuMP | |
function Base.real{T <: JuMP.JuMPTypes}(x::Matrix{T}) | |
@assert size(x,1) == 2 | |
vec(x[1,:]) | |
end | |
function Base.imag{T <: JuMP.JuMPTypes}(x::Matrix{T}) | |
@assert size(x,1) == 2 | |
vec(x[2,:]) | |
end |
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
var config = { | |
port: 8080, | |
ipWhitelist: [], // Set [] to allow all IP addresses. | |
language: "en", | |
timeFormat: 12, | |
units: "imperial", | |
modules: [ | |
{ | |
module: 'MMM-ProfileSwitcher', |
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
julia> using OpenDSSDirect | |
julia> using OpenDSSDirect.DSS | |
shell> cd C:\\PortableApps\\OpenDSS\\electricdss-git\\Distrib\\IEEETestCases\\13Bus | |
C:\PortableApps\OpenDSS\electricdss-git\Distrib\IEEETestCases\13Bus | |
julia> dss("redirect IEEE13Nodeckt.dss") | |
"" |
Run the Julia code below, and it'll pop up a window with an image.
Select the window. Move the mouse around, and hit the f
key.
A red marker should appear.
I used the keyboard with the mouse because my application had several different features I wanted to pick out. You could adapt this to use the mouse buttons.
Julia's runtime provides a lot of functionality used by base Julia code. A subset of this is needed to support basic data structures like arrays, dicts, and strings. Here is a list of the ccall
's used by base Julia code. The most important ones for basic wasm support are:
# most important
abstractdict.jl
:jl_eqtable_get
:jl_eqtable_nextind
:jl_eqtable_pop
:jl_eqtable_put
:jl_idtable_rehash