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 json.scm
src$ ./
((json-checks) i_number_double_huge_neg_exp.json)
((json-checks) i_number_huge_exp.json)
((json-checks) i_number_neg_int_huge_exp.json)
((json-checks) i_number_pos_double_huge_exp.json)
((json-checks) i_number_real_neg_overflow.json)
((json-checks) i_number_real_pos_overflow.json)
((json-checks) i_number_real_underflow.json)
((json-checks) i_number_too_big_neg_int.json)
((json-checks) i_number_too_big_pos_int.json)
amirouche /
Created Sep 9, 2019
pyqt5 webkit + lxml example
import sys
from PyQt5.QtGui import *
from PyQt5.QtCore import *
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWebKitWidgets import *
from lxml import html
#Take this class for granted.Just use result of rendering.
class Render(QWebPage):
def __init__(self, url):
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
You can’t perform that action at this time.