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
[ { | |
"id":"275815867", | |
"data":{ | |
"data":{ | |
"messages":[ | |
{ | |
"liked_by":{ | |
"count":0, | |
"names":[] | |
}, |
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
(function () { | |
var OverridedContext = {}; | |
var baseFn = function(originalContext,fieldHtmlInfo,fieldInfo,listDefaults){ | |
debugger | |
} | |
/* | |
Header | |
Body | |
Footer | |
Group |
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
.directive('profile',function(){ | |
return { | |
restrict:'EA', | |
replace:true, | |
template:'<div class="myimg data-ng-cloak">\ | |
<img src="{{user.PictureUrl}}" alt="{{user.DisplayName}}"/>\ | |
<label>Olá, {{user.DisplayName}}<label>\ | |
</div>', | |
link:function(scope,element,attr){ | |
scope.getMyProperties().then(function(data){scope.user = data}) |
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
//<div list-view group="null" target="Me" columns="['Title','Created','Modified']" show-edit="true" show-remove="true" show-new="true" end-point="/_api/web/lists/getbyTitle('Biblioteca de Estilos')/items" html="/SitePages/repeater.html"></div> | |
app.directive('listView',function(){ | |
return { | |
restrict:'EA', | |
replace:true, | |
require:['?group','?columns','?target','?showRemove','?showEdit','?showNew','?endPoint','?html'], | |
controller:function($scope,$http,$q,$log,$window){ | |
$scope.get = function(endPoint){ | |
var defer = $q.defer() | |
$http.get(endPoint).success(function(data){defer.resolve(data)}).error(function(data){defer.reject(data)}) |
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
angular.module('ngCalendar',[]) | |
.directive('multconnectCalendar',function(){ | |
return { | |
restrict:'AEC', | |
scope:{}, | |
link:function(scope,elemen,attr){}, | |
controller:function($scope,$sce,calendarService){ | |
$scope.content = 'loading...' | |
$scope.prevMonth = function(){ | |
if($scope.cal.month == 0){ |
NewerOlder