This file contains 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
CFLAGS=$(shell pkg-config --cflags libmutter-1) -Wl,-rpath,/usr/lib/mutter | |
LDLIBS=$(shell pkg-config --libs libmutter-1) | |
all: main |
This file contains 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
from __future__ import print_function | |
from contextlib import closing | |
from sys import argv, exit, stderr | |
from . import get | |
from .compat import urlparse | |
if len(argv) != 2: | |
exit('Usage: {0} URL'.format(argv[0]), file=stderr) |
This file contains 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
import subprocess | |
import pytest | |
class Interpreter(object): | |
base = '/usr/bin/python' | |
def __init__(self, suffix): | |
self.suffix = suffix |
This file contains 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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="format-detection" content="telephone=no"> | |
<style type="text/css"> | |
<!-- | |
.ReadMsgBody { width: 100%;} |
This file contains 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
# Works with CPython, PyPy 2 (Py version 2) | |
# Blows up with PyPy 2 (Py version 3), Jython (Py version 2) | |
u"\uD800" |
This file contains 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 | |
from __future__ import print_function | |
import pkg_resources | |
import platform | |
import requests | |
This file contains 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
// Works as expected... if one gets it to compile | |
#include <libzfs.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
int zp_iter(zpool_handle_t *z, void *a) { | |
printf("name:\t%s\n", zpool_get_name(z)); | |
return 0; | |
} |
This file contains 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
/* | |
* file: test_libsoup_msg.c | |
* compile with: | |
* cc $(pkg-config --cflags --libs libsoup-2.4) test_libsoup_msg.c -o test_libsoup_msg | |
*/ | |
#include <libsoup/soup.h> | |
#include <glib/gprintf.h> | |
int main(int argc, char** argv) { |
This file contains 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
/* | |
* Warning: | |
* This thing is full of memory leaks | |
* | |
* filename: benchmark.c | |
* compile with: LDFLAGS=$(pkg-config --libs --cflags gtk+-3.0 poppler-glib) make benchmark | |
*/ | |
#include <gtk/gtk.h> | |
#include <poppler/glib/poppler.h> |