Skip to content

Instantly share code, notes, and snippets.

Avatar
🙄
As you may think.

amirouche

🙄
As you may think.
View GitHub Profile
@amirouche
amirouche / scheme-is.scm
Created Aug 6, 2020
some markov chains using scheme
View scheme-is.scm
% ./venv scheme --program src/arew.scm eval src/bibendum.scm
;; ("% scheme is mayonnaise")
% ./venv scheme --program src/arew.scm eval src/bibendum.scm
;; ("% scheme is tail recursive tail calls have doubts d suggest that mdhughes take the insulting condescenscion elsewhere but call and then you woke up r6rs libraries also can t run benchmarks yet especially east being prefix and suffix")
% ./venv scheme --program src/arew.scm eval src/bibendum.scm
;; ("% scheme is my proposal for topological sort what does plenken mean")
% ./venv scheme --program src/arew.scm eval src/bibendum.scm
View chibi-large-sexp.scm
# cat foo.scm
(define y_foundationdb_status.scm
'((cluster (layers (_valid . #t) (_error . "some error description")) (processes ($map_key=zoneid (version . "3.0.0") (machine_id . "0ccb4e0feddb5583010f6b77d9d10ece") (locality ($map_key=localityName . "value")) (class_source ($enum . #("command_line" "configure_auto" "set_class"))) (class_type ($enum . #("unset" "storage" "transaction" "resolution" "proxy" "master" "test"))) (degraded . #t) (roles . #(((query_queue_max . 0) (local_rate . 0) (input_bytes (hz . 0.0) (counter . 0) (roughness . 0.0)) (stored_bytes . 12341234) (kvstore_used_bytes . 12341234) (kvstore_available_bytes . 12341234) (kvstore_free_bytes . 12341234) (kvstore_total_bytes . 12341234) (durable_bytes (hz . 0.0) (counter . 0) (roughness . 0.0)) (queue_disk_used_bytes . 12341234) (queue_disk_available_bytes . 12341234) (queue_disk_free_bytes . 12341234) (queue_disk_total_bytes . 12341234) (role ($enum . #("master" "proxy" "log" "storage" "resolver" "cluster_controller" "data_distributor" "ra
View .emacs
(require 'package)
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list
'package-archives
'("elpy" . "http://jorgenschaefer.github.io/packages/"))
View json.scm
src$ ./run-chibi.sh
((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
amirouche / crawler.py
Created Sep 9, 2019
pyqt5 webkit + lxml example
View crawler.py
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)
(add-to-list
'package-archives
'("melpa" . "http://melpa.org/packages/") t)
(add-to-list
'package-archives
'("elpy" . "http://jorgenschaefer.github.io/packages/"))
View debugproperty.py
amirouche@neitram:~/tmp$ cat debugproperty.py
from traceback import print_stack
from weakref import WeakKeyDictionary
class DebugProperty:
def __init__(self, name):
self.name = name
self.data = WeakKeyDictionary()
@amirouche
amirouche / gdal.py
Last active Dec 21, 2017
Convert ShapeFile to WGS 84 using GDAL
View gdal.py
# with gdal
import osgeo.ogr
w = osgeo.ogr.Open('BATI_INDIFFERENCIE.SHP')
layer = f.GetLayer(0)
# get source SRID
source = layer.GetSpatialRef()
View ajgudb-qa.md

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

View ajgudb-users-questions.md

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?

You can’t perform that action at this time.