Skip to content

Instantly share code, notes, and snippets.

# -*- coding: utf-8 -*-
"""Demonstrate high quality docstrings.
Module-level docstrings appear as the first "statement" in a module. Remember,
that while strings are regular Python statements, comments are not, so an
inline comment may precede the module-level docstring.
After importing a module, you can access this special string object through the
``__doc__`` attribute; yes, it's actually available as a runtime attribute,
despite not being given an explicit name! The ``__doc__`` attribute is also
@dolph
dolph / keystone_apache.conf
Last active November 29, 2022 08:18
Keystone OpenID Connect + Authorization Code Flow
<VirtualHost *:5000>
...
OIDCClaimPrefix "OIDC-"
OIDCResponseType "code"
OIDCScope "openid email profile"
OIDCProviderMetadataURL http://<keycloak_host>:8080/auth/realms/master/.well-known/openid-configuration
OIDCClientID <client_id>
OIDCClientSecret <client_secret>
@dolph
dolph / beer-chemistry.md
Last active October 13, 2022 13:23
OU CHEM 4970: Chemistry of Beer

CHEM 4970: Chemistry of Beer

Overview of Brewing

  • Critical ingredients for alcohol include sugar and wild yeast
  • Beer is carbonated, unlike other alcoholic beverages

History

@dolph
dolph / serialize.py
Created February 10, 2012 21:10
Dict to XML serialization
"""
Dict to XML serializer.
The identity API prefers attributes over elements, so we serialize that way
by convention, and TODO(dolph): configure exceptions.
"""
from lxml import etree

Code-Announcements/billions-of-precise-fantasy-football-predictions/index.md

Code-Announcements/update-manage-microservices-traffic-using-istio-code-pattern/template-index.md

Code-Announcements/ensuring-fairness-when-processing-loan-applications/template-index.md

Code-Announcements/credit-risk-assessment-via-odl/template-index.md

Code-Announcements/live-news-market-changes-financial-investments/index.md

Code-Announcements/create-a-next-generation-call-center-blog/index.md

Code-Announcements/composite-3-using-lowaran-and-watson-to-identify-trends-and-make-predictions/template-index.md

Code-Announcements/join-us-for-our-upcoming-and-recorded-ibm-developer-webcasts/index.md

Code-Announcements/vehicle-demo-using-nodejs-chaincode-and-starter-plan-v11/template-index.md

Code-Announcements/using-sentiment-analysis-to-understand-bitcoin-market/index.md

class deprecated(object):
"""A decorator to mark callables as deprecated.
This decorator logs a deprecation message when the callable it decorates is
used and modify's the callable's docstring. The message will include the
release where the callable was deprecated.
Examples:
1. Specifying the required deprecated release
@dolph
dolph / anaconda-ks.cfg
Created June 4, 2019 17:04
Minimal CentOS 7.5 Kickstart
auth --enableshadow --passalgo=sha512
cdrom
graphical
firstboot --enable
ignoredisk --only-use=sda
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
network --bootproto=dhcp --device=enp0s3 --ipv6=auto --activate
network --bootproto=dhcp --device=enp0s8 --onboot=off --ipv6=auto
@dolph
dolph / openstack-manuals-links.csv
Last active May 6, 2019 17:20
RST links in OpenStack Manuals
@dolph
dolph / test.md
Last active April 18, 2019 17:47
def f(x):
  print("%s" % x)
def f(x):
  print("%s" % x)

HTTP 404

  • Code-Announcements/announcing-financial-microservice-ibmz-icp-pattern/index.md: https://developer.ibm.com/patterns/build-and-deploy-financial-microservice-on-ibmz-icp returned HTTP 404
  • Code-Announcements/announcing-financial-microservice-ibmz-icp-pattern/index.md: https://www.ibm.com/us-en/marketplace/ibm-cloud-private returned HTTP 404
  • Code-Announcements/announcing-new-models-in-the-ibm-developer-model-asset-exchange/index.md: https://developer.ibm.com/announcements/embedding-a-simple-web-application-into-a-model-on-the-model-asset-exchange-max/ returned HTTP 404
  • Code-Announcements/build-digital-bank-microservices-kubernetes/index.md: https://developer.ibm.com/patterns/kubernetes-on-ibm-cloud-building-a-cloud-native-application returned HTTP 404
  • Code-Announcements/create-a-next-generation-call-center-blog/index.md: https://www.ibm.com/watson/developercloud/conversation.html returned HTTP 404
  • Code-Announcements/create-a-next-generation-call-center-blog