Skip to content

Instantly share code, notes, and snippets.

Avatar

Regner Blok-Andersen regner

  • Voxter Communications
  • Vancouver, BC, Canada
View GitHub Profile
@regner
regner / launch.json
Last active Sep 25, 2019
Example getting task to run when launching debug
View launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Backend: Debug",
"type": "python",
"request": "launch",
"module": "flask",
"cwd": "${workspaceFolder}",
"args": [
@regner
regner / echo.py
Created Oct 16, 2017
Freeswitch unicast tests
View echo.py
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.bind(('0.0.0.0', 9002))
while True:
payload, client_address = sock.recvfrom(1024)
if payload:
len(payload)
View dispatcher.go
package dispatcher
import (
"crypto/md5"
"fmt"
"os"
"time"
"github.com/go-redis/redis"
View gist:b42421cd7499812c79debf2e222f7e13
### Keybase proof
I hereby claim:
* I am regner on github.
* I am regner (https://keybase.io/regner) on keybase.
* I have a public key ASBLses20IhKehmSeGo8mwww-__UEtW4H-f4sb3FmQcYgwo
To claim this, I am signing this object:
View gist:328862cd60859b9c103863bf7354f7a9
1c1b0d6707aa802aa88d808d0800450004cc3e154000761147d49e551a26c0a8011413c0c19f04b8b1f200000001f93a4345624ebf6408000100000004a4000003e5000003e500000014000000000000575200000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31373738303030302c22416d6f756e74223a3838392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d346264646566643837386562222c2253656c6c65724e616d65223a224b79667269222c2242757965724368617261637465724964223a6e756c6c2c2242757965724e616d65223a6e756c6c2c224974656d547970654964223a2254335f454747222c224974656d47726f7570547970654964223a2254335f454747222c22456e6368616e746d656e744c6576656c223a302c22437261667465644279223a6e756c6c2c225175616c6974794c6576656c223a312c2245787069726573
View gist:2221348b04974338b105475703244275
1c1b0d6707aa802aa88d808d0800450000a44d4f400076113cc29e551a26c0a8011413c0c8dd00905ed500000002f8b4106a5dbe68cf060001000000003e00000955f304020002006c00000000000a35bd01780000001d1cc4363f4a92d408fac8edc0fdce4240f69a999940201cfbc0ce249740060001000000003e00000956f304020002006c00000000000a433401780000001d8cd5373f4a92d4086fa99fc0c5a0ed41859a999940de7dccc003959541
1c1b0d6707aa802aa88d808d0800450004cc4d504000761138999e551a26c0a8011413c0c8dd04b82b2900000001f8b4106a5dbe68cf08000100000004a4000009570000095700000014000000000000577d00000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31393938303030302c22416d6f756e74223a3939392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d3462646465666438373
View Hex Stream
1c1b0d6707aa802aa88d808d0800450004cc4d504000761138999e551a26c0a8011413c0c8dd04b82b2900000001f8b4106a5dbe68cf08000100000004a4000009570000095700000014000000000000577d00000000f3030100002a0002007900327301ba7b224964223a383335393233372c22556e6974507269636553696c766572223a32303030302c22546f74616c507269636553696c766572223a31393938303030302c22416d6f756e74223a3939392c2254696572223a332c22497346696e6973686564223a66616c73652c2241756374696f6e54797065223a226f66666572222c22486173427579657246657463686564223a66616c73652c2248617353656c6c657246657463686564223a66616c73652c2253656c6c65724368617261637465724964223a2266623831646239642d333739312d343934362d383034652d346264646566643837386562222c2253656c6c65724e616d65223a224b79667269222c2242757965724368617261637465724964223a6e756c6c2c2242757965724e616d65223a6e756c6c2c224974656d547970654964223a2254335f454747222c224974656d47726f7570547970654964223a2254335f454747222c22456e6368616e746d656e744c6576656c223a302c22437261667465644279223a6e756c6c2c225175616c6974794c6576656c223a312c2245787069726573
View README.md

A restful API for Fitter... which I really don't know why it exists other than it seemed like a funny thing to do so why the fuck not. The basic idea is to create a clone of Tinder but for ship fits for EVE Online pulled from zKillboard. The secondary reason for doing this, other than "lol why not" is to give myself a project to do from start to finish as with TDD.

TODO

  • Get new kills from zKB
  • Add statistic resources
View Sample Possible Fit CREST Resource
{
"totalCount_str": "6",
"items": [
{
"description": "",
"fittingID_str": "0",
"fittingID": 0,
"ship": {
"id_str": "11567",
"href": "http://crest.regner.dev/types/11567/",
@regner
regner / gist:f6d49c3aacc816e41341
Created Jun 29, 2015
sample of the new typeIDs.yaml
View gist:f6d49c3aacc816e41341
31309:
iconID: 76
name:
de: Capital Particle Dispersion Projector II Blueprint
en: Capital Particle Dispersion Projector II Blueprint
fr: Plan de construction Projecteur de dispersion de particules capital II
ja: キャピタル粒子拡散プロジェクターIIブループリント
ru: Capital Particle Dispersion Projector II Blueprint
zh: 旗舰级粒子散布投放器蓝图 II
31310: