Skip to content

Instantly share code, notes, and snippets.

@illerucis
illerucis / gist:8046435
Created December 19, 2013 21:19
Testing module for parallel computing.
module TestIt
export test_call
function test_call()
test()
end
function test()
@illerucis
illerucis / error.txt
Created December 18, 2013 23:13
Error output from the SortPerfModified.jl
illerucis@julia:~/sortperf$ ../julia/./julia -p 20 perfit.jl
QuickSortAlg()
Testing Int64...
6
ERROR: reptimes not defined
in _sortperf at /home/illerucis/sortperf/SortPerf.jl:1509
in _sortperf at /home/illerucis/sortperf/SortPerf.jl:165
@illerucis
illerucis / SortPerfModified.jl
Created December 18, 2013 23:09
Modified SortPerf.jl for parallelizing repetitions. See lines 48 for the reduction function and 73 for the implementation
## modeled after sort tests in python's sortperf.py
##
## Kevin Squire
##
module SortPerf
export sortperf, sort_plots, view_sort_plots, save_sort_plots, std_sort_tests, sort_median, sort_scale
import Base.Sort: Algorithm, Forward, ReverseOrdering, ord
@illerucis
illerucis / perfit.jl
Created December 16, 2013 23:34
Comparing old and (maybe) new QSs
require("SortPerf.jl")
SortPerf.std_sort_tests(;sort_algs=[QuickSort, OldQuickSort],
types=[Int, Float32, Float64],
range=6:19,
replicates=1000,
save=true)
@illerucis
illerucis / gist:4586359
Last active September 2, 2022 19:01
Server-side Python + MongoDB + Flask implementation for DataTables
from collections import namedtuple
from pymongo import MongoClient
from flask import request
from core.web.site import app
from core.web.site.views_master import *
import json
'''
$('#companies').dataTable( {
"bProcessing": true,