Skip to content

Instantly share code, notes, and snippets.

View amirouche's full-sized avatar

Amir Amazigh BOUBEKKI amirouche

View GitHub Profile
@amirouche
amirouche / gdal.py
Last active December 21, 2017 20:56
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

Héllo!

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)

Héllo!

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
amirouche / validation.scm
Created September 29, 2017 16:46
Guile 2.2 validation helpers
;; 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)
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
// License as published by the Free Software Foundation; either
;; Copyright (c) 2013-2016, Evan Hanson <evhan@foldling.org>
;; 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
# 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):
def etoile5(taille,coulr):
edge = 1
angle = 144
while edge <= 5:
color(coulr)
forward(taille)
right(angle)

Keybase proof

I hereby claim:

  • I am amirouche on github.
  • I am amz3 (https://keybase.io/amz3) on keybase.
  • I have a public key whose fingerprint is EA62 E4FA F4B2 C1A9 6113 F126 AD8F F233 40A0 C199

To claim this, I am signing this object: