Skip to content

Instantly share code, notes, and snippets.

@sarnold
sarnold / gist:6fadb4b0dc438956c01fb83f6d664c8e
Created June 23, 2020 16:49
simple pygobject gtk3 app indicator
# This code was adapted from an example for a tutorial on Ubuntu Unity/Gnome AppIndicators:
# http://candidtim.github.io/appindicator/2014/09/13/ubuntu-appindicator-step-by-step.html
import gi
import signal
import json
import xmltodict
import urllib.request
gi.require_version('Gtk', '3.0')
@jubstuff
jubstuff / queue.rb
Created September 5, 2011 13:41
Stack and Queue in Ruby using array
# queue.rb
#
# Using array as queue
#
# Combine use of push and shift
#
# =OUTPUT=
#
# $ ruby1.9.1 queue.rb
# ["one", "two", "three"]