This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* \file | |
* \brief NederC voor Cenioren | |
* \version 1 | |
*/ | |
#ifndef _NEDERC_HH | |
#define _NEDERC_HH | |
#define aligneer_als alignas | |
#define alignering_van alignof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
# This adds the post-inc, post-dec, pre-inc and pre-dec operators to python! | |
# Additionally, it supports the -O3 optimization feature. | |
my $optimized = 0; | |
if (@ARGV and $ARGV[0] eq '-O3') { | |
shift; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Parser combinators in Python3 - Chris Smeele, 2020. | |
# | |
# This code works. Just not very good, due to it mapping very badly to | |
# Python's execution model (it blows up with recursion depth). | |
# It's also incredibly ugly, since Python very much does not want you to write | |
# code in this style. | |
# Creating it was a nice exercise however. | |
# | |
# I hereby release this awful code into the public domain. | |
# Please leave it there and don't try to actually use it :-) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Fail(Exception): pass | |
# run as e.g.: test("/tempZone/home/rods/xyz"); | |
def test(a, c, r): | |
import genquery | |
# First arg: name of an empty or non-existent collection where we can | |
# create subcollections for testing. | |
# Test queries will be on COLL_PARENT_NAME = test_coll | |
test_coll = a[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"with_completed_query": { | |
"old": { | |
"avg": 0.7472595930099487, | |
"max": 0.768233060836792, | |
"min": 0.7419149875640869, | |
"msi_stats": { | |
"msiExecGenQuery": 10, | |
"msiGetContInxFromGenQueryOut": 10, | |
"msiGetMoreRows": 740, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import genquery | |
import oldquery | |
from collections import OrderedDict | |
# Call as `irule run_test null ruleExecOut` | |
# | |
# genquery.py should be genquery from the fork: https://github.com/cjsmeele/irods_rule_engine_plugin_python/blob/genquery-extensions/genquery.py | |
# oldquery.py should be the current genquery: https://github.com/irods/irods_rule_engine_plugin_python/blob/master/genquery.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Include in core.py, and run as: `irule test null null` | |
# Results end up in rodsLog. | |
# | |
# My results with 9052 collections and 10 tests for each genquery version: | |
# | |
# original row_iterator: avg: 739ms, max: 821ms, min: 715ms | |
# extended row_iterator: avg: 376ms, max: 388ms, min: 367ms | |
import time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use 5.12.0; | |
use warnings; | |
=head1 SYNOPSIS | |
sok [-PORT [SOCAT_FLAGS...]] | |
sok HOST [PORT [SOCAT_FLAGS...]] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from irods.session import iRODSSession | |
from irods.models import Collection, DataObject | |
from irods.exception import MultipleResultsFound | |
def make_session(): | |
return iRODSSession( | |
host = 'localhost', | |
port = 1247, | |
user = 'rods', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ops {{{ | |
// Copyright (c) 2018, Chris Smeele. | |
// All rights reserved. | |
// Rights to the actual ISA may belong to the respective right holders. | |
// Clock / flag attributes sourced from this table: | |
// http://pastraiser.com/cpu/gameboy/gameboy_opcodes.html | |
// | |
// - e2 and f2 have been changed to size '1' from '2' (this appears to be an error in the table). |
NewerOlder