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
+- Any | |
. +- WeakRef | |
. +- Colon | |
. +- GetfieldNode | |
. +- AbstractArray = AbstractArray{T,2} | |
. . +- Union(AbstractArray{T,1},AbstractArray{T,2}) | |
. . . +- AbstractVecOrMat = Union(AbstractArray{T,1},AbstractArray{T,2}) | |
. . +- Array = Array{T,2} | |
. . . +- Union(Array{T,1},SubArray{T,1,A<:Array{T,N},I<:(Union(Range1{Int64},Int64,Range{Int64})...,)}) | |
. . . . +- StridedVector = Union(Array{T,1},SubArray{T,1,A<:Array{T,N},I<:(Union(Range1{Int64},Int64,Range{Int64})...,)}) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Websocket Demo</title> | |
<style> | |
#messages { | |
border: dotted 1px #444444; | |
font: 12px arial,sans-serif; | |
} | |
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
import numpy as np | |
import gdal | |
import time | |
ra = np.random.random_sample((1000,1000)) | |
tfile = '/tmp/x' | |
t1 = time.time() | |
for i in range(1,5): |
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
*** calling gc at begin | |
*** collected 168 objects | |
*** calling gc at after instantiating cs | |
gc: collecting generation 2... | |
gc: objects in each generation: 173 0 15626 | |
gc: done, 133 unreachable, 0 uncollectable, 0.0094s elapsed. | |
*** collected 4 objects | |
gc: collecting generation 0... | |
gc: objects in each generation: 648 0 15794 | |
gc: done, 65 unreachable, 0 uncollectable, 0.0001s elapsed. |
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
import Orange | |
train = Orange.data.Table("genestrain") | |
blind = Orange.data.Table("genesblind") | |
def create_classifier(cn): | |
if cn == "nb": | |
nb = Orange.classification.bayes.NaiveLearner() | |
nb.name = "nb" | |
return nb |
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
module publisher | |
using ZMQ | |
using asset_system | |
using ProtoBuf | |
export Publisher, publishEstSysState, close | |
println("Testing with ZMQ version $(ZMQ.version)") | |
type Publisher |
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
0 1 1 | |
1 2 1 | |
1 3 1 | |
2 4 1 | |
3 4 1 | |
4 7 2 | |
5 6 1 |
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
function daemon() | |
cpid = ccall(:fork, Cint, ()) | |
if cpid != 0 | |
exit() | |
else | |
ccall(:setsid, Cint, ()) | |
cpid = ccall(:fork, Cint, ()) | |
if cpid != 0 | |
exit() |
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
function fn_maker{T}(arr::Array{T,1}, len::Int) | |
function add_fn(pos::Int, val::T) | |
arr[pos] = val | |
end | |
end | |
function fn_static{T}(arr::Array{T,1}, pos::Int, val::T) | |
arr[pos] = val | |
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
elapsed time: 0.103189028 seconds (0 bytes allocated) | |
elapsed time: 0.000888531 seconds (0 bytes allocated) | |
elapsed time: 0.001684563 seconds (0 bytes allocated) | |
elapsed time: 0.103114518 seconds (0 bytes allocated) | |
elapsed time: 0.001014195 seconds (0 bytes allocated) | |
elapsed time: 0.001589316 seconds (0 bytes allocated) | |
elapsed time: 0.103195119 seconds (0 bytes allocated) | |
elapsed time: 0.000961692 seconds (0 bytes allocated) | |
elapsed time: 0.001577562 seconds (0 bytes allocated) |