This file contains hidden or 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 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 |
This file contains hidden or 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 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 |
This file contains hidden or 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 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 |
This file contains hidden or 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
/* 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> | |
This file contains hidden or 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
# 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 ---------------------------------- | |
This file contains hidden or 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 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 |
This file contains hidden or 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
# -*- 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 |
This file contains hidden or 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 python3 | |
# -*- coding: utf-8 -*- | |
""" | |
An example PUT request on our rules endpoint. | |
""" | |
from typing import Dict, Optional |
This file contains hidden or 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
#! /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 |
This file contains hidden or 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
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. |
OlderNewer