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
# 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') |
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
# queue.rb | |
# | |
# Using array as queue | |
# | |
# Combine use of push and shift | |
# | |
# =OUTPUT= | |
# | |
# $ ruby1.9.1 queue.rb | |
# ["one", "two", "three"] |