Skip to content

Instantly share code, notes, and snippets.

/Users/hannes/Library/Python/3.8/lib/python/site-packages/urllib3/__init__.py:34: NotOpenSSLWarning: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'LibreSSL 2.8.3'. See: https://github.com/urllib3/urllib3/issues/3020
warnings.warn(
2023-11-16 19:44:19,145 - INFO - Parsing /Users/hannes/Projects/vitesse9000/pistesse/backend/src/services/../../storage/2006803875.csv for sessions [1, 2, 3]
Traceback (most recent call last):
File "/Users/hannes/Projects/vitesse9000/pistesse/backend/src/services/../../../trackpy/track_to_gpx.py", line 69, in <module>
transponder = track.parse_transponder(filename, sessions=sessions)
File "/Users/hannes/Projects/vitesse9000/pistesse/trackpy/trackpy/transponder.py", line 361, in parse_transponder
transponder = read_transponder(filename, length=length, sessions=sessions)
File "/Users/hannes/Projects/vitesse9000/pistesse/trackpy/trackpy/transponder.py", line 58, in read_transponder
df[["Date", "Start time"]].agg(" ".join, ax
import assert from "assert";
function flatten<T>(array: (T|T[])[]): T[] {
let flat: T[] = [];
for (const el of array) {
if (!Array.isArray(el)) {
flat.push(el);
} else {

Keybase proof

I hereby claim:

  • I am hannesvdvreken on github.
  • I am hannesvdvreken (https://keybase.io/hannesvdvreken) on keybase.
  • I have a public key ASA7Uce4Au1dGpiPuABzFF8rjaj1bdvMLOg1JusBTKJFOQo

To claim this, I am signing this object:

@hannesvdvreken
hannesvdvreken / functions.php
Created September 5, 2016 13:08
functions.php
public function getProperties()
{
$page = 0;
$perPage = 30;
do {
++$page;
$this->propertiesToBeGeneratedQuery->paginate($page, $perPage);
$results = $this->propertiesToBeGeneratedQuery->run();
<?php
use Psr\Http\Message\ResponseRequestInterface;
use Psr\Http\Message\ServerRequestInterface;
function (ServerRequestInterface $request, ResponseInterface $response, callable $next)
{
// Do something with the Request or stop execution and return a Response here.
...
<<<<<<< Updated upstream
"hash": "a91e1488ffb73939ba0ea5352b1e67c5",
=======
"hash": "3c821f662aa02116ce411d86bc421896",
>>>>>>> Stashed changes
@hannesvdvreken
hannesvdvreken / ServiceProvider.php
Last active September 29, 2015 15:39
League container service binding
$container->inflector(ImmutableContainerAwareInterface::class, function (ImmutableContainerAwareInterface $containerAware) {
return $containerAware->setContainer($container->get(InteropContainerInterface::class));
});
@hannesvdvreken
hannesvdvreken / ServiceProvider.php
Created September 29, 2015 15:38
Laravel service binding
$container->resolving(EmitterAwareInterface::class, function (EmitterAwareInterface $emitterAware) {
$emitterAware->setEmitter($container->make(EmitterInterface::class));
});
@hannesvdvreken
hannesvdvreken / interfaces.md
Last active September 29, 2015 16:25
Incomplete list of Zend's aware interfaces

Zend\Db\Adapter\AdapterAwareInterface.php
Zend\EventManager\EventManagerAwareInterface.php
Zend\EventManager\SharedEventAggregateAwareInterface.php
Zend\Log\LoggerAwareInterface.php

class UserExporter
{
use CsvWriter;
public function __construct(User $users, UserTransformer $transformer)
{
$this->setup();
$this->setTransformer($transformer);
$this->users = $users;
}