Skip to content

Instantly share code, notes, and snippets.


amirouche amirouche

Block or report user

Report or block amirouche

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View emacs.el
(require 'package)
'("melpa" . "") t)
'("elpy" . ""))
amirouche@neitram:~/tmp$ cat
from traceback import print_stack
from weakref import WeakKeyDictionary
class DebugProperty:
def __init__(self, name): = name = WeakKeyDictionary()
amirouche /
Last active Dec 21, 2017
Convert ShapeFile to WGS 84 using GDAL
# with gdal
import osgeo.ogr
w = osgeo.ogr.Open('BATI_INDIFFERENCIE.SHP')
layer = f.GetLayer(0)
# get source SRID
source = layer.GetSpatialRef()

AjguDB forward and beyond


I am the maintainer of AjguDB. Thanks for your interest.

a) What triggered you interest in AjguDB?

The premise of AjguDB project was my interest in graph databases. I played with tinkerpop and neo4j but the requirements on Java was growing on my nerves. I wanted a pure Python or at least Python+C


AjguDB forward and beyond (via github)


I am the maintainer of this project. Thanks for your interest.

I would be very glad, if you could take some time to answer those questions:

a) What triggered you interest in AjguDB?

amirouche / validation.scm
Created Sep 29, 2017
Guile 2.2 validation helpers
View validation.scm
;; test helper
(define-syntax test-check
(syntax-rules ()
((_ title tested-expression expected-result)
(when (getenv "TEST")
(format #t "** Checking ~a\n" title)
(let* ((expected expected-result)
(produced tested-expression))
(unless (equal? expected produced)
View out.prettier.js
This file has been truncated, but you can view the full file.
"use strict";
(function() {
// JavaScript Runtime
// Copyright (C) 2015, 2017 Free Software Foundation, Inc.
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
View rope.scm
;; Copyright (c) 2013-2016, Evan Hanson <>
;; All rights reserved.
;; Redistribution and use in source and binary forms, with or without
;; modification, are permitted provided that the following conditions
;; are met:
;; * Redistributions of source code must retain the above copyright
;; notice, this list of conditions and the following disclaimer.
;; * Redistributions in binary form must reproduce the above copyright
View python-earley-parser-flat-output.txt
# N[2..3]
## N[2..3] -> ferme[2..3]
# GN[3..5]
## GN[3..5] -> D[3..4] N[4..5]
# D[3..4]
## D[3..4] -> le[3..4]
# V[2..3]
## V[2..3] -> ferme[2..3]
# D[0..1]
## D[0..1] -> la[0..1]
from functools import wraps
import leloop
def mount(scene, init, view):
state = init()
def spawn(timeout, callback, *args, **kwargs):
You can’t perform that action at this time.