Skip to content

Instantly share code, notes, and snippets.

View alisianoi's full-sized avatar
🔂

Alexander Lisianoi alisianoi

🔂
View GitHub Profile
@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 / compiling.sh
Created January 16, 2016 17:18
console output when compiling libsoy
alex@tardis ~/Code/libsoy (hg)-[default] % ./waf configure
Setting top to : /home/alex/Code/libsoy
Setting out to : /home/alex/Code/libsoy/build
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'gobject-2.0' >= 2.32 : yes
Checking for 'gthread-2.0' >= 2.32 : yes
Checking for program 'valac-0.26' : not found
Checking for program 'valac-0.24' : not found
Checking for program 'valac-0.22' : not found
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated tough-cookie@1.2.0: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130
npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN prefer global coffee-script@1.10.0 should be installed with -g
npm WARN prefer global jsonlint@1.6.2 should be installed with -g
{ Error: ENOTDIR: not a directory, mkdir '/home/alex/Code/project/jquery/.git/hooks'
at Error (native)
@alisianoi
alisianoi / quicksort.py
Created December 3, 2016 14:09
Quicksort implementations for the blog
def quicksort(xs):
def sort(xs, l, r):
if (l == r):
return
i, j = l, r
pivot = xs[(i + j) / 2]
while (i <= j):
while (xs[i] < pivot):
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Usually, the workflow looks like this on github:

  1. You find a repo you want to contribute to, say coala/coala
  2. You fork it on github, which creates a copy zenara/coala
  3. You copy it to your machine with git clone https://github.com/zenara/coala (actually, it's better to use ssh here, but let's omit that now) At this point, git creates origin that points to your repo: zenara/coala.
  4. You create upstream with git remote add upstream https://github.com/coala/coala that points back to original repo.
  5. You create a local branch with your changes: git checkout -b zenara-awesome-feature
  6. You develop/test it for a long-long time (the coala/coala repo moves forward in the meantime)
  7. You are ready with your local feature branch. Now, you need to catch up with the coala/coala repo.
  8. You get back to the local master branch (which is "old" now): git checkout master