Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>Python 2</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<style type="text/css">
/*!
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Unicode and Strings in Python 2\n",
"\n",
"When dealing with strings and unicode in most languages there are few rules to live by. This is no different in python, regardless of whether you are talking about 2 or 3.\n",
"\n",
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Rivitzz!!~</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
</head>
<body>
@gravesm
gravesm / app.js
Created February 23, 2016 21:26
iiif
$(function() {
var map = L.map('map', {
center: [42.3, -72],
zoom: 8
});
var image = L.map('image', {
center: [0, 0],
# -*- coding: utf-8 -*-
from itertools import repeat
import time
import unittest
import click
from click.testing import CliRunner
@click.group()
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<section>
<h1>You are in a maze of twisty containers, all unversioned.</h1>
</section>
<section>
<h2>Kubernetes</h2>
<div>
<ul>
<li>6 pods (adit api, elasticsearch, fedora, nginx, pit, postgres)</li>
<li>Container images stored in google cloud</li>
<li>There's no builtin versioning, so it can be hard to figure out what version of what you have deployed</li>

Keybase proof

I hereby claim:

  • I am gravesm on github.
  • I am gravesmj (https://keybase.io/gravesmj) on keybase.
  • I have a public key ASCFAqsyCUQl5tclKjxlKGqiGus3fISuiWatJJXxOI419go

To claim this, I am signing this object:

import io
class S3IO(io.BufferedIOBase):
def __init__(self, s3_obj):
self.obj = s3_obj
self._position = io.SEEK_SET
def tell(self):
return self._position
+++++++++++++
>+++<
[
[>>[-]+<<
>>>>[-]
>[-]
<<<<<-
>-
[->>>+>+<<<<]
>>>>[-<<<<+>>>>]