Skip to content

Instantly share code, notes, and snippets.

View alisianoi's full-sized avatar
🔂

Alexander Lisianoi alisianoi

🔂
View GitHub Profile
@alisianoi
alisianoi / test.py
Last active August 29, 2015 14:00
Problem with super(), multiple inheritance and method overloading
import sys
import logging
from logging import Logger
from html.parser import HTMLParser
class LoggerAdapter():
def __init__(self, name, level, **kwds):
self.logger = Logger(name, level)
super().__init__(**kwds)
The best test of an argument is the argument’s ability to convince someone with
an opposing viewpoint.
Write a response in which you discuss the extent to which you agree or disagree with
the statement and explain your reasoning for the position you take. In developing and
supporting your position, you should consider ways in which the statement might or
might not hold true and explain how these considerations shape your position.
=====================================================================================
{
"metadata": {
"name": "",
"signature": "sha256:7750b2eb7b054fc6cbeb21c873cd20c8b6eb7792f87694edf5fa4cba146c20ab"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@alisianoi
alisianoi / gist:ff8a27901cae376519a0
Created March 12, 2015 21:49
My dependencies when installing `pygmp`
$ pip show networkx numpy scipy cython sphinx pandas pip nose
---
Name: networkx
Version: 1.9.1
Location: /usr/lib/python3.4/site-packages
Requires: decorator
---
Name: numpy
Version: 1.9.2
Location: /home/all3fox/Code/pgmpy/vipgmpy/lib/python3.4/site-packages/numpy-1.9.2-py3.4-linux-x86_64.egg
@alisianoi
alisianoi / gist:582fb271cb885fa72c53
Created March 12, 2015 21:55
nosetests: failed tests log
This file has been truncated, but you can view the full file.
...................................................................................EESSS.E.E..........EEEEEEEEEEEEEE.EEE.E....EE.EEEEEEEEEEEEEEEEEEEEE.........................................E................................................................
======================================================================
ERROR: test_add_edge (pgmpy.tests.test_factors.test_Factor.TestTreeCPD)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/all3fox/Code/pgmpy/pgmpy/tests/test_factors/test_Factor.py", line 495, in setUp
('D', Factor(['A'], [2], [0.4, 0.6]), 1)])
File "/home/all3fox/Code/pgmpy/pgmpy/factors/CPD.py", line 362, in __init__
self.add_edge(edge[0], edge[1], label=edge[2])
File "/home/all3fox/Code/pgmpy/pgmpy/factors/CPD.py", line 393, in add_edge
---
layout: post
title: "Octopress on Arch Linux: caveats"
date: 2014-07-05 23:20:00 +0400
comments: true
categories: [Octopress, Arch Linux, workarounds]
---
Introduction
------------
@alisianoi
alisianoi / PKGBUILD
Created April 2, 2015 14:05
openblas-lapack-git
# Maintainer: all3fox <all3fox [at] gmail __DoT_ com>
# Contributor: eolianoe <eolianoe [at] gmail [DoT] com>
# Contributor: Jiaxi Hu <sftrytry _AT_ gmail _DOT_ com>
# Contributor: Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
pkgname=openblas-lapack-git
_pkgname=OpenBLAS
pkgver=v0.2.14.r0.gd0c51c4
pkgrel=1
pkgdesc="Optimized BLAS library based on GotoBLAS2 1.13 BSD"
newLaTeX = \
[
["pdflatex", "-interaction=nonstopmode", "-shell-escape", "tmp.tex"],
["convert", "-trim", "-density", "400", "tmp.pdf", "tmp.png"]
]
beautifulsoup4==4.3.2
coverage==3.7.1
Django==1.8.3
ipdb==0.8.1
ipython==3.2.1
jedi==0.9.0
Jinja2==2.8
jsonschema==2.5.1
lxml==3.4.4
MarkupSafe==0.23
@alisianoi
alisianoi / Xorg.8.log
Created August 30, 2013 07:54
Xorg.8.log
[ 1643.510]
X.Org X Server 1.14.2
Release Date: 2013-06-25
[ 1643.510] X Protocol Version 11, Revision 0
[ 1643.510] Build Operating System: Linux 3.9.7-1-ARCH x86_64
[ 1643.510] Current Operating System: Linux tardis 3.10.9-1-ARCH #1 SMP PREEMPT Wed Aug 21 13:49:35 CEST 2013 x86_64
[ 1643.510] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=/dev/mapper/vg_tardis-lvol0 rw quiet
[ 1643.510] Build Date: 01 July 2013 10:48:42AM
[ 1643.510]
[ 1643.510] Current version of pixman: 0.30.2