sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
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; |
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> |
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'); |
void Main() | |
{ | |
//Setup Chain of Responsibility | |
ImportPhase readData = new DataReadingPhase(); | |
ImportPhase mapData = new DataMappingPhase(); | |
ImportPhase importData = new DataImportPhase(); | |
readData.SetNextPhase(mapData); | |
mapData.SetNextPhase(importData); |
public class Program | |
{ | |
private static readonly Logger Logger = LogManager.GetCurrentClassLogger(); | |
public static void Main(string[] args) | |
{ | |
string connectionString = @"Data Source=pc-samuelnm;Integrated Security=True"; | |
var sourceDataTable = GetSourceDataTable(); | |
SqlBulkCopySettings settings = SqlBulkCopySettings.GetSettings(); | |
@charset "UTF-8"; | |
body { | |
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | |
-webkit-font-smoothing: antialiased; | |
} | |
h1 { | |
color: #fff; | |
font-size: 36px; |
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 */ | |
html, | |
body, | |
div, | |
span, | |
applet, | |
object, | |
iframe, | |
h1, | |
h2, |
Full code I used to get the amount and duration of AWS Lambda cold starts during 2 given months.
Also see the question on StackOverflow.