Skip to content

Instantly share code, notes, and snippets.

/**
* @name Week spend by Campaign
*
*
*/
const credentials = {
accessToken: '',
clientId: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
clientSecret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx',
npm install @angular/animations@latest @angular/common@latest @angular/compiler@latest @angular/core@latest @angular/forms@latest @angular/http@latest @angular/platform-browser@latest @angular/platform-browser-dynamic@latest @angular/router@latest @angular/compiler-cli@latest --save
@tbrzica
tbrzica / app.js
Created September 21, 2015 18:05
Combine two arrays using undercoreJS
var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'World';
var a = [{id:456, name:'sojuz'},
{id:751, name:'sputnik'},
{id:56, name:'arianne'}];
var b = [{id:751, weight:5800},
{id:456, weight:2659},
(function () {
if (!Worker) //Detect IE
document.location = "http://www.whatbrowser.org/ru/browser/";
})();