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 getParameterByName(name) { | |
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); | |
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), | |
results = regex.exec(location.search); | |
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));} | |
Usage: | |
var prodId = getParameterByName('prodId'); |
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
public static class ObjectExtensions | |
{ | |
/// <summary> | |
/// Acts as a null dereference operator | |
/// </summary> | |
/// <typeparam name=”T”> Type of Object for null check</typeparam> | |
/// <typeparam name=”TResult”> resulting type of the expression</typeparam> | |
/// <param name=”item”> Object to check for null on </param> | |
/// <param name=”deriver”> delegate to return result</param> | |
/// <returns></returns> |
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
using System.Collections.Generic; | |
using System.Diagnostics; | |
using Amazon; | |
using Amazon.S3; | |
using Amazon.S3.Model; | |
namespace S3Navigator.AWS | |
{ | |
public class AwsService | |
{ | |
private readonly AmazonS3 _client; |
NewerOlder