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/ruby | |
# | |
# A script to check Amazon Webservice's Health Status Dashboard | |
# | |
# Jens Braeuer, github.com/jbraeuer | |
# | |
# Version 1.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
var https = require('https'); | |
// https://www.yammer.com/api/v1/messages.json | |
var options = { | |
host: 'www.yammer.com', | |
path: '/api/v1/messages.json?access_token=YOUR-OAUTH2-TOKEN', | |
headers: { "Authorization": "Bearer YOUR-OAUTH2-TOKEN" } | |
} | |
var globalRequestId = 1; |
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
app.controller('AppCtrl', ['$scope', '$dialog', function ($scope, $dialog) { | |
$scope.popover = function($event) { | |
var opts = { | |
backdrop: true, | |
// Style as a popover, bottom position | |
// additional show class to override popover class display:none | |
dialogClass: 'popover bottom show' | |
templateUrl: 'partials/popover.html', | |
controller: 'PopCtrl', | |
// Resolve the click event coordinates |
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
// A simple Tweet POJO: | |
// $> javac TweetEvent.java | |
public class TweetEvent { | |
private String user; | |
private String text; | |
private String timezone; | |
private int retweets; | |
public TweetEvent(String user, String text, String timezone, int retweets) { |