Skip to content

Instantly share code, notes, and snippets.

View emmeowzing's full-sized avatar
I code for coffee ☕

Emma Doyle emmeowzing

I code for coffee ☕
View GitHub Profile
@emmeowzing
emmeowzing / clock.py
Last active July 25, 2016 03:57
A quick coordinate generator for n-dimensional iterations
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def clock(*axes):
""" A quick generator for working with iterations over N-dimensional
arrays. Example usage:
>>> from clock import clock
>>> for i in clock(2, 3):
... print i
@emmeowzing
emmeowzing / capture.py
Last active August 19, 2016 05:52
Capure RPi camera images. This script is untested since I don't have a drone and RPi camera to test it on.
#! /usr/bin/env python2
# -*- coding: utf-8 -*-
""" Capure RPi camera images. This script is untested since I don't have a
drone and RPiCam to test it on.
"""
from glob import glob
from serial import Serial, SerialException
from time import sleep
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" Extend the capabilities of _one_ dimensional lists.
More-so an exercise of Python's decorators, magic methods and
OOP.
"""
from warnings import warn
from types import GeneratorType
@emmeowzing
emmeowzing / inverter.c
Created April 27, 2017 14:22
Example matrix inversion using the GNU Scientific Library
/* A simple example of inverting a matrix using the gsl */
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <gsl/gsl_matrix_double.h>
#include <gsl/gsl_linalg.h>
@emmeowzing
emmeowzing / config.sex
Last active August 28, 2019 02:10
Generate Gaussian and Moffat filters for SExtractor
# Default configuration file for SExtractor 2.19.5
# EB 2013-12-14
#
#-------------------------------- Catalog ------------------------------------
PARAMETERS_NAME output.param # name of the file containing catalog contents
#------------------------------- Extraction ----------------------------------
#! /usr/bin/env python3.6
# -*- coding: utf-8 -*-
"""
What I believe to be the same (or similar) pattern as expressed in Haskell.
"""
from abc import abstractmethod
from typing import Callable, Any, Generic, TypeVar, List, Text, Optional
@emmeowzing
emmeowzing / gunicorn_config.py
Created October 24, 2019 23:08
Gunicorn config for Flask
# -*- coding: utf-8 -*-
from multiprocessing import cpu_count
bind = '0.0.0.0:5000'
# Maximum number of backlog requests to hold onto before users get error messages.
backlog = 100
workers = cpu_count() * 2 + 1
@emmeowzing
emmeowzing / update_rule.py
Last active August 10, 2020 23:19
An example PUT request to update a rule.
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
"""
An example PUT request on our rules endpoint.
"""
from typing import Dict, Optional
#! /bin/bash
# Run bowmaster prelude on your Linux machine!
BOWMASTER_FN="bowmaster-prelude.swf"
if ! hash gnash
then
sudo apt install -y gnash=0.8.11~git20160608-1.4
fi
Istio Workshop
==============
Lawrence @ Solo.io
Jad Sadek @ Solo.io
Hiring at Solo.io
At Solo we're building the Gloo platform
Gloo mesh, edge, portal, extensions
Tests will be sent out toward end of the workshop
Requires >=80% correct.
Retake is allowed (with a new email). Expect badge within a few weeks.