This file contains hidden or 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
using System; | |
using System.Text; | |
using MessagePack; | |
using System.IO.Compression; | |
using System.IO; | |
namespace compress | |
{ | |
class Program | |
{ |
This file contains hidden or 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
### Keybase proof | |
I hereby claim: | |
* I am murdockcrc on github. | |
* I am murdockcrc (https://keybase.io/murdockcrc) on keybase. | |
* I have a public key ASA4-0FoUUxIu5r2--zOChdYInu6FPeV9m85wOJejeO3SAo | |
To claim this, I am signing this object: |
This file contains hidden or 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
namespace TableSBS | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Diagnostics; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
using System.Linq; | |
using System.IO; |
This file contains hidden or 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}" |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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"> |
NewerOlder