Skip to content

Instantly share code, notes, and snippets.

View riccardomurri's full-sized avatar

Riccardo Murri riccardomurri

View GitHub Profile
@riccardomurri
riccardomurri / yaml_and_persitent_id.py
Created November 8, 2011 19:29
non-working example of implementing `persistent_id` on top of PyYAML
#! /usr/bin/python
import yaml
class Persistable(object):
# simulate a unique id
_unique = 0
def __init__(self, *args, **kw):
Persistable._unique += 1
@riccardomurri
riccardomurri / concurrent_bitset.hpp
Created December 30, 2011 18:51
Implementation of a concurrent `std::bitset` using Intel TBB.
/**
* @file concurrent_bitset.hpp
*
* Implementation of a concurrent @c std::bitset using Intel TBB.
*
* @author riccardo.murri@gmail.com
* @version $Revision$
*/
/*
* Copyright (c) 2011 Riccardo Murri <riccardo.murri@gmail.com>. All rights reserved.
@riccardomurri
riccardomurri / gc3pie-poster-preview.tex
Created August 22, 2013 12:45
Poster preview for the GC3Pie poster @ EuroSciPy 2013
\documentclass[final,english,serif]{beamer}
\usetheme{gc3}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{graphicx}
\usepackage{gc3}
@riccardomurri
riccardomurri / gist:6763235
Last active December 24, 2015 07:19
Full error trace leading up to Numba's "NotImplementedError: Unable to cast from { i64, i8* }* to { i64, i8* }"
DEBUG -- translate:361:translate
; ModuleID = 'tmp.module.fatghol.simplematrix.__new__.25311b8'
@PyArray_API = linkonce_odr global i8** inttoptr (i64 46912560938432 to i8**)
define { i64, i8* }* @__numba_specialized_0_fatghol_2E_simplematrix_2E___new__({ i64, i8* }* %cls, i32 %rows, i32 %columns) {
entry:
%objtemp3 = alloca { i64, i8* }*
store { i64, i8* }* null, { i64, i8* }** %objtemp3, !tbaa !2
(defun check-cfengine-block-length (filename)
(save-excursion
(find-file filename)
(goto-char (point-min))
(while (re-search-forward "\\[%CFEngine +BEGIN *%\\]" nil 'noerror)
(let ((start (match-end 0))
(start-line (what-line)))
(if (re-search-forward "\\[%CFEngine +END *%\\]" nil 'noerror)
(let ((end (match-beginning 0))
(end-line (what-line)))

Test report for easybuilders/easybuild-easyconfigs#2793

Test result

Build succeeded for 0 out of 0 (3 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

Time info

  • start: Tue, 29 Mar 2016 20:23:00 +0000 (UTC)
  • end: Tue, 29 Mar 2016 20:23:19 +0000 (UTC)

Test report for easybuilders/easybuild-easyconfigs#2793

Test result

Build succeeded for 3 out of 3 (3 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Givaro-4.0.1-foss-2016a.eb
  • SUCCESS FFLAS-FFPACK-2.2.0-foss-2016a.eb
  • SUCCESS LinBox-1.4.0-foss-2016a.eb

Test report for easybuilders/easybuild-easyconfigs#2793

Test result

Build succeeded for 3 out of 3 (3 easyconfigs in this PR)

Overview of tested easyconfigs (in order)

  • SUCCESS Givaro-4.0.1-foss-2016a.eb
  • SUCCESS FFLAS-FFPACK-2.2.0-foss-2016a.eb
  • SUCCESS LinBox-1.4.0-foss-2016a.eb
@riccardomurri
riccardomurri / eb-bootstrap-failure.ubuntu-14.04.txt
Created October 14, 2016 09:36
eb-bootstrap-failure.ubuntu-14.04.txt
ubuntu@eb-test:~$ export EASYBUILD_BOOTSTRAP_DEBUG=1
ubuntu@eb-test:~$ python bootstrap_eb.py $HOME/easybuild
[[INFO]] EasyBuild bootstrap script (version 20161006.01, MD5: c91bf277b86f693463f05119f068e4de)
[[INFO]] Found Python 2.7.6 (default, Jun 22 2015, 17:58:13) ; [GCC 4.8.2]
[[INFO]] Installation prefix /home/ubuntu/easybuild
[[DEBUG]] Going to use /tmp/tmp9MlvpR as temporary directory
[[DEBUG]] Output from modulecmd python help:
Modules Release 3.2.10 2012-12-21 (Copyright GNU GPL v2 1991):
@riccardomurri
riccardomurri / TODO.org
Created June 15, 2017 21:46
Notes and TO-DO items for the Python course

This are notes taken after delivering the course at University of Bern on June 8, 2017.

If you attended the course, please add your own comments and suggestions!

1 day is too short!

Covering all the material requires at least two full days (and even then, time for exercises might be too limited).

Too few exercises?