Skip to content

Instantly share code, notes, and snippets.

View svaksha's full-sized avatar
💭
zzZen()

svaksha ॥ स्वक्ष ॥ svaksha

💭
zzZen()
View GitHub Profile
#!/usr/bin/env python
import os
import logging
from collections import Counter
import gffutils
from gffutils.create import logger
logger.setLevel(logging.INFO)
usage = """
@svaksha
svaksha / .pythonrc
Last active August 29, 2015 14:06 — forked from dlo/.pythonrc
# http://dlo.me/archives/2014/09/08/pythonrc/
# vim: set ft=python :
from __future__ import print_function
import json
import sys
import datetime
from redis import StrictRedis as Redis
@svaksha
svaksha / static_cast
Created September 15, 2014 05:33
static_cast by zoe
#include <iostream>
class Foo {
public:
Foo() : val(4.2) {}
void a() {
std::cout << "float: " << val << '\n';
}
@svaksha
svaksha / make test-linalg4
Created December 31, 2014 03:26
make test-linalg4
$ make test-linalg4
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
@svaksha
svaksha / include("runtests.jl")
Created January 2, 2015 09:05
include("runtests.jl")
/julia/test$ JULIA_CPU_CORES=1 julia --code-coverage=all --inline=no
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "help()" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.4.0-dev+2396 (2015-01-02 07:26 UTC)
_/ |\__'_|_|_|\__'_| | master/3f3998e (fork: 140 commits, 8 days)
|__/ | i686-linux-gnu
@svaksha
svaksha / julia-make-test-failure.log
Created January 2, 2015 13:05
julia-make-test-failure.log
~/julia$ make
CC src/jltypes.o
CC src/gf.o
CC src/support/hashing.o
CC src/support/timefuncs.o
CC src/support/ptrhash.o
CC src/support/operators.o
CC src/support/utf8.o
CC src/support/ios.o
CC src/support/htable.o
@svaksha
svaksha / FOSS-diversity-percentage.md
Last active August 29, 2015 14:13
FOSS-diversity-percentage.md

Some thoughts on diversity in FOSS:

The lack of diversity numbers (percentages) from Foss organizations in pure technical (read core-developers or women with commit access) roles. For the most part, some Organizations include non-tech roles while releasing diversity data - while this is a good thing (I think its important to respect the technical writer and/or bug squasher as much as the programmer) we all know (and have probably experienced first-hand) that women in non-technical roles are hardly respected.

Secondly, the whole "diversity" brouhaha has given us access to some numbers (which we know are low) but there is hardly any discussion on what changes need to occur on the basis of these low numbers. Hence, I think this data is important for the following reasons:

  1. It tells me how much harder and longer it will take for me to get there - Becoming a core-dev with commit access does not happen overnight. The key differentiation lies in the fact that it takes time (a LOT of it) to get familiar with a
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@svaksha
svaksha / mapping.jl
Last active August 29, 2015 14:18 — forked from rofinn/mapping.jl
@doc doc"""
Takes a 2d array where each column is a pattern which maps to a row in
the resulting dataframe. Each pattern index is its own column in
the dataframe.
""" ->
function DataFrame(data::Array{Float64, 2})
m = data'
result = DataFrame()
for i in 1:size(data, 1)