Skip to content

Instantly share code, notes, and snippets.

wildart / loggers.jl
Created Apr 29, 2015
Configurable loggers
View loggers.jl
module Logging
abstract Logger
type DefaultLogger <: Logger
DefaultLogger() = new(STDERR, :blue)
DefaultLogger(color::Symbol) = new(STDERR, color)
fatal(l::Logger, msg) = print_with_color(l.color,, "FATAL:", chomp(string(msg)), "\n")
wildart / ParHelperFuncs.jl
Created Aug 8, 2015
Parallel access to LMDB database
View ParHelperFuncs.jl
module ParHelperFuncs
using LMDB
export getSamplesFromDb, miniBatchSum
# we pull samples from the database
function getSamplesFromDb(env, idxs::Array{Int})
txn = start(env)
dbi = open(txn)
wildart / Log.jl
Last active Oct 21, 2015
Logging interface
View Log.jl
module Log
export AbstractLogger, call, logging
import Base: call, getindex
@enum Level OFF=0 FATAL=100 ERROR=200 WARN=300 INFO=400 DEBUG=500 TRACE=600 ALL=1000
abstract AbstractLogger
type LogWrapper{T <: AbstractLogger}
wildart /
Created Mar 22, 2016 — forked from staltz/
The introduction to Reactive Programming you've been missing
wildart /
Last active Mar 24, 2016
Julia GSOC 2016 Proposal

HTTP/2 protocol implementation


This project aims to provide native implementation of HTTP/2, the second major version of the HTTP network protocol, for Julia language. This project will provide a RFC compliant implementation, which will consist of a multiple modules related to framing and application layers, as well as tests, examples of using in server and client modes, ALPN support and documentation.

Problem description

The Julia language has a family of packages, JuliaWebStack, that provide support of modern web technologies. Currently, the Julia language provides a support for HTTP protocol which is implemented as a wrapper around popular HTTP parser library implementation in C language, http-parser. In order to keep up with new trends in web technologies, we propose to implement newly approved version of HTTP protocol, HTTP/2.

wildart /
Last active Mar 24, 2016
Libgit2 GSOC 2016 Proposal

Git server framework in libgit2


Libgit2 has support for the client side of the negotiation, but it’s missing server-side capabilities. We propose a framework that will support smart exchange protocol which attributes to the client state and needs and provide event triggering mechanism for customizable actions on the server side.

wildart /
Last active Jul 29, 2018
# Requires to install pandas & pywin32, and of course MS Word installed.
import sys
import os
import win32com.client
import pandas as pd
import re
import numpy as np
JUNK_SYMBOLS = r'[\x07|\t|\x0b|\r|\x0c]'
wildart /
Created Aug 16, 2018 — forked from maxwellito/
Concat / join .ts segment files into an mp4 file
# This script must be executed in the repo where
# the *.ts files are.
# It will concatenate the segments into one temp
# file which ffmpeg will reencode the audio track.
# By default the ouptup filename is output.mp4
# but can be changed by providing the name as parameter.
# ffmpeg is required
View steam-sysinfo
Computer Information:
Manufacturer: Unknown
Model: Unknown
Form Factor: Desktop
No Touch Input Detected
Processor Information:
CPU Vendor: GenuineIntel
CPU Brand: Intel(R) Xeon(R) CPU W3690 @ 3.47GHz
CPU Family: 0x6
View console.fsx
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information.
// namespace FSI
open System
open System.Text
open System.Collections.Generic
/// System.Console.ReadKey appears to return an ANSI character (not the expected the unicode character).
/// When this fix flag is true, this byte is converted to a char using the System.Console.InputEncoding.