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
# Credit http://stackoverflow.com/a/2514279 | |
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r |
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
# Makefile for a go project | |
# | |
# Author: Jon Eisen | |
# site: joneisen.me | |
# | |
# Targets: | |
# all: Builds the code | |
# build: Builds the code | |
# fmt: Formats the source files | |
# clean: cleans the code |
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
class MyCellRenderer : Gtk.CellRenderer { | |
// icon property set by the tree column | |
public Gdk.Pixbuf icon { get; set; } | |
public string text { get; set; } | |
public int progress { get; set; } | |
public int Padding; | |
private Gtk.CellRendererPixbuf icon_renderer; | |
private Gtk.CellRendererText text_renderer; |
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/python3 | |
# Author: Chris Johnston <cjohnston@ubuntu.com> | |
# Initial inspiration from: | |
# https://gist.github.com/nathan-osman/b9158d058cc45916dcd20a591b66d0b4 | |
from argparse import ArgumentParser | |
from sys import exit | |
try: | |
from launchpadlib.launchpad import Launchpad | |
from tabulate import tabulate |
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
package chat | |
import org.zeromq.ZMQ | |
import kotlin.concurrent.thread | |
fun main(args: Array<String>): Unit = | |
ZMQ.context(1).use { ctx -> | |
thread { | |
ctx.socket(ZMQ.SUB).use { stream -> | |
stream.connect(MESSAGE_STREAM) |