Skip to content

Instantly share code, notes, and snippets.

public static void ProcessText([BlobTrigger(@"input-dir/{name}.txt")] TextReader content,
string name,
[Blob(@"output-dir/{name}")] TextWriter contentOutput)
{
Console.WriteLine(String.Format("Reading Content from : {0}", name));
var temp = String.Format("Contents : {0}", content.ReadToEnd());
contentOutput.WriteLine(temp);
}
public static void CopyBlobToBlob([BlobTrigger(@"input-dir/{name}.jpeg")] Stream content,
var settings = new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
Converters = new List<JsonConverter>
{
new IsoDateTimeConverter()
{
DateTimeFormat= "yyyy-MM-dd HH:mm:ss"
}
<system.webServer>
<security>
<ipSecurity allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
</ipSecurity>
<dynamicIpSecurity>
<denyByRequestRate enabled="true" maxRequests="15" requestIntervalInMilliseconds="5000"/>
</dynamicIpSecurity>
</security>
</system.webServer>
//code extracted
<ipSecurity enableReverseDns="true" allowUnlisted="false">
<add ipAddress="123.123.123.123" allowed="true" />
<add domainName="learnwithshahriar.wordpress.com" allowed="true" />
</ipSecurity>
//code extracted
<ipSecurity allowUnlisted="false" denyAction="Unauthorized">
//code extracted
<ipSecurity allowUnlisted="true">
<add ipAddress="123.200.0.0" subnetMask="255.255.0.0" allowed="true" />
</ipSecurity>
<system.web>
<httpRuntime enableVersionHeader="false"/>
</system.web>
<system.webServer>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
</system.webServer>
<system.webServer>
<security>
<requestFiltering removeServerHeader="true"/>
</security>
</system.webServer>
@shahriarhossain
shahriarhossain / gist:35bf8542103b01dfddb5
Last active September 15, 2015 10:38
Show specific keyboard at mobile(iPhone) on textbox focus
//Number keyboard show
<input type="number" min="0" inputmode="numeric" pattern="[0-9]*" title="Non-negative integral number">
or
<input type="tel" class="form-control" name="phone" id="phoneInput" placeholder="(000) 000-0000" required/>
//URL specifc keyboard
<input type="url" /><br />
//Email specifc keyboard
<input type="email" /><br />