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
{ | |
"meta": { | |
"code": 200 | |
}, | |
"data": [ | |
{ | |
"attribution": null, | |
"tags": [], | |
"type": "video", | |
"location": null, |
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 class="container-fluid profile-canopy"> | |
<div class="profile-canopy-bg bg-public"> | |
<img alt src="http://i.imgur.com/Dbqggm5.jpg"/> | |
<button ng-show="isAuthor()" ng-click="editBackground()" type="button" class="btn btn-primary btn-lg btn-bg-edit">Edit</button> | |
</div> | |
</div> |
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
.profile-canopy{ | |
position: relative; | |
} | |
.profile-canopy-bg{ | |
background-color: white; | |
height: 320px; | |
width: 100%; | |
} |
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 class="container-fluid profile-canopy"> | |
<div class="row"> | |
<div class="profile-canopy-bg bg-public"> | |
<img alt src="http://i.imgur.com/Dbqggm5.jpg"/> | |
<button ng-show="isAuthor()" ng-click="editBackground()" type="button" class="btn btn-primary btn-lg btn-bg-edit">Edit</button> | |
</div> | |
<div class="canopy-bg-edit hidden"> | |
<div class="profile-canopy-bg imageBox-bg"> | |
<div class="action"> | |
<input type="file" id="bg-file" style="float:left; width: 250px"> |
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
$('.bg-public').on('click', editBackground); | |
function initializeCropper(options){ | |
var cropper = $(options.imageBox).cropbox(options); | |
var originalImgSrc = options.imgSrc; | |
$(options.fileInput).on('change', function(){ | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
options.imgSrc = e.target.result; | |
cropper = $(options.imageBox).cropbox(options); |
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
/* | |
The MIT License (MIT) | |
Copyright (c) 2015 HdV Media GmbH | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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
exports = module.exports = (function () { | |
// Instance stores a reference to the Singleton | |
var instance; | |
function init() { | |
// Singleton | |
// Private methods and variables | |
return { |
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
//Constructor | |
function AzureDbHelper(databaseName, collectionName){ | |
var _this = this; | |
if(!this.database || !this.collection) { | |
readOrCreateDatabase(databaseName, function (error, database) { | |
if (error) { | |
//throw new Error(error); | |
return; | |
} | |
_this.database = database; |
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 AzureDbHelper = require('./azureDbHelper.js'), | |
config = require('../config.js'); | |
module.exports = (function DbHelperFactory(){ | |
var postsCollectionHelper; | |
var fanPostsCollectionHelper; | |
var concertsCollectionHelper; | |
return{ | |
getPostsHelper: function getPostsHelper(){ |
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
// | |
// Created by Luis Delgado on 4/5/16. | |
// | |
import Foundation | |
import Alamofire | |
class EventHub { | |
static let eventHubName = NSURL(string: "https://{yourNamespace}.servicebus.windows.net/{yourEventhubName}")! | |
static let publisherId = "{yourPublisherId}" |
OlderNewer