Skip to content

Instantly share code, notes, and snippets.

View iogbole's full-sized avatar

Israel Ogbole iogbole

View GitHub Profile
[{"id":1523186208,"type":"suggestion","weight":0.001,"suggested":{"type":"user","id":1523186208,"name":"rianne","state":"active","full_name":"Rianne","job_title":null,"network_id":1724945,"mugshot_url":"https://mug0.assets-yammer.com/mugshot/images/48x48/no_photo.png","mugshot_url_template":"https://mug0.assets-yammer.com/mugshot/images/{width}x{height}/no_photo.png","url":"https://www.yammer.com/api/v1/users/1523186208","web_url":"https://www.yammer.com/yam.usa.cc/users/rianne","activated_at":"2014/08/11 11:53:26 +0000","stats":{"following":0,"followers":0,"updates":0},"contact":{"email_addresses":[{"type":"primary","address":"rianne@yam.usa.cc"}]}}},{"id":1517241393,"type":"suggestion","weight":0.001,"suggested":{"type":"user","id":1517241393,"name":"esosa","state":"active","full_name":"Keyser Soze","job_title":"Head honch","network_id":1724945,"mugshot_url":"https://mug0.assets-yammer.com/mugshot/images/48x48/no_photo.png","mugshot_url_template":"https://mug0.assets-yammer.com/mugshot/images/{width}x{heigh
@iogbole
iogbole / yamadfs
Created November 7, 2014 12:35
Yammer ADFS relying party and claims rule
#Modification of Alex's script to use SAML_SUBJECT instead
Add-ADFSRelyingPartyTrust -Name Yammer -MetadataFile C:\metadata.xml -IssuanceTransformRules '@RuleTemplate = "LdapClaims" @RuleName = "Get attributes" c:[Type == "http://schemas.microsoft.com/ws/2008/06/identity/claims/windowsaccountname", Issuer == "AD AUTHORITY"] => issue(store = "Active Directory", types = ("SAML_SUBJECT"), query = ";mail;{0}", param = c.Value);' -IssuanceAuthorizationRules '@RuleTemplate = "AllowAllAuthzRule" => issue(Type = "http://schemas.microsoft.com/authorization/claims/permit", Value = "true");'
@iogbole
iogbole / gist:1700f0fc4db3a3559723
Created December 4, 2014 12:06
Search API test
<html>
<head>
<script type="text/javascript" data-app-id="INSERT-Your-ID" src="https://assets.yammer.com/assets/platform_js_sdk.js"></script>
<script>
function SearchForIsrael() {
yam.getLoginStatus(
function(response) {
if (response.authResponse) {
<DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
</head>
<body>
<script type="text/javascript" data-app-id="CLIENT_ID_HERE" src="https://c64.assets-yammer.com/assets/platform_js_sdk.js"></script>
<script type="text/javascript">
@iogbole
iogbole / DHTReading.json
Created December 29, 2015 11:23
DHT Test Data
{"chipid":"101","location":"GB","description":"GbRGZ1","temperature":"10","humidity":"56","heat_index":"11"}
{"chipid":"102","location":"GB","description":"Tango 2","temperature":"6","humidity":"47","heat_index":"4"}
@iogbole
iogbole / AzureEventHub
Last active December 29, 2015 17:09
Azure Event Hub Pseudo code
// main method
int send_event () {
SERVICE_NAMESPACE = 'ioteh-ns'
EVENT_HUB_NAME = 'ioteh'
PUBLISHER_NAME = 'dhtxx'
EVENT_HUB_SIGNATURE = 'change_me'
API_ENDPOINT = "https://#{SERVICE_NAMESPACE}.servicebus.windows.net/#{EVENT_HUB_NAME}/publishers/#{PUBLISHER_NAME}/messages"
// define headers
HTTP.Headers.ConnectionTimeout = 60
<%# views/layouts/external_pages.html.erb %>
<!DOCTYPE html>
<html>
<head>
<title>GentelellaOnRails</title>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
@iogbole
iogbole / yammerembed.html
Created July 27, 2016 15:00
Control embed load time
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" ></script>
<style>
.this_should_be_embed_div { display:none;}
</style>
</head>
<body>
<div class="this_should_be_embed_div">
@iogbole
iogbole / yammer_smart_login.html
Created September 1, 2016 11:13
Yammer Smart Login
<!DOCTYPE HTML>
<html>
<head>
<script src="https://code.jquery.com/jquery-3.1.0.min.js" integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=" crossorigin="anonymous"></script>
<script>
$(document).ready(function(){
$("#yamframe").hide();
});
</script>
@iogbole
iogbole / followYammerUser.html
Created September 23, 2016 11:01
Follow Yammer user using the API
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>A Yammer App</title>
<script type="text/javascript" data-app-id="lMBUSLNpqydFteLeZPU1GA" src="https://assets.yammer.com/assets/platform_js_sdk.js"></script>
<script type="text/javascript">
function FollowUser() {
yam.getLoginStatus(function(response) {
if (response.authResponse) {